Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

SVS215 - Build observability into a serverless application

613 visualizaciones

Publicado el

Observability is a common challenge for developers. In this session, we share some approaches for addressing this challenge and discuss the trade-offs and limitations with both AWS and third-party tools.

Publicado en: Tecnología
  • Sé el primero en comentar

SVS215 - Build observability into a serverless application

  1. 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Build observability into a serverless application Yan Cui S V S 2 1 5 - R Principal Consultant THEBURNINGMONK LTD Moheeb Zara Senior Development Advocate Amazon Web Services
  2. 2. Agenda AWS tools: Amazon CloudWatch metrics, CloudWatch logs, AWS X-Ray Commercial tools Open-source tools Demo Live discussion
  3. 3. Related breakouts DOP308-S Building a culture of observability DOP327-R Monitoring and observability of serverless apps using AWS X- Ray DOP340-R Debugging serverless applications
  4. 4. Ask questions at any time!
  5. 5. Observability versus monitoring • Monitoring: Watch out for known failure modes • Observability: How well you’re able to debug a system and discover unknown unknowns • “In control theory, observability is a measure of how well internal states of a system can be inferred from knowledge of its external outputs.” —“Observability,” from Wikipedia • “The 4 pillars” of observability engineering (Twitter): • Monitoring • Alerting/visualization • Distributed tracing • Log aggregation/analytics
  6. 6. AWS tools • CloudWatch metrics • Monitoring • Alerting • Visualization • CloudWatch logs/Amazon Elasticsearch Service (Amazon ES) • Log aggregation • Log analytics • X-Ray • Distributed tracing
  7. 7. AWS tools • Out of the box • No “yet another vendor contract to approve” • Often single source of truth • Comparatively inexpensive • Not as polished and feature-rich as other commercial products • Good enough for many teams
  8. 8. What alarms should I have? • Lambda • Error rate • Throttle count • DLQ error count • Iterator age • Concurrent Execution (regional) • API Gateway • Tail (p90/p95/p99) latency according to your SLA/SLO • Success rate (e.g. 99% requests should return 2xx) • SQS • Message age
  9. 9. What alarms should I have? • Message flow rate is often a strong indicator of overall health of a asynchronous workflow • E.g. message in and message out should be 1:1
  10. 10. Commercial tools • Logz.io, Loggly, Elastic Cloud • Focus on log aggregation • Datadog, New Relic, Wavefront • Focus on monitoring • Often ingest data from CloudWatch • APM generally doesn’t work well for AWS Lambda • Splunk, Honeycomb • Event-based (“Everything is an event!”) • Lumigo, Epsagon, Thundra, IOPipe, Dashbird • Focus on serverless • Many have better tracing capability than X-Ray
  11. 11. Commercial tools • Very low-touch • Yet another third party • Can be expensive
  12. 12. Open-source tools • Monitoring/tracing systems • Prometheus (prometheus.io) • Jaeger (www.jaegertracing.io) • OpenZipkin (zipkin.io) • OpenCensus (opencensus.io) • dazn-lambda-powertools • Structured logging with JSON • Autopropagate and capture correlation IDs • Sample debug logs • Other utilities: obfuscation, detecting infinite loops, and so on • Serverless application repository (SAR)
  13. 13. Open-source tools • Very high-touch • Free • But you still pay for AWS resource usage • Tailor fit for specific problems • Mix & match capabilities from different OSS tools
  14. 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  15. 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Free, on-demand courses on serverless, including Deep Dive: Lambda@Edge and Deep Dive on AWS Fargate Visit the Learning Library at https://aws.training Additional digital and classroom trainings cover modern application development and computing Learn serverless with AWS Training and Certification Resources created by the experts at AWS to help you learn modern application development
  16. 16. Thank you! © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Yan Cui @theburningmonk https://theburningmonk.com
  17. 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

×