RESTful Modeling with ActiveRecord

Posted by Jake Good
on May 19, 07

Here we go… something I’ve been waiting for. Hopefully we’ll be seeing a lot code. These Vonage guys should know what they’re talking about.



Problems faced… quick solutions over good solutions, good enough for now philosophy, anti-patterns… meatball architecture.



Solution: Choose a simple protocol… text over HTTP… REST… right tool for the right job…



Two components are required to make things work: Back End (Service Layer) and Front End (Application Layer)…



RestResource - back end / service solution… Maps a RESTful interface on top of ActiveRecord objects. Exploits ActiveRecord model relationships…. XML is proprietary (not using to_xml)… GET API… creating a simple HTTP URL Based API



ActiveREST - serves as the front end application or service consuler. Converts RESTful XML into objects. Provies an ActiveRecord-like interface to objects. Dynamic Objects on Demand.



Decoupled stuff…



These really seems like .Net developers who wanted to write an N-Tier application in Rails with web services… using REST. Errr SOA stuff…



ehh… yeah… that’s all I can say about this talk.



It’s supposedly open source: http://www.blizzo.com

Comments

Leave a response

Comment