Lifecycle
This section covers how to implement lifecycle methods that control your microservice's initialization and shutdown behavior.
Overview
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.
Lifecycle Phases
Construction - Class instantiation
Initialization -
@AppInitmethods executeRunning - Message processing begins
Shutdown -
@AppShutdownmethods execute
Topics
Implementing Lifecycle Methods - Use
@AppInitand@AppShutdownannotationsInitializing the Microservice - Handle first and initial messages for state initialization
Related Topics
Application Lifecycle - Conceptual overview of the full lifecycle
Last updated

