seznam / elasticlient

C++ Elasticsearch client library
https://seznam.github.io/elasticlient/
MIT License
133 stars 67 forks source link

Elasticlient ACID Transaction Support #19

Closed onkarkolse closed 3 years ago

onkarkolse commented 3 years ago

Can we achieve ACID transactional support using Elasticlient (i.e., commit and rollback operations) .? For eg :- when a document is added into a index which is in a transaction, we need to add/update the subset of that in the index for real time search. In case any error happens in table persist or elastic search index persist, the entire transaction should roll back. Is that case possible with Elasticlient .? If not, any other way to achieve this .?

che0 commented 3 years ago

I don't believe Elasticsearch supports any transactions, as that would require distributing locks across many nodes in the cluster. If you need to synchronize across several indices, you need to handle this in your application.