# ElasticSearch can I reach GET consistency cross replicas (for same client)?

**URL:** <https://discuss.elastic.co/t/elasticsearch-can-i-reach-get-consistency-cross-replicas-for-same-client/93413>\
**Category:** Elasticsearch\
**Created:** [July 17, 2017, 2:58pm UTC](https://discuss.elastic.co/t/elasticsearch-can-i-reach-get-consistency-cross-replicas-for-same-client/93413 "2017-07-17T14:58:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomer\_Ben\_David](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomer_ben_david/32/20115_2.png) [@Tomer\_Ben\_David](https://discuss.elastic.co/u/Tomer_Ben_David)\
**Post date:** [July 17, 2017, 2:58pm UTC](https://discuss.elastic.co/t/elasticsearch-can-i-reach-get-consistency-cross-replicas-for-same-client/93413/1 "2017-07-17T14:58:48Z")

</div>

Hi, I was reading [https://discuss.elastic.co/t/question-on-read-consistency/14232/10](https://discuss.elastic.co/t/question-on-read-consistency/14232/10)

ElasticSearch can I reach GET consistency cross replicas (for same client, client does set then get)?

Please correct me if i'm wrong but it looks to me like i can reach "consistency" meaning I will always get the latest value written even if my read gets to a replica which did not get my last write if:

1. I use `action.get.realtime: true` (which is default).
2. when I do write I use param `replication: sync` (which is also default).

And in this case even if i wrote a value to a master, and then immediately read it with a client on any replica on any situation, i will always get my latest get because:

1. `action.get.realtime: true` makes sure I read from `transactionlog` if value is not already store. but this is only per a `shard`
2. If i reach any other replica shard then the fact that I used `replication:sync` which is also default means that when I did the write i got success only when finished the writing. so any replica shard will return to me the last value.

so in that manner a GET after PUT is always consistent and not just eventual consistent.

is that correct??

---

<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:** [August 14, 2017, 2:58pm UTC](https://discuss.elastic.co/t/elasticsearch-can-i-reach-get-consistency-cross-replicas-for-same-client/93413/2 "2017-08-14T14:58:57Z")

</div>

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