LA RubyConf 2009 Waves And Resource-Oriented Architecture

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    LA RubyConf 2009 Waves And Resource-Oriented Architecture - Presentation Transcript

    1. Resource-Oriented Architecture And Why It Matters And How Waves Make It Easier
    2. dan yoder interactive r&d director.hacking dan@zeraweb.com http://twitter.com/dyoder http://dev.zeraweb.com/ AutoCode • Functor • Filebase Waves • Pages • Hoshi • DateJS
    3. The Web works pretty well.
    4. Web Sites (M) 160 120 Scalability? 80 The Web Has It. 40 0 2005 2006 2007 2008
    5. HTML JSON CSS Open? M I M E Yep. Mostly, anyway. XML RSS RDF
    6. Existing Infrastructure? Firewalls, Edge Caches, Proxy Servers, Etc.
    7. But why does it work?
    8. The Web Isn’t MVC So Why Do We Use It So Often For Web Apps? http://www.flickr.com/photos/seokchanyun/
    9. RSS: From Blogs To Podcasts Feed provides RDF-like metadata, media-type can vary, many different clients. http://www.flickr.com/photos/abletoven/
    10. login get request token grant permission get permission Provider Consumer Resource Proxy access resource access token HTTP Auth OAuth OAuth Smart Proxies Like firewalls for your apps - implementors don’t need to add OAuth support directly.
    11. Video Search Edge caching takes the burden of caching away from overloaded servers. http://www.flickr.com/photos/33122834@N06/
    12. Taking a step back ...
    13. ROA Is Just Distributed Objects. Except based on Fielding’s REST constraints.
    14. ROA Solves An Old Problem. RPC? CORBA? DCOM? DSOM? RMI? SOA? http://www.flickr.com/photos/secretlondon/
    15. Learning From Past Mistakes
    16. Be platform neutral. Don’t assume anything about the format of an object. Let the client specify it, instead. http://www.flickr.com/photos/dirigibleduck/
    17. Be Wire Neutral, Too. Protocols evolve and change. Make it possible to link to resources using older protocols. http://www.flickr.com/photos/megans_photography/
    18. Define Meta-Object Protocols “Uniform stateless interface” means rich interactions happen on the client.
    19. Don’t Forget Performance. This means edge caching and pushing computation out to the client. http://www.flickr.com/photos/24293932@N00/
    20. Allow Layered Architectures Proxies and gateways can decouple server implementations from network policies. http://www.flickr.com/photos/rengel134/
    21. Waves and ROA ...
    22. Rich DSL for HTTP requests on( :get, [ ‘location’ ], :query => { :lat => /\\d{4}/, :long => /\\d{4}/ }, :accept => [ :json, :xml ] )
    23. But it’s still just Ruby ... pages $ waves console Pages::Resources::Story.instance_methods & %w( get put post delete ) # => [\"delete\", \"post\", \"put\", \"get\"]
    24. Resource Classes Inheritance. I can now just inherit from a base class to provide common REST features. Modularity. Request-handling is broken down into logically discrete chunks, just like normal classes. Performance. I don’t have to go through each possible match - just those for the matching resource.
    25. The One File Waves App module HelloWorld include Waves::Foundations::Compact module Resources class Map on( :get, [] ) { \"Hello #{query.name}\" } end end end
    26. Roadmap # TODO: this is a hack ...
    27. A Resource DSL class Blog include Waves::Resource::Server   resource :list, :expires => 3.days, [ ‘blogs’ ]  do     get { model.find_all }   end   resource :element, :expires => 3.days, [ ‘blog’, :name ]  do     get { model.find_by_name( captured.name ) }   end   schema :element, [ 'schema', 'blog', '2009-03' ] do     attributes :title => String, :description => String     link :entries, :list => Story   end   representations :list do    as :html, :lang => :en do | blogs |      view( :blog ).list( blogs )    end   end end
    28. Waves::Vitals Initial 0.7.0 release Feb 08 Release 0.8.3 Available Soon! Of course, we’re on git. http://github.com/waves/stable Join Us On Google Groups. rubywaves irc:freenode.net#waves And, lest we forget, a Web site. http://rubywaves.com/
    29. Shout Out polymar, rue, leetspete, kaykay, automatthew, pascal, copawaves, and many others.
    30. Thanks!

    + Dan YoderDan Yoder, 7 months ago

    custom

    734 views, 1 favs, 2 embeds more stats

    What is resource-oriented architecture? Why does it more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 734
      • 730 on SlideShare
      • 4 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 38
    Most viewed embeds
    • 3 views on http://keletsoflorencel3fle.wordpress.com
    • 1 views on http://localhost

    more

    All embeds
    • 3 views on http://keletsoflorencel3fle.wordpress.com
    • 1 views on http://localhost

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories