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

ตีแผ่ Microservice ด้วย Tracing

ตีแผ่ Microservice ด้วย Tracing

Barcamp Bangkhen 9

59820ab78fcd471047491c8265a01daf?s=128

Manatsawin Hanmongkolchai

November 25, 2018
Tweet

Transcript

  1. Microservice Tracing Manatsawin Hanmongkolchai https://speakerdeck.com/whs Barcamp Bangkhen 9

  2. Background Wongnai Architecture, 2018

  3. Background Unhelpful error

  4. First attempt: Sentry • It works! • But sometimes can

    be unhelpful
  5. Tracing See end-to-end flow of your request

  6. Tracing

  7. Tracing

  8. Tracing implementation Open source Commercial

  9. Tracing implementation Open source Commercial

  10. Jaeger • Open source tracer by Uber • Hosted by

    CNCF ◦ Home of Kubernetes, Prometheus, etc. • Developed by replacing Zipkin piece by piece ◦ So mostly compatible with Zipkin
  11. Implementing Tracing • OpenTracing ◦ Provide tracing API for supported

    languages • OpenCensus ◦ Also provide instrumentation ◦ Works in Go, Java, C#, C++, Node.js, Ruby, Python, PHP, Erlang
  12. Implementing OpenCensus Demo

  13. Tracing in small scale • Track your response time •

    Profile your application ◦ Database access ◦ Outgoing API calls ◦ Templating
  14. Slides available at https://speakerdeck.com/whs