Lifecycle
Last updated
This section covers how to implement lifecycle methods that control your microservice's initialization and shutdown behavior.
Talon 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
Application Lifecycle - Conceptual overview of the full lifecycle
Last updated

