FAROS icon indicating copy to clipboard operation
FAROS copied to clipboard

CodeDashboard 10-second polling has no request deduplication

Open naokisast opened this issue 3 months ago • 0 comments

CodeDashboard 10-second polling has no request deduplication

Severity: Low File: frontend/src/pages/Code/CodeDashboard.tsx:47

The dashboard polls loadSessions every 10 seconds without checking if a previous request is still in flight. If the backend is slow or the network is congested, multiple concurrent requests pile up, wasting bandwidth and potentially causing race conditions.

useEffect(() => {
  loadSessions()
  const interval = setInterval(loadSessions, 10000)
  return () => clearInterval(interval)
}, [])

Why it matters

Under poor network conditions, the dashboard can spawn dozens of concurrent requests, degrading performance and potentially overwhelming the backend.

naokisast avatar Aug 30 '26 20:08 naokisast