Lifecycle
Last updated
This section covers how to implement lifecycle methods that control your microservice's initialization and shutdown behavior.
Rumi microservices have a well-defined lifecycle from initialization through running to shutdown. You can hook into this lifecycle using annotations to perform setup, initialization, and cleanup tasks.
Construction - Class instantiation
Initialization - @AppInit methods execute
Running - Message processing begins
Shutdown - @AppShutdown methods execute
Implementing Lifecycle Methods - Use @AppInit and @AppShutdown annotations
Initializing the Microservice - Handle first and initial messages for state initialization
Microservice Lifecycle - Conceptual overview of the full lifecycle
Cluster Initialization - How microservices initialize in a cluster
Last updated

