# Eventual consistency on simple document put/get

**URL:** <https://discuss.elastic.co/t/eventual-consistency-on-simple-document-put-get/46691>\
**Category:** Elasticsearch\
**Created:** [April 7, 2016, 1:49pm UTC](https://discuss.elastic.co/t/eventual-consistency-on-simple-document-put-get/46691 "2016-04-07T13:49:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serguzest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/serguzest/32/8870_2.png) [@Serguzest](https://discuss.elastic.co/u/Serguzest)\
**Post date:** [April 7, 2016, 1:49pm UTC](https://discuss.elastic.co/t/eventual-consistency-on-simple-document-put-get/46691/1 "2016-04-07T13:49:13Z")

</div>

Hello!

Let's imagine elasticsearch as a simple object key-value store and ignore all search/indexing functionality.

When I create/update a document, is it instantly (not eventually) available for all clients when they try to retrive it with simple "GET"?

I want to store users shopping cart in elasticsearch for fast retrieval, I still use DBMS but I want use elasticsearch as a view cache. I couldn't be sure if elasticsearch will lag because of its "eventual consistent" nature in that workflow.

Thank you in advance

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 7, 2016, 3:33pm UTC](https://discuss.elastic.co/t/eventual-consistency-on-simple-document-put-get/46691/2 "2016-04-07T15:33:18Z")

</div>

Yes, retrieving the document by key through a GET request will return the document even if it has not been flushed and made available through search.

---

<div class="post-metadata">

**Author:** ![Serguzest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/serguzest/32/8870_2.png) [@Serguzest](https://discuss.elastic.co/u/Serguzest)\
**Post date:** [April 7, 2016, 6:00pm UTC](https://discuss.elastic.co/t/eventual-consistency-on-simple-document-put-get/46691/3 "2016-04-07T18:00:29Z")

</div>

thank you! can you point me to a documentation regarding the issue?

---

<div class="post-metadata">

**Author:** ![loren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loren/32/44942_2.png) [@loren](https://discuss.elastic.co/u/loren)\
**Post date:** [April 7, 2016, 7:03pm UTC](https://discuss.elastic.co/t/eventual-consistency-on-simple-document-put-get/46691/4 "2016-04-07T19:03:26Z")

</div>

Here is one place it's mentioned: [https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html#realtime](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html#realtime)

---

<div class="post-metadata">

**Author:** ![Serguzest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/serguzest/32/8870_2.png) [@Serguzest](https://discuss.elastic.co/u/Serguzest)\
**Post date:** [April 7, 2016, 7:15pm UTC](https://discuss.elastic.co/t/eventual-consistency-on-simple-document-put-get/46691/5 "2016-04-07T19:15:01Z")

</div>

Thank you!

---

<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 5, 2017, 11:01pm UTC](https://discuss.elastic.co/t/eventual-consistency-on-simple-document-put-get/46691/6 "2017-07-05T23:01:24Z")

</div>


