Azure / Azure/azure-sdk-for-rust

Cosmos: Port region-scoped session token container from Java

Open
#5,124 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
884
Forks
365
Avg merge
2d 19h
Merged PRs (30d)
109

Description

### Feature Summary

The region-scoped session token container reduces the scope of sesison tokens to regions applicable for a logical partition key - which reduces the blast radius when there is sustained cross region replication lag for a partition (to only logical partitions that actually used seocndary region)

### Feature Description

[RegionScopedSessionContainer](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/RegionScopedSessionContainer.java)

Design Doc is here - https://github.com/Azure/azure-sdk-for-java/pull/38003

### Use Case

_No response_

### Alternatives

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Research direction

Read the Java RegionScopedSessionContainer implementation linked in the issue and the design document in PR 38003. Then locate the corresponding Cosmos session-token container code in this Rust repository and assess how to port the region-scoped behavior. Done means the container limits session tokens to regions applicable to each logical partition key, reducing the stated replication-lag blast radius.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, rust
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.