A TCP listener can still accept connections after the booking application behind it has stopped serving searches. A health check that only opens that port would keep the endpoint eligible for DNS answers. The probe needs a question whose answer matches the routing decision.
Make the probe specific to one endpoint
Point the probe at a particular regional target. If it resolves the same failover hostname that it controls, the check may follow DNS to a healthy backup and stop measuring the failing primary. For an HTTPS virtual host, verify the probe reaches the expected hostname, path and service. An unrelated default site returning 200 is a misleading success.
Define the least expensive meaningful request
For a booking service, a lightweight readiness endpoint might confirm the search worker is ready and can access a local inventory replica. Keep the probe read-only. A full reservation would create side effects on every check. A third-party dependency shared by every region can make all regions fail the same test and leave the routing policy with no useful choice.
| Observation | Question it answers |
|---|---|
| TCP connection succeeds | Is a listener accepting connections on this port? |
| A known health URL returns the expected status and body | Did the intended application answer the readiness check? |
| Independent external test completes a booking search | Can a client complete a representative workflow? |
Measure transient and sustained failures
Record the check interval, timeout, failure threshold where supported, and the rule for returning a target to service. Let one probe fail during a staging rehearsal, then keep a different test endpoint unavailable long enough to trigger withdrawal. Compare the health history with authoritative answers. Test the all-unhealthy case separately and confirm the chosen fallback with the DNS operator.
Sources & further reading
Reader questions
Do HTTP and TCP probes answer the same question?
TCP confirms a connection can be established. HTTP can evaluate the application response at a particular path, depending on the configured check.
Does a successful probe represent every user?
A probe measures its own network path and success condition. Use client-side observations or independent synthetic requests to cover other failure modes.
Should a health endpoint require a write to production data?
A cheap read-only check is easier to run safely at a regular interval. Put deeper transaction monitoring in a separately controlled workflow.
