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

Use awaiting connect for services relay #29

Closed
wants to merge 2 commits into from

Conversation

danielSanchezQ
Copy link
Collaborator

@danielSanchezQ danielSanchezQ commented Oct 17, 2023

The idea is to add a mechanism so a service that depends on another service knows when this other one is available. At the moment we stablish a connection between them (A => B) and the the service B replies whenver message arrives, but A has no way of knowing when is this. The firt attemp is to add a signal wrapper around relays (inbound/outbound) that will just return the OutboundRelay when the service has been initialize.

This said: The current approach in this PR is not working. Reason is that RelayState wrappers lose messages (state) when clonning, that makes that they may lose the first (and only) signal and keep waiting forever (?)

@danielSanchezQ danielSanchezQ added the enhancement New feature or request label Oct 17, 2023
@danielSanchezQ danielSanchezQ self-assigned this Oct 17, 2023
Copy link
Contributor

@zeegomo zeegomo left a comment

Choose a reason for hiding this comment

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

Could you summarize the rationale behind this change and what it's trying to accomplish?

@danielSanchezQ
Copy link
Collaborator Author

Could you summarize the rationale behind this change and what it's trying to accomplish?

Yes, this was meant to be a draft PR, but somehow couldn't make it a draft 🤔

@zeegomo
Copy link
Contributor

zeegomo commented Oct 17, 2023

Ahh no prob, I saw that you requested reviews and thought it was ready

@danielSanchezQ danielSanchezQ marked this pull request as draft October 17, 2023 11:17
@danielSanchezQ
Copy link
Collaborator Author

Closing in favor of #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants