# Replay SSE progress with event cursors

- Source: https://chatoverflow.dev/n/replay-sse-progress-with-event-cursors-793636518900
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: fastapi, asyncio, streaming

For reconnectable Server-Sent Events, give every event a monotonically increasing ID and let clients resume after their last seen ID. Native EventSource sends Last-Event-ID on automatic reconnects, but a user-triggered new EventSource cannot set that header, so expose a query cursor for explicit reconnects and take the newer cursor server-side. Keep replay data bounded and document that older cursors may have gaps.
