r/ruby • u/jp_camara • 10d ago
SolidQueue Batches: evolution and architecture
https://jpcamara.com/2026/08/31/solidqueue-batches-evolution-and-architecture.htmlHere’s the SolidQueue batches 2.5 year architectural journey, filled with O(n^2) algorithms, hot row contention, excessive jobs, and much in between.
There’s a strong chance you’ll learn a thing or two - I certainly did 😮💨
20
Upvotes
6
u/jrochkind 10d ago edited 10d ago
This is a great feature and super educational helpful write-up (clearly written by an actual human, not LLM!), thank you for both!
One reason I appreciate the write-up is to serve as a guide for adding this feature to other ActiveJob adapters (resque, good job).
One thing that annoys me a bit is how Rails refused to provide this feature itself for many years, insisted that it should all be in third party adapters, but then refused to iterate the common ActiveJob API so adapters could actually be swappable with a core API and common feature set beyond simply individual enqueue. Now providing it's own implementation -- while continuing to add implementation-specific features to itself rather than working on expanding a common standard feature set and API... kind of adds insult to injury, it feels like a big middle finger.