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.

Microservices 2.0

2,609 views

Published on

Varnish Summit 2016

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Microservices 2.0

  1. 1. Varnish Software Marius Magureanu software developer marius@varni-sh.com
  2. 2. Microservice instrumentation with Varnish
  3. 3. Life after APIs… How about Microservices?
  4. 4. Microservices (1/2) • Application pattern used for the last couple of years • Reduces complexity by having small (micro) services that are relatively simple • Distributed application
  5. 5. Microservices (2/2) • Increase development velocity • Problem: Massive increase in the number of HTTP calls
  6. 6. zoo baz bar foo service directory
  7. 7. Varnish in a microservice architecture
  8. 8. quu zoo baz bar foo varnish
  9. 9. Gains • Centralise caching and invalidation • Allows for stateless micro-services • Add resiliency and monitoring
  10. 10. Profiling micro-services is hard
  11. 11. title_lu page_comp artd autho corr 30ms 10ms 55ms 40m s 98ms
  12. 12. Changes needed • Add the parent ID of call to the response
 • Any annotations that should be added as well
 • ModifyVCL to add parent ID of cached responses
  13. 13. GET /baz HTTP/1.1 Host: api.acme.com
 Apikey:
 Trace-id: 6382
 Span: 6731
 Parent-Span: 6636
 3e707fd1d239b3978d45
  14. 14. https://github.com/varnish/zipnish
  15. 15. Thanks

×