Hybrid Architecture with Apache Pulsar and Redis Boosts Game Performance by Cutting Latency and Crashes

May 23, 2026
Hybrid Architecture with Apache Pulsar and Redis Boosts Game Performance by Cutting Latency and Crashes
  • There isn’t a one‑size‑fits‑all answer for event streaming; choose a platform based on the specific tradeoffs your application requires, since Kafka’s fault tolerance and high throughput aren’t universally optimal.

  • Caching with Redis reduced data retrieval load and extended TTL, enabling faster delivery of the latest game state even when network latency spikes.

  • In a treasure-hunt game engine, event streaming is central to keeping game state up to date, preventing cheating, and scaling to thousands of players and millions of events per second.

  • For future improvements, explore alternative caching options such as Memcached or Amazon ElastiCache and build more robust testing to simulate high‑throughput workloads before deployment.

  • The switch dramatically improved performance, dropping latency from about five seconds to under 50 milliseconds and enabling the system to handle around 10 million events per second with fewer crashes.

  • The team moved to a hybrid architecture combining Apache Pulsar and Redis, creating separate streams for different game aspects and adding a Redis cache layer to store game state.

  • Initial Kafka choice led to high latency and periodic crashes, underscoring Kafka’s limitations for this use case even after tuning configurations.

  • The overarching lesson is that architectural decisions must be driven by concrete requirements and constraints of the application.

Summary based on 1 source


Get a daily email with more Tech stories

More Stories