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

Split registration and worker services into separate processes #365

Open
Tracked by #257
poszu opened this issue Sep 1, 2023 · 0 comments
Open
Tracked by #257

Split registration and worker services into separate processes #365

poszu opened this issue Sep 1, 2023 · 0 comments
Milestone

Comments

@poszu
Copy link
Contributor

poszu commented Sep 1, 2023

The Poet is split into registration and worker services in #355. However, both are part of the same binary. The task is to separate them to be able to run registration and worker in separate processes, potentially on different machines.

They should talk via a message queue on 2 topics:

  1. rounds
    • Registration writes data of a round it closed (epoch and membership root),
    • Worker listens for rounds to execute.
  2. proofs
    • Worker writes generated proofs,
    • Registration listens for new proofs.

💡 The option to run them together in a single process (aka a standalone mode) could probably stay for cloud deployments, go-sm unit- and system-tests etc.

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

No branches or pull requests

1 participant