Real-time App Architectures: A Comparison of Poke/Pull, Push State, Push Ops, and Event Sourcing
2025-02-10
This article explores four main patterns for building real-time applications: Poke/Pull, Push State, Push Ops, and Event Sourcing. Poke/Pull is easy to integrate but suffers from fan-out issues; Push State directly pushes state but struggles with large-scale state updates; Push Ops push operations instead of the entire state, which is more efficient; Event Sourcing pushes events, requiring client-side logic. The article also compares different transport methods (WebSockets, SSE, etc.) and their challenges in horizontally scaled systems, highlighting the role of Pub/Sub.
Read more