Realtime and beyond with Mercure
summary
Mercure is used at Raven Controls to push realtime updates at stadiums and COP26, replacing 10s polling that produced over 50% of traffic; adopting Mercure cut requests, lowered costs and improved latency for critical incidents. Implementation details: publish via Mercure hub (Docker or binary), use Symfony/API Platform integration, offload to Symfony Messenger workers, choose BoltDB or memory transport and limit message history. They push rendered HTML over the wire for SSR apps, and rely on gather missed events plus Presence API to recover lost messages and track online users.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker background
- 3:39What is Mercure and why use it
- 6:12From polling to realtime with Mercure
- 9:10Pushing rendered HTML over the wire
- 11:46Mercure use cases and benefits
- 17:20Gathering missed events and Presence API
- 22:05Transports and message history
- 24:41Architecture and resource usage
- 27:13Connection management and browser limits
- 29:22Security and token expiration
- 30:51High availability and hub implementations
- 31:40Case study: COP26
- 33:32Case study: UEFA Euro 2020
- 35:39Impact and trade-offs of Mercure
- 36:42Q&A and closing remarks
