# Global locking with ES 5.x

**URL:** <https://discuss.elastic.co/t/global-locking-with-es-5-x/102674>\
**Category:** Elasticsearch\
**Created:** [October 4, 2017, 10:00am UTC](https://discuss.elastic.co/t/global-locking-with-es-5-x/102674 "2017-10-04T10:00:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiggly](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jiggly](https://discuss.elastic.co/u/jiggly)\
**Post date:** [October 4, 2017, 10:00am UTC](https://discuss.elastic.co/t/global-locking-with-es-5-x/102674/1 "2017-10-04T10:00:24Z")

</div>

Hi,

[This page](https://www.elastic.co/guide/en/elasticsearch/guide/current/concurrency-solutions.html#global-lock) from ES 2.x documentation suggests that it is possible to use ElasticSearch as a global locking source of truth. Is it still reliable in 5.x? As I understand it, it shouldn't be a problem, but I wonder why this documentation wasn't ported to 5.x and 6.x? Has something changed in the documents API acidity?

(To give you the bigger picture, I want to implement an advisory lock in my app. It would be much easier if I could rely on ElasticSearch to do this.)

Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 6, 2017, 5:37am UTC](https://discuss.elastic.co/t/global-locking-with-es-5-x/102674/2 "2017-10-06T05:37:10Z")

</div>

The guide is in the process of being updated, there's a lot there and there we lots of changes from 2\>5 🙂

---

<div class="post-metadata">

**Author:** ![jiggly](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jiggly](https://discuss.elastic.co/u/jiggly)\
**Post date:** [October 9, 2017, 5:32pm UTC](https://discuss.elastic.co/t/global-locking-with-es-5-x/102674/3 "2017-10-09T17:32:01Z")

</div>

@warkolm Thanks 🙂 . Does this mean that it is okay to use ES 5.x for such purpose? Or somebody will have to take a closer look to tell whether it's actually a good idea (and update the doc eventually)?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 9, 2017, 7:19pm UTC](https://discuss.elastic.co/t/global-locking-with-es-5-x/102674/4 "2017-10-09T19:19:21Z")

</div>

These docs are, generally, still applicable.

---

<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:** [November 6, 2017, 7:19pm UTC](https://discuss.elastic.co/t/global-locking-with-es-5-x/102674/5 "2017-11-06T19:19:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
