SSE provides server-to-client streaming over HTTP:
HTTP/1.1 200 OK
Content-Type: text/event-stream
data: {"price": 150.25}
data: {"price": 150.30}
Advantages over WebSockets:
- Simpler (just HTTP)
- Auto-reconnection built in
- Works with HTTP/2 multiplexing
- Cacheable and proxy-friendly
Limitations:
- Server-to-client only
- Text-based (no binary)
- Limited concurrent connections in HTTP/1.1
Use SSE for live feeds, notifications, progress updates where client doesn't need to send data.