Building a real-time analytics engine in JRuby
summary
Built a real-time ad analytics engine that handles tens of thousands of requests per second by splitting work into many tiny services, running on AWS VMs and buffering through RabbitMQ buffering so incoming hits always return 200 while processing is deferred. Implementation uses JRuby on JVM to mix Ruby productivity with Java libraries, persists messages to Cassandra (and uses MongoDB selectively), applies Java util.concurrent patterns for threading and back pressure, and ships — production-scaled and working.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 3:50Distributed system architecture
- 7:00System reliability and buffering
- 11:10Database choices and trade-offs
- 13:16Java concurrent tools for JRuby
- 17:11Thread safety and back pressure
- 19:41Actors and Akka in JRuby
- 20:48Storm and RedStorm alternatives
- 22:56Hadoop processing with JRuby
- 25:27Performance comparison JRuby vs Java
- 27:58Current use cases and tools
