Code examples from my forthcoming book "Service Oriented Design in Ruby and Rails"