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

Introducing cronback services abstraction #20

Closed
wants to merge 1 commit into from
Closed

Conversation

AhmedSoliman
Copy link
Contributor

@AhmedSoliman AhmedSoliman commented Jul 26, 2023

Introducing cronback services abstraction

  • Configuration is broken up into MainConfig and now each service hosts its own config.
  • No more Role enum, roles are defined when services implement CronbackService trait.
  • Initialization of all services happen before we serve any traffic
  • Services are initialized by the order at which they are registered in main.rs
  • Cronback crate is also a library, this enables alternative main() functions from downstream crates

Stack created with Sapling. Best reviewed with ReviewStack.

- Configuration is broken up into `MainConfig` and now each service hosts its own config.
- No more Role enum, roles are defined when services implement `CronbackService` trait.
- Initialization of all services happen before we serve any traffic
- Services are initialized by the order at which they are registered in main.rs
- Cronback crate is also a library, this enables alternative main() functions from downstream crates
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

Successfully merging this pull request may close these issues.

1 participant