Azure / Azure/azure-sdk-for-java

Add latestCommittedWriteRegion ReadConsistencyStrategy

Open
#49,007 0 comments 0 reactions 0 assignees View on GitHub
Consistency Cosmos feature-request
Dominant language
Java
Stars
2.6k
Forks
2.2k
Avg merge
2d 8h
Merged PRs (30d)
178

Description

## Summary

The CosmosClient instance should be able to route read requests to the write region and perform quorum reads against that write region.

## Details

Add a new `latestCommittedWriteRegion` value to the `ReadConsistencyStrategy` enum that:
- Routes read requests to the current write region
- Performs quorum reads against that write region
- Ensures reads reflect the latest committed writes

## Motivation

This enables strong consistency reads by targeting the write region directly, avoiding cross-region replication lag.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.