Wiki: Open Source in Israel - Sneakers
For agents: Markdown version · Wiki index · Explore
- Speaker: Dotan Nachum
- Event: Reversim Summit 2014
- Video: https://www.youtube.com/watch?v=9JNPixvF_T8
- Transcript: /transcripts/2014/20-9JNPixvF_T8.md
- Language: Hebrew · Type: ignite · Level: advanced
- Topics: Distributed Systems, Open Source, Performance, Software Engineering
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker introduces an open-source background processing library designed specifically for high-performance needs in Ruby. The talk explains the architectural motivation behind the library, combining multi-processing and multi-threading models to overcome performance bottlenecks found in traditional tools. The audience learns how the speaker optimized throughput and designed a developer-friendly API while hiding complex messaging protocols. Ultimately, the session demonstrates how to achieve massive performance gains for background jobs in a language ecosystem often constrained by threading limitations.
Key points
- 0:00 The speaker introduces a high-performance background processing library for Ruby focused strictly on performance.
- 1:09 The architecture combines multi-processing and multi-threading models to provide a developer-friendly API while abstracting away underlying message queue complexities.
- 2:14 Traditional background processing tools suffer from a mismatch with multi-threading and lack high availability guarantees.
- 3:24 Early benchmarks showed a dramatic increase in jobs per second compared to conventional Ruby background processing solutions.
- 4:26 Modern iterations of the library can handle thousands of jobs per second on modern hardware, bypassing standard concurrency limitations in Ruby.
Takeaways
- Evaluate multi-threading and multi-processing combinations to solve performance bottlenecks in dynamic languages.
- Hide complex underlying infrastructure and messaging protocols behind a simple, intuitive developer interface.
- Benchmark thoroughly against existing tools before deciding to build a custom high-performance library.
Questions this talk answers
- How can you achieve high-performance background processing in Ruby despite concurrency limitations?
- What are the architectural trade-offs between general-purpose background processors and performance-focused ones?
Technologies
Ruby, RabbitMQ
Tags
background processing, concurrency, open source, performance, ruby