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

Partial support client results in sharding mode. #1828

Merged
merged 7 commits into from
Sep 11, 2023

Conversation

JialinXin
Copy link
Contributor

@JialinXin JialinXin commented Sep 7, 2023

Make client invocation supported in sharding mode. Currently CI manager rely on single response from service side which make it not work in multiple endpoints scenarios that server side has to manage all the endpoints results before completion.

  • Support CI ServiceMessages in routing. Limitation: server should have knowledge of client connection and endpoint mapping so custom router has to return single endpoint always and won't get noise by irrelevant endpoints. Otherwise, throw exception before fully support.
  • Make CI manager supports multiple endpoints results management.

@JialinXin JialinXin marked this pull request as ready for review September 7, 2023 06:56
@JialinXin JialinXin enabled auto-merge (squash) September 8, 2023 09:00
}
if (endpointCnt == 0)
{
throw new ArgumentException("Client invocation is not sent because no endpoint is returned from the endpoint router.");
Copy link
Member

Choose a reason for hiding this comment

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

throw AzureSignalRNoEndpointAvailableException?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The exception sounds like endpoints are down but actually results are returned from (custom) router. So suggest current information is clear enough.

@JialinXin JialinXin merged commit 1ed0709 into Azure:dev Sep 11, 2023
JialinXin added a commit that referenced this pull request Sep 14, 2023
* Add echo in ServiceProtocol. (#1829)

* Partial support client results in sharding mode. (#1828)

* Partial support client results in sharding mode.

* limit single to avoid timeout waiting.

* Better information.

* update doc

* fix count.

* better exception information.

* Update version.props (#1830)

---------

Co-authored-by: Zhenghui Yan <vwxyzh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants