Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[IT Days Cluj 2016] Deliver Efficient RESTful APIs for Microservice Architectures

[IT Days Cluj 2016] Deliver Efficient RESTful APIs for Microservice Architectures

We look at the pros and cons of using microservice architectures, showcase RESTful approach for critical operations, discuss how to describe them with behaviour-driven tests, and tackle performance concerns.

Georgiana Gligor

November 19, 2016
Tweet

More Decks by Georgiana Gligor

Other Decks in Technology

Transcript

  1. Georgiana Gligor • Geek. Mother. Do-er. • Large-Scale Application Architect

    • PHP Cluj Meetup Organiser • Systems Engineering PhD Student @gbtekkie [email protected]
  2. 4. Smart endpoints and dumb pipes ‣ Microservice • holds

    its own domain logic • acts like a Unix filter ‣ Communication achieved using: • REST • lightweight message bus
  3. REST • REpresentational State Transfer • architectural style, not a

    protocol • introduced by Roy Fielding in 2000
  4. REST Constraints • start with an empty set of constraints

    • client-server for separation of concerns • stateless • response must be labelled as (non)cacheable
  5. REST Constraints (Cont’d) • uniform interface between components • layered

    system: a component can only “see” its immediate layer • code-on-demand [optional]
  6. How Do I Make It Efficient? • Infrastructure as code.

    • Establish non-functional requirements early on. • Measure all the things! • Don’t let code rot.