Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Creating web services

530 visualizaciones

Publicado el

How to create twitter-like webservices. See also http://stage.vambenepe.com/archives/1801#comment-1075 and http://www.infoq.com/news/2011/09/ArchitecturalMirages

Publicado en: Tecnología, Empresariales
  • Sé el primero en comentar

  • Sé el primero en recomendar esto

Creating web services

  1. 1. Creating API for your web application<br />Adam Nemeth, @aadaam<br />
  2. 2. Every webapp can be ported to the mvc pattern<br />Theorem I.<br />
  3. 3. Every webapp can be ported to the entities-services-templates pattern<br />Theorem II. (this is what actually happens mostly)<br />
  4. 4. IF YOUR TEMPLATES ARE FREE OF business LOGIC, SERVICES CAN BE SEPARATED<br />Theorem III.<br />Free of logic: See [Parr,2002]<br />
  5. 5. YOU can always divide your templates to contextual and non-contextual to the given service<br />Theorem IV.<br />i.e. Master Layout and service-specific template<br />
  6. 6. Publish the data you fill your templates with their raw structure<br />Step 1.<br />i.e. serialize the key-value map of your template as JSON<br />
  7. 7. Make your services available without the non-service context templates as well<br />Step 2.<br />i.e. to do HIJAX<br />
  8. 8. Make your authorization abstract to your services<br />Step 3.<br />
  9. 9. Control 3rd party access to your services<br />Step 4<br />i.e. create an OAuth-gateway<br />
  10. 10. Separate all of your services to this layer and create only services your application uses<br />Invariant through the project<br />

×