Hunting errors in serverless applications
In this blog post you will learn different ways to hunt errors in Serverless Applications. We are going to focus on unit and integration tests, debugging live applications and creating chaos engineering experiments.
Introduction to testing serverless applications
In the first video the series “Hunting for Errors in Serverles Applications” I will introduce you to testing serverless applications.
Writing unit tests in serverless applications
In the second video in the series “Hunting for Errors in Serverles Applications” we go into an example of how to write unit tests for serverless applications.
Links mentioned in the video:
- DynamoDB operations video: https://youtu.be/EzgyTzJll5U
- Environmental variables video: https://youtu.be/agbQugeDbHI
- Github code: https://github.com/mavi888/sls-unit-test
Writing integration tests in serverless applications
In the third video in the series “Hunting for Errors in Serverles Applications” we are continuing with the testing topic. We are going to learn how to write integration tests. We are writing integration tests against our AWS Lambda and API Gateway. And then we are adding a step in our CI/CD Gitlab pipeline to run these tests after deployment.
Links mentioned in the video:
- Getting started with Serverless applications playlist: https://www.youtube.com/playlist?list=PLGyRwGktEFqedFrqKLIzmUXlsiQ4tbdyo
- Getting started with Gitlab CI/CD: https://youtu.be/C9ZhZE0kusw
- Github code: https://github.com/mavi888/sls-unit-test
Debugging live serverless applications
This is the fourth video in the series “Hunting for Errors in Serverles Applications”, we are going to debug a live application in the cloud using Thundra (https://www.thundra.io/). Observability tools are great for finding errors in our live applications.
Links mentioned in the video:
- Getting started with Serverless applications playlist: https://www.youtube.com/playlist?list=PLGyRwGktEFqedFrqKLIzmUXlsiQ4tbdyo
- Using the parameter store: https://youtu.be/QHbrEP1oN_I
- Getting started with Artillery: https://youtu.be/Wd2FUtSMzic
- Github code: https://github.com/mavi888/sls-debug-live-app
Experimenting with chaos engineering in serverless applications
In the fifth video in the series “Hunting for Errors in Serverles Applications”, we are going to create chaos engineering experiments for a serverless application using Thundra (https://www.thundra.io/).
Links mentioned in the video:
- Getting started with Serverless applications playlist: https://www.youtube.com/playlist?list=PLGyRwGktEFqedFrqKLIzmUXlsiQ4tbdyo
- Using the parameter store: https://youtu.be/QHbrEP1oN_I
- Getting started with Artillery: https://youtu.be/Wd2FUtSMzic
- Getting started with Layers: https://youtu.be/aKD9Vftr6i4
- Github code: https://github.com/mavi888/sls-chaos-eng