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

Add a BoundPorts property to REstate gRPC Server #28

Merged
merged 2 commits into from
Dec 27, 2017

Conversation

aidapsibr
Copy link
Contributor

Description of the Change

✨ Adds a BoundPorts property to the gRPC server, so that a user can discover the bound ports when using the 0 flag for allocating a server on any unused port.

💚 Also had to convert scenario tests to async due to deadlocks under weird thread unavailability scenarios.

Alternate Designs

Why Should This Be In Core?

The flexibility is really nice for ad-hoc scenarios and tests.

Benefits

Using 0 for port allows you to run multiple isolated REstate servers on a single machine. Can be load balanced at another layer if desired.

Possible Drawbacks

Applicable Issues

Ovan Crone added 2 commits December 27, 2017 08:14
- Change REstateGrpcServer to set BoundPorts on Start, clear on shutdown
- Change Remote tests to use automatic port assignment
@aidapsibr aidapsibr added this to the v4.0 milestone Dec 27, 2017
@aidapsibr aidapsibr merged commit 7331cbb into master Dec 27, 2017
@aidapsibr aidapsibr deleted the gRPC-BoundPorts-use-unassigned-in-tests branch January 15, 2018 11:19
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.

1 participant