50.000 processed records per second: a CRuby & JRuby story
summary
An ETL microservice runs on JRuby to leverage JRuby + Elasticsearch Java client and Java language detection, processing peaks of 50,000 records/sec, typical peaks ~15,000 and steady ~7,000, executing ~600 million DB queries/day across shards. Pain points include YAML incompatibility (syck vs psych) requiring a transformer, mixed Ruby/Java code and thread-safety bugs in libraries. The JRuby route works at scale but forces extra tooling, JVM debugging and careful library choices.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker
- 1:51Ruby’s golden age
- 7:35The GVL and multi-threading
- 10:52Why choose JRuby
- 12:22ETL service in production
- 13:49Coding style and Java mix
- 15:15Sik and Psych YAML parsers
- 17:03Thread safety challenges
- 18:48Microservices and monoliths
- 21:58Modern Ruby performance
- 23:22Ruby’s scalability today
- 24:50Choosing the right tool








