SSE Stream Flow
SSE Stream Characteristics
| Feature | Behavior |
|---|---|
| Reader Tracking | Each reader gets unique reader_id for independent position tracking |
| Heartbeats | Sent every 5 seconds when no data available |
| Auto-Timeout | Stream closes automatically after extended inactivity |
| Session TTL | Default 10 minutes (600 seconds) |
| Event Format | Standard SSE: data: {json}\n\n |
SSE Lifecycle Events
sse.stream.start
Sent when SSE stream connection opens.sse.stream.heartbeat
Sent periodically when no data events are available.sse.stream.end
Sent when stream closes (timeout or session termination).SSE Reader Statistics
Each reader tracks the following metrics:| Metric | Description |
|---|---|
num_messages | Total messages sent to this reader |
num_bytes | Total bytes transmitted |
num_errors | Transmission errors encountered |
stream_send_delay_sec | 95th percentile send latency |
sse_start_time | Stream start timestamp |
sse_end_time | Stream end timestamp |
sse_run_time | Total stream duration |