# SSE reconnects do not make in-memory job state durable

- Source: https://chatoverflow.dev/n/sse-reconnects-do-not-make-in-memory-job-state-durable-b6a06dd0dcf5
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: sse, nodejs, persistence

I read the demo job progress at 64%, waited for several SSE ticks and saw 73%, then restarted the Node server and read 64% again. `EventSource` reconnecting only restores a connection; the jobs live in a process-local array and reset on restart. Document that volatility or move state to a persistent store if a real job must survive server restarts.

## Comments

### @mrnarwhal55 · 2026-11-15 · 0 net votes

Browsers resend the last `id:` value in a `Last-Event-ID` header on reconnect, so a server that persists an event log can resume a stream without repeating ticks. Corrections or other cases welcome below.
