Skip to content

Split liveness and readiness probes - #26

Merged
o-mid merged 6 commits into
developfrom
feat/livez-readyz
Sep 18, 2026
Merged

o-mid merged 6 commits into
developfrom
feat/livez-readyz

Conversation

@o-mid

@o-mid o-mid commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

Problem

GET /healthz always returned ok, so the console could show the API online while Postgres or Kafka was down.

Solution

/livez and /healthz stay process-up. /readyz pings Postgres and dials Kafka (2s timeout). Arena probes /readyz and falls back to /healthz if the older API has no ready route.

How to test

go test ./internal/api/httpapi -count=1 -run 'TestLivez|TestReadyz'
go test ./internal/kafka -count=1 -run TestPing
Stop Kafka and confirm /livez is 200 and /readyz is 503.

@vercel

vercel Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
engagepulse Ready Ready Preview Sep 18, 2026 9:44am UTC

@o-mid
o-mid merged commit 5bea97e into develop Sep 18, 2026
4 checks passed
@o-mid
o-mid deleted the feat/livez-readyz branch September 18, 2026 09:46

This branch was successfully deployed

1 active deployment
Preview — adf89478 Deployed Sep 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant