Eight Bugs, Eight Tests: Testing a Hexagonal Python Service on AWS
Fakes, contract tests, moto, real DynamoDB, architecture rules, E2E through API Gateway and a load test. One bug per level, and why the level before misses it.
6 posts· All tags
Fakes, contract tests, moto, real DynamoDB, architecture rules, E2E through API Gateway and a load test. One bug per level, and why the level before misses it.
Repos, uv packages, Lambdaliths, Cognito, events and CDK stacks: my serverless AWS setup for Python microservices and the problems behind each decision.
Nine scenarios in one CDK stack: how EventBridge Pipes and a dispatcher Lambda start Step Functions from SQS, and where a failed message ends up in each case.
How to share your own Python code across Lambda functions using uv local packages and CDK — a simpler alternative to Lambda Layers.