WebSocket vs SSE vs polling, reconnection with backoff and jitter, heartbeats, backpressure, message ordering, connection state UI, auth on upgrade, graceful degradation
94
98%
Does it follow best practices?
Impact
90%
1.87xAverage score across 5 eval scenarios
Passed
No known issues
A DevOps team needs a real-time dashboard that displays live server metrics (CPU usage, memory usage, request rate, error rate). The backend collects metrics every 2 seconds and pushes them to all connected dashboard clients. The dashboard shows current values and a rolling 5-minute chart for each metric.
Build a Node.js/Express backend and React/TypeScript frontend:
Produce the following in a src/ directory:
Server:
src/server.ts -- Express server with real-time metric streamingsrc/metrics.ts -- Metric simulation and storageClient:
src/components/Dashboard.tsx -- Main dashboard layoutsrc/components/MetricCard.tsx -- Single metric display with current value and chartsrc/hooks/useMetrics.ts -- Hook that manages the real-time metrics connectionUse in-memory storage. Do not include test files or build configuration.
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
skills
realtime-web-patterns
verifiers