Commit, Recover & Transactions in Ruby. By Ilya Grigorik on January 21, 2008 The spec says 'transactions', we immediately think 'InnoDB'. But what if you're not using a database, working on a light-weight application, or simply want to ensure a graceful recovery process? In the past that usually meant layers of additional logic, variables to keep and capture intermediate state, and all the other associated headaches. That is, until Gregory Brown and Austin Ziegler published Transaction::Simple - a gem, both literally and figuratively, which makes transaction support in Ruby a walk in the park.
Transaction::Simple provides a generic way to inject transaction support into any object - that's right, any Ruby object. All the magic happens directly in memory, and thus there are no dependencies on additional backends. Applying similar patterns as we saw above, we can greatly simplify our recovery procedures in almost any Ruby program with minimal intervention: Ezmobius's nanite at master - GitHub. Lib/reliable-msg/message-store.rb at master from assaf's re. Reliable_msg.rb - activemessaging - Project Hosting on Google Co. The Current State of Asynchronous Processing With Ruby.