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

Support for configuration hot reload and efficient caching and validation #21

Merged
merged 2 commits into from
Jul 30, 2023

Conversation

AhmedSoliman
Copy link
Contributor

@AhmedSoliman AhmedSoliman commented Jul 27, 2023

Support for configuration hot reload and efficient caching and validation


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
@AhmedSoliman AhmedSoliman marked this pull request as ready for review July 27, 2023 22:24
@AhmedSoliman AhmedSoliman merged commit a1100bf into main Jul 30, 2023
3 checks passed
@AhmedSoliman AhmedSoliman deleted the pr21 branch July 30, 2023 22:16
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