Skillscast (film, code, slides): Deprecating ActiveResource: Alternative Approaches for Internal Rails Services
Ruby on Rails has always been optimized for a single monolithic application architecture. But as applications grow, it has become more and more common for architects to seek out ways to break their monolithic Rails apps into self-contained services. For years the most natural answer of how to hook up one Rails app to another’s API has been to use ActiveResource, a core Rails plugin that provides an ActiveRecord-like interface to an external service. The allure of such a simple interface to a network service is undeniable, but the downsides not nearly as obvious. Many have built Rails apps relying on ActiveResource only to feel significant unforeseen pain down the line. This talk provides a case study of an early adopter of ActiveResource during the Rails 1.2 era, the pain that it led to, and the eventual replacement of ActiveResource with a bespoke private gem that provides a similar, but more robust interface. https://skillsmatter.com/skillscasts/5283-deprecating-activeresource-alternative-approaches-for-internal-rails-services












