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

Channel usage #6

Open
jrhea opened this issue Apr 14, 2020 · 0 comments
Open

Channel usage #6

jrhea opened this issue Apr 14, 2020 · 0 comments

Comments

@jrhea
Copy link
Owner

jrhea commented Apr 14, 2020

What is the best way to utilize channels for event/message passing in imp?

Once a solution is settled on it should probably be pushed to mothra to abstract away the issue

  • another issue is the design of two way communication between services.
    • Do I create a separate tx/rx pair for each communication dir?
    • would broadcast channels help?

https://docs.rs/tokio/0.2.18/tokio/sync/broadcast/index.html

  • consider just using the watch channel for shutdown command

  • combining mpsc and oneshot might be a hand way to setup a req/resp style pattern

  • should I design an event bus abstraction to simplify usage?

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

No branches or pull requests

1 participant