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

Decouple api from zmq backend #41

Open
mraspaud opened this issue May 21, 2022 · 0 comments
Open

Decouple api from zmq backend #41

mraspaud opened this issue May 21, 2022 · 0 comments

Comments

@mraspaud
Copy link
Member

At the moment, the zmq calls are tightly woven into the postroll code, making it difficult to add new backends for postroll.

Abstracting the current code and isolating zmq calls behind a simple backend api would allow us to add new backends. New backends could be interesting for several reasons, among which at least a couple which I think will help us develop cleaner postroll based application:

  • a pytest or testing backend, which would not actually make any network calls but instead would allow devs to know what has sent and recieved without the need to patch or mock,
  • an asyncio backend for applications that just need simple concurrency without threads.

Other backends are of course possible, like rabbitmq or other more specific libraries (for kubernetes maybe?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant