Injecting Chaos to AWS Lambda functions using Lambda Layers
“As far as the laws of mathematics refer to reality, they are not certain, and as far as they are certain, they do not refer to reality.” -Albert Einstein
UPDATE — October 2019
The code used for this blog post has evolved a bit and became that and that. However, the principles explained here remains similar. Just be aware :-)
In my previous post, I explained how to get started with AWS Lambda Layers in Python. In this post, I’ll show you how to deploy a small chaos engineering experiment using Lambda Layers to conduct latency injection attacks to Lambda functions.
Note 1: Some of the ideas in this blog post have been inspired by the excellent post from Yan Cui — Applying principles of chaos engineering to AWS Lambda with latency injection.
Note 2: I would also like to give a massive thank you to my wonderful colleague and friend Heitor Lessa, a.k.a ServerLessa, for helping me improve this post.
Why latency injection?
Latency is the time a data packet takes to travel back and forth between entities, and it’s no secret that latency is a silent killer in many…