Data EngineeringFDE integration and deployment foundations

Separate liveness and readiness checks

PK
Pankit Kumar
Sr. Data Scientist at Parexel (a Goldman Sachs–backed company) · 20 September 2026 · 2 min read
Technically reviewed by Ishaan Sharma
In this article (3 sections)

Liveness answers whether the process should restart. Readiness answers whether it should receive traffic. Conflating them can create restart storms during a dependency outage.

Simulate three states

The integration lab evaluates healthy, database-down and process-dead fixtures.

python
from integration_cases import probes_case

result = probes_case()
assert result["rows"][1]["liveness"] == 200
assert result["rows"][1]["readiness"] == 503
assert result["dependency_outage_restart"] is False
assert result["dependency_outage_removed_from_traffic"] is True
assert result["platform_executed"] is False

Use startup probes for slow initialization, liveness for unrecoverable process failure and readiness for dependency, migration or overload conditions. Keep each check bounded and cheap. A readiness failure should allow recovery without losing in-memory work; a liveness restart needs grace and idempotent recovery.

Test thresholds to avoid flapping and cascading restarts. Monitor probe outcomes with service errors so a permanently unready deployment alerts the owner.

The FDE for Freshers course connects probe semantics to cloud reliability.

Exercise

Implement three endpoints/states in a local service and write a table of platform action for each. Inject database failure and verify no restart trigger.

Continue learning

This article is part of the FDE integration and deployment foundations sequence. Use the neighbouring tasks when you need the prerequisite or the next application.

Reference: Kubernetes liveness, readiness and startup probes.

PK
Pankit Kumar
Lead Instructor, NeuraPath Academy

Pankit Kumar has 10 years in Data Science & AI, building and shipping production systems in regulated pharma and clinical environments. He is a freelance trainer at Boston Institute of Analytics, AnalytixLabs and Scaler, and has taught this material to thousands of working professionals.

This article is part of our FDE for Freshers programme — 6–7 months. Build your engineering foundations, then take AI from discovery to delivery.

Explore FDE for Freshers
Counselling is free · no obligation

Not sure which programme fits?

Tell us your background and we will map it to the right entry point — including saying so when a cheaper programme is the better fit. A counsellor replies within one working day.