SShortSingh.
Back to feed

Why Splitting Health Checks into Liveness and Readiness Prevents Restart Loops

0
·1 views

Using a single health endpoint in containerised services can cause orchestrators like Kubernetes to restart healthy pods during brief database slowdowns. The fix involves splitting health checks into two distinct probes: liveness, which confirms the process itself is functional, and readiness, which verifies that the service can currently handle traffic. A liveness endpoint should only check internal process state, while a readiness endpoint should validate external dependencies like databases and caches, returning a 503 if any critical check fails. Readiness probes should use short timeouts and run checks in parallel to avoid hanging probes, which are more disruptive than failing ones. An IETF draft standard for health check response formatting also offers a reusable structure that monitoring tools can parse consistently across services.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Git Branching Strategies Real Dev Teams Actually Use in Production

A new guide published on DEV Community explains how professional development teams use Git branching strategies in real-world environments, going beyond basic commands. It covers common workflows such as GitHub Flow, Git Flow, and Trunk-Based Development, along with how code moves through environments from local development to production. The guide highlights why protecting the main branch is critical, noting that most professional teams require all changes to pass through pull requests rather than direct pushes. It also addresses practical scenarios like hotfixes, CI/CD integration, and feature flags used across teams of varying sizes. The resource is aimed at both beginners and intermediate developers looking to align their habits with industry-standard team practices.

0
ProgrammingDEV Community ·

Why regex fails at email validation and what developers should use instead

A software developer argues that regex-based email validation, widely used across codebases, is fundamentally insufficient for confirming whether an address is real or deliverable. Common regex patterns approve disposable addresses, misspelled domains, and role-based inboxes while missing critical deliverability signals. The developer recommends a layered approach covering syntax checks, disposable and role-address detection, typo suggestions, and DNS MX record lookups to verify that a domain can actually receive mail. MX checks require a DNS query rather than a simple string test, which is why many developers skip this step despite it being among the most effective filters. The author has built and shared a free API endpoint on Cloudflare Workers that bundles all four validation layers into a single GET request with no signup required.

0
ProgrammingDEV Community ·

IETF Standardizes HTTP QUERY Method, First New HTTP Method Since PATCH in 2010

The Internet Engineering Task Force published RFC 10008 in June 2026, formally standardizing QUERY as a new HTTP method. QUERY is designed to address a longstanding limitation by allowing large, structured, read-only requests with a request body — something GET cannot do and POST handles only through semantic compromise. The new method is both safe and idempotent like GET, yet supports a request body like POST, and is cacheable by specification. However, widespread infrastructure — including WAFs, API gateways, CDNs, and CSRF middleware — is not yet equipped to handle the method, as most allowlists and cache-key logic predate the RFC. Cloudflare and Akamai engineers co-authored the standard, signaling that edge and CDN support is likely to arrive sooner than framework-level adoption.

0
ProgrammingDEV Community ·

How Writing a Resume Turned Into a Journey of Self-Discovery

A tech professional reflecting on a job application found the process unexpectedly revealing, as reviewing certificates, employment records, and project documents brought years of work back into focus. Beyond formal IT roles, the individual had quietly accumulated experience in event organizing, design, volunteer work, and startup ecosystem building. The reflection highlighted how growth often occurs through small, consistent decisions rather than single defining moments. The applicant noted that saying yes to opportunities — even under uncertainty — had shaped a multifaceted professional identity. Regardless of the application's outcome, the exercise served as a powerful reminder that personal development is often already underway before it is consciously recognized.