Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Modern web architectural patterns

1,292 views

Published on

short notes on some common patterns for modern day web apps

Published in: Technology, Business
  • Be the first to comment

Modern web architectural patterns

  1. 1. Modern web architectural patterns Paulo Gandra de Sousa @pagsousa
  2. 2. Modern web application Data Transfer Object pattern The model-view pattern family Representational State Transfer Architectural style
  3. 3. DTO • An object that carries data between processes in order to reduce the number of method calls.
  4. 4. REST • REpresentational State Transfer • Architectural Style NOT a technology • ‘Resource’ as the main abstraction • Key principles – – – – – Everything has an ID Uniform interface Multiple representations Comunicate statelessly Link things together
  5. 5. REST/HTTP • The most common REST instantiation • Use HTTP verbs and response codes – GET – PUT – POST – DELETE – Well defined semantics
  6. 6. MV* • Movel – View – * • A family of patterns – – – – MVC MVP MVvW ... • Split user interaction into distinct roles – – – – – Model – the data & behaviour View – a specific way to render the model Controller – handles user input (mouse, keyboard, ...) Presenter – mediates between views and models ViewModel – a view’s state mediating between views and models
  7. 7. MVC / MVP / MVvM
  8. 8. Connecting the dots

×