Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

RavenDB - Load Balance and Replication

$
0
0

I'm using RavenDB with following setting:

FailoverBehavior = FailoverBehavior.ReadFromAllServers |
                   FailoverBehavior.AllowReadsFromSecondariesAndWritesToSecondaries

I'm also using two RavenDB servers which replicates each other.

Unfortunately I have following problem:

When document is written to PRIMARY raven database, but Load Balancing tries to read that document from other raven database, document is not there yet, because of Replication lag.

Is there anyway to tell RavenDB to wait until document is fully replicated before it's accessible from any boxes? Something similar to WaitForNonStaleResults for indexes?

Thank you.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>