Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INTERNAL]: Add RegionalRoutingContext to encapsulate URI. #44398

Merged
merged 18 commits into from
Mar 3, 2025

Conversation

nehrao1
Copy link
Member

@nehrao1 nehrao1 commented Feb 25, 2025

Description

The objective of this PR is to add a RegionalRoutingContext which encapsulates a URI instance representing the gateway regional endpoint. This is in preparation to have RegionalRoutingContext also encapsulate the thin-client regional endpoint along with health state of these individual endpoints.

In the future, this will allow to transparently switch (w/o restarting clients) between using the thin-proxy endpoint and the Gateway endpoint in case of an issue with either.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@nehrao1
Copy link
Member Author

nehrao1 commented Feb 25, 2025

/azp run java - cosmos - ci

@nehrao1
Copy link
Member Author

nehrao1 commented Feb 25, 2025

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@nehrao1
Copy link
Member Author

nehrao1 commented Feb 25, 2025

/azp run java - cosmos - ci

@nehrao1
Copy link
Member Author

nehrao1 commented Feb 25, 2025

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - looks good overall - just left a few questions/comments.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 26, 2025

API change check

APIView has identified API level changes in this PR and created following API reviews.

com.azure:azure-cosmos

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for few minor comments

@jeet1995
Copy link
Member

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks!

@jeet1995
Copy link
Member

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kushagraThapar kushagraThapar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minor suggestions, thanks!

@jeet1995 jeet1995 changed the title Add RegionalEndpoints Abstraction Layer to LocationCache [INTERNAL]: Add RegionalRoutingContext to encapsulate URI. Mar 3, 2025
@jeet1995
Copy link
Member

jeet1995 commented Mar 3, 2025

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jeet1995 jeet1995 enabled auto-merge (squash) March 3, 2025 22:25
@jeet1995 jeet1995 merged commit 9046fe6 into Azure:main Mar 3, 2025
88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants