Passare ad un’architettura 100% REST

1,512 views

Published on

Enrico Rossomandi

Published in: Business
  • Be the first to comment

Passare ad un’architettura 100% REST

  1. 1. 100% REST Passare ad unarchitettura 100% REST: vantaggi del lavorare con le risorse. ENRICO ROSSOMANDO Developer of@mrredsend enrico@mangatar.net
  2. 2. REST1 CLIENT-SERVER2 STATELESS3 CACHE4 LAYERED SYSTEM5 UNIFORM INTERFACE @mrredsend enrico@mangatar.net
  3. 3. RESOURCEDELETE /list/12345 HTTP status 200 OKGET /user/redsend/avatar HTTP status200 OK Content Type image/jpegGET /user/redsend 200 OK HTTP status Content Type application/json Body {name:”enrico”}POST /card/12345/buy HTTP error 402 Payment Required @mrredsend enrico@mangatar.net
  4. 4. VANTAGGI 1 Scalabilità Supportare grandi carichi sfruttando le caratteristiche di HTTP (Cache e Proxy) 2 Portabilità Rendere semplice l’accesso all’applicazione da nuove tipologie di client 3 Semplicità Organizzare applicazioni complesse in semplici risorse @mrredsend enrico@mangatar.net
  5. 5. ARCHITETTURA POST /card/12345/buyClient Server ? framework ? framework JS PHP HTTP status 200 OK @mrredsend enrico@mangatar.net
  6. 6. ARCHITETTURA POST /card/12345/buyClient Server JavascriptMVC framework ? framework JS PHP HTTP status 200 OK @mrredsend enrico@mangatar.net
  7. 7. JavascriptMVC “ A collection of the best practices and tools for buil- ding JavaScript applications. Built on top of jQuery ” http://javascriptmvc.com/ @mrredsend enrico@mangatar.net
  8. 8. JavascriptMVC @mrredsend enrico@mangatar.net
  9. 9. ARCHITETTURA POST /card/12345/buyClient Server JavascriptMVC TONIC framework framework JS PHP HTTP status 200 OK @mrredsend enrico@mangatar.net
  10. 10. TONIC “...where resources are king and the library gets out of the way and leaves the developer to get on with it.” http://peej.github.com/tonic/ @mrredsend enrico@mangatar.net
  11. 11. TONIC @mrredsend enrico@mangatar.net
  12. 12. 100% REST JavascriptMVC TONIChttp://javascriptmvc.com/ http://peej.github.com/tonic/ ENRICO ROSSOMANDO Developer of @mrredsend enrico@mangatar.net

×