dx: projection lag health endpoint #233
Labels
No labels
bug
documentation
enhancement
investigation
nice-to-have
performance
production-ready
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ash/eskit#233
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
subscription/lag_monitor.goexists for tracking projection lag, but there is no HTTP handler to expose this. Production apps need a health endpoint to answer: "Are my projections caught up?"Currently operators must build this themselves every time.
Solution
Add
eskit.ProjectionHealthHandler(monitors ...LagMonitor) http.Handlerthat returns:status: okwhen all lags < threshold (configurable)status: degradedwhen any lag > thresholdPillar: Developer Experience, Production Readiness