Stream Updates with HTTP/2 Server-Sent Events & Hemera
- Frontend with
Vuejs,Parcel bundler - Backend with
NATS messaging system,HemeraandFastify
Download and start nats-streaming-server
npm start
- Subscribe to Hemera events and Named events in the frontend
- Subscribe to durable message queue via Hemera/NATS-Streaming
- Reply message at special HTTP header (Last-Event-ID) in NATS-Streaming
- Use HTTP2 to be more efficient multiplexing, header-compression ...
- Stream JSON
- Setup frontend
- Setup backend
- Try SSE with HTTP/1
- Use HTTP/2
- Use Hemera