# Distributed transaction support

**URL:** <https://discuss.elastic.co/t/distributed-transaction-support/3080>\
**Category:** Elasticsearch\
**Created:** [July 8, 2010, 10:36am UTC](https://discuss.elastic.co/t/distributed-transaction-support/3080 "2010-07-08T10:36:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samuel\_Yung\_2](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Samuel\_Yung\_2](https://discuss.elastic.co/u/Samuel_Yung_2)\
**Post date:** [July 8, 2010, 10:36am UTC](https://discuss.elastic.co/t/distributed-transaction-support/3080/1 "2010-07-08T10:36:50Z")

</div>

Hi,

How is the distributed transaction support in ES? Specifically will it  
support JTA transaction in the near future, much like the current  
compass implementation does?

Rds,  
Samuel

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 8, 2010, 11:01am UTC](https://discuss.elastic.co/t/distributed-transaction-support/3080/2 "2010-07-08T11:01:15Z")

</div>

Elasticsearch does not and will not support transactions, its atomic on a  
single operation level. Compass solution for transactions is not scalable,  
especially with recent Lucene changes. It will need to be solved in a  
different manner, for example, queue the indexing request, and be able to  
handle failures to index gracefully.

-shay.banon

On Thu, Jul 8, 2010 at 1:36 PM, Samuel Yung [polyu.samuelyung@gmail.com](mailto:polyu.samuelyung@gmail.com)wrote:

> Hi,
> 
> How is the distributed transaction support in ES? Specifically will it  
> support JTA transaction in the near future, much like the current  
> compass implementation does?
> 
> Rds,  
> Samuel

---

<div class="post-metadata">

**Author:** ![Samuel\_Yung\_2](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Samuel\_Yung\_2](https://discuss.elastic.co/u/Samuel_Yung_2)\
**Post date:** [July 8, 2010, 1:05pm UTC](https://discuss.elastic.co/t/distributed-transaction-support/3080/3 "2010-07-08T13:05:52Z")

</div>

Hi Shay,

So you mean global transactions between database and index can only be  
possible using programmatic transaction? Could it be possible to  
implement a JTA transaction manager in Elastic Search?

Rds,  
Samuel

On Jul 8, 7:01 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Elasticsearch does not and will not support transactions, its atomic on a  
> single operation level. Compass solution for transactions is not scalable,  
> especially with recent Lucene changes. It will need to be solved in a  
> different manner, for example, queue the indexing request, and be able to  
> handle failures to index gracefully.
> 
> -shay.banon
> 
> On Thu, Jul 8, 2010 at 1:36 PM, Samuel Yung [polyu.samuely...@gmail.com](mailto:polyu.samuely...@gmail.com)wrote:
> 
> > Hi,
> 
> > How is the distributed transaction support in ES? Specifically will it  
> > support JTA transaction in the near future, much like the current  
> > compass implementation does?
> 
> > Rds,  
> > Samuel

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 8, 2010, 2:06pm UTC](https://discuss.elastic.co/t/distributed-transaction-support/3080/4 "2010-07-08T14:06:12Z")

</div>

Yes, only programmatically. There won't be a JTA transaction manager in  
elasticsearch. You can't do it and maintain the scalability aspect of  
elasticsearch.

-shay.banon

On Thu, Jul 8, 2010 at 4:05 PM, Samuel Yung [polyu.samuelyung@gmail.com](mailto:polyu.samuelyung@gmail.com)wrote:

> Hi Shay,
> 
> So you mean global transactions between database and index can only be  
> possible using programmatic transaction? Could it be possible to  
> implement a JTA transaction manager in Elastic Search?
> 
> Rds,  
> Samuel
> 
> On Jul 8, 7:01 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Elasticsearch does not and will not support transactions, its atomic on a  
> > single operation level. Compass solution for transactions is not  
> > scalable,  
> > especially with recent Lucene changes. It will need to be solved in a  
> > different manner, for example, queue the indexing request, and be able to  
> > handle failures to index gracefully.
> > 
> > -shay.banon
> > 
> > On Thu, Jul 8, 2010 at 1:36 PM, Samuel Yung \<[polyu.samuely...@gmail.com](mailto:polyu.samuely...@gmail.com)  
> > wrote:
> > 
> > > Hi,
> > 
> > > How is the distributed transaction support in ES? Specifically will it  
> > > support JTA transaction in the near future, much like the current  
> > > compass implementation does?
> > 
> > > Rds,  
> > > Samuel

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:22am UTC](https://discuss.elastic.co/t/distributed-transaction-support/3080/5 "2017-07-06T04:22:30Z")

</div>


