2

In Cosmosdb's documentation here: https://learn.microsoft.com/en-us/azure/cosmos-db/consistency-levels#bounded-staleness-consistency it says that:

Bounded Staleness is beneficial primarily to single-region write accounts with two or more regions. If the data lag in a region (determined per physical partition) exceeds the configured staleness value, writes for that partition are throttled until staleness is back within the configured upper bound.

And in the documentation here: https://learn.microsoft.com/en-us/azure/reliability/reliability-cosmos-db-nosql?toc=%2Fazure%2Fcosmos-db%2Ftoc.json#durability it says the RPO of Bounded staleness is determined by K and T where as for session consistency it is Less than 15 minutes.

For an account with session consistency configured, with one read region and one write region, if the read region goes through region outage and lags behind by more than 15 minutes, would write region also throttle write requests? And what happens in the case where there are two write regions?

asked Dec 26, 2024 at 8:26
3
  • can you add what you have tried and error if you are facing any error? Commented Dec 27, 2024 at 8:13
  • I'm sure that it won't throttle writes in this case for "Session, consistent prefix, eventual" as these are prioritising availability over consistency. Commented Dec 27, 2024 at 8:50
  • @PratikLad, I am still in the design phase and curious about the behavior of these different consistency levels during a region outage. I am trying to compare the difference between session consistency and bounded staleness consistency with very high K and T for a multi-region account when one region faces outage. Commented Dec 27, 2024 at 8:55

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.