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

Make rpc.go so it can use a single link and send/receive multiple messages #52

Merged

Conversation

richardpark-msft
Copy link
Member

Service Bus and Event Hubs both allow you to send multiple messages on the management link. We weren't using this and it meant that we were creating a separate link per request.

This PR changes that so we pass in a unique message ID for each request, which allows us to demux the requests in the client, thus only using a single link.

This is how the other track 2 SDKs currently handle it.

richardpark-msft added 2 commits August 24, 2021 22:18
Copy link
Member

@serbrech serbrech left a comment

Choose a reason for hiding this comment

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

reviewed and added a few suggestions to improve the code.
looks good. about to test it.

Copy link
Member

@jhendrixMSFT jhendrixMSFT left a comment

Choose a reason for hiding this comment

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

Tentative approval as I'm out and don't want to block on this getting in.

Once you and @serbrech are happy with it and confident it works please merge and tag.

richardpark-msft added 5 commits August 26, 2021 14:28
- Do a type check when casting for  CorrelationID. For now, just ignore those uncastable messages.
@richardpark-msft richardpark-msft merged commit bff5bef into Azure:master Aug 26, 2021
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