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

Distributed Tracing in Serverless Systems

Avatar for TechMasters TechMasters
September 28, 2018

Distributed Tracing in Serverless Systems

By Ron Yishai - Epsagon

Presented at Functions 2018 / ServerlessDays Toronto

https://functions.events/2018/toronto/ron-yishai/

Avatar for TechMasters

TechMasters

September 28, 2018
Tweet

More Decks by TechMasters

Other Decks in Programming

Transcript

  1. Monitoring/Observability - why do we need it? Track system health

    Troubleshoot and fix Optimize performance/cost
  2. The era of APIs We want managed resources Applications become

    Highly distributed Highly event-driven
 
 Without access to any server!
  3. Implementing Distributed Tracing Manual instrumentation •Before/after calls •At the end

    of each micro service •High maintenance •High potential of errors
  4. Serverless apps are very distributed •Complex systems have thousands of

    functions •What about the developer velocity?
  5. How much time do you really spend? Our own code

    API calls Infrastructure overhead
  6. Scanning functions – the easy way Scanning CloudWatch logs using

    AWS Lambda – every 5 minutes, save to RDS A new Lambda is spawned for every customer’s function (async) Sounds simple and fun! Poll Spawn (async) CloudWatch
  7. As time flies… CloudWatch became highly throttled ➔ requests took

    a very long time ➔ 5K concurrent Lambdas, for 5 minutes, every 5 minutes !!!!