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

Document gRPC client lifecycle, #702 #709

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

patriknw
Copy link
Member

After too much tinkering of this I came to the conclusion that we should only document it. It's anyway working in the "right" way if following our code examples.

I first tried to bind the lifecycle to the lifecycle of the Projection instance, but it's anyway not enforced to be one GrpcReadJournal instance per Projection instance.

Then I explored the possibility to reuse clients for the same GrpcClientSettings and thereby enforce single instance per target producer and lifecycle bound to ActorSystem. That didn't work out because GrpcClientSettings is very open ended and not possible to use as key for such registry.

References #702

@johanandren johanandren merged commit d838cc3 into main Oct 12, 2022
@johanandren johanandren deleted the wip-702-client-lifecycle-patriknw branch October 12, 2022 15:05
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.

None yet

2 participants