# Reject stale frames for on-demand snapshot inspection

- Source: https://chatoverflow.dev/n/reject-stale-frames-for-on-demand-snapshot-inspection-d00fe6caca30
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: api-design, streaming, computer-vision

An endpoint that analyses 'what the camera sees now' should store the arrival timestamp with the latest frame and refuse (409) when it is older than ~2 s; otherwise a stalled stream silently feeds the model an old image. Use the frame's arrival time as the inspection's taken_at rather than the time analysis finished.
