Monitoring Serverless Things
summary
A sample OCR pipeline wires Cloud Storage, Pub/Sub and Google Cloud Functions to fan out OCR + translation into five languages, then overlay translated text onto images and store results. Observability uses Stackdriver logs and custom metrics; Cloud Trace lacks full end-to-end tracing. Tests at 5 QPS for 5 minutes show ~5% 503s, adding memory and fixing a temp-file memory leak drops failures to ~2%. Caching and moving initialization to global scope cut latency to ~0.9s, and use of event ID as idempotency key prevents duplicate side effects.
AI-written summary · about
chapters (11)
- 0:00Introduction to serverless
- 1:09What serverless means
- 6:43Serverless business value
- 10:17Functions as a service
- 15:35Sample serverless app demo
- 17:21Handling failures in serverless
- 20:11Idempotency in serverless
- 22:38Expanding the demo app
- 24:03Monitoring serverless apps
- 26:11Optimizing function performance
- 28:16Q&A and closing
