microservice instrumentation

Download Microservice instrumentation

Post on 15-Aug-2015

44 views

Category:

Internet

1 download

Embed Size (px)

TRANSCRIPT

  1. 1. Microservice instrumentation with Varnish
  2. 2. 1 2 3 4 Effort Complexity / Effort Complexity
  3. 3. Microservices Application pattern used for the last couple of years Reduces complexity by having small (micro) services that are relatively simple Distributed application
  4. 4. Varnish in a microservice architecture
  5. 5. quux zoo baz bar foo varnis h
  6. 6. Gains Centralize caching and load balancing Allows for stateless microservices Record timing information on every tx With a bit of help: infer relationships between tx
  7. 7. Profiling microservices is hard
  8. 8. title_lu page_compose r artdb author corr 30ms 10ms 98ms
  9. 9. Changes needed Add the parent ID of call to the response Any annotations that should be added as well Modify VCL to add parent ID of cached responses
  10. 10. GET /baz HTTP/1.1 Host: api.acme.com Apikey: 3e707fd1d239b3978d45 Trace-id: 6382 Span: 6731 Parent-Span: 6636
  11. 11. HTTP/1.1 200 OK Server: varnish Trace-Annotations: GC,miss Content-Type: application/json
  12. 12. thanks

Recommended

View more >