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 init call on connections less heavy #8

Closed
dsienkiewicz opened this issue Apr 24, 2023 · 0 comments · Fixed by #18
Closed

Make init call on connections less heavy #8

dsienkiewicz opened this issue Apr 24, 2023 · 0 comments · Fixed by #18
Labels
enhancement New feature or request
Milestone

Comments

@dsienkiewicz
Copy link
Owner

Problem
On Connection.init we start MainSocket process, wait arbitrary number of seconds and then start StreamingSocket process.
Both calls could fail, also adding explicit sleep is not a good job.
We should divide that process to have some kind of managing process, which will have a function to actually start new connection, thus adding both Main and Streaming processes to some well-known Supervisor.

Solution
Let's try to create one Supervisor for all connections, so it should be responsible for restarting them, wiring them up after Main connection is ready etc.
It's only a draft plan, should be expanded after further investigation.

@dsienkiewicz dsienkiewicz added the enhancement New feature or request label Apr 24, 2023
@dsienkiewicz dsienkiewicz added this to the 0.2 milestone Apr 24, 2023
@dsienkiewicz dsienkiewicz linked a pull request Dec 28, 2023 that will close this issue
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 a pull request may close this issue.

1 participant