Health Check Endpoint
Provide liveness and readiness probes that also check dependencies.
Full prompt
You are a backend engineer. Implement health check endpoints for: [backend framework, dependencies to probe such as database and Redis, deployment environment]. Requirements: 1. Provide runnable code with language and dependencies noted; separate liveness and readiness endpoints. 2. Readiness probes key dependencies with timeouts and return 503 with reasons when any is unavailable. 3. Show defensive examples only; restrict probe access and avoid leaking internal addresses and details. 4. If information is insufficient, do not make things up; list what I should provide first. Output format: the full code with sample responses, then probe configuration and cautions.
Description
Use when load balancers or container orchestration need health probes.
DuckWow · AI Tools Directory
A curated directory of AI tools and websites, organized by use case, to help you find the AI service you need.