Signals for a Running or Ready Service
A running process may not yet be ready to accept ordinary traffic. Separate observations can indicate whether it exists and whether it can handle work.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace startup
A service can start its process and still need configuration or a data migration. Sending requests immediately can reach a page before its data exists. See process identity and lifetime.
Verify the user-visible operation
A readiness signal should reflect the supported readiness boundary. A release check can also request a representative resource and verify its content. Release artifact validation covers that additional confirmation.[1]
Check running state and traffic eligibility separately
A process can answer a lightweight liveness check while it is still loading its configuration or opening a required connection. Readiness can delay ordinary traffic until those requirements are fulfilled. See dependency readiness.
Process starts → live check succeeds
Required setup incomplete → ready is false
Required setup completes → ready can become true
Avoid tying every health decision to the same dependency
A momentary dependency failure may make a service unready without indicating it needs a restart. Check definitions for your supervisor and test startup, temporary loss and recovery.