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.
5 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.
Stop relying on code review to catch architectural drift. Use PyTestArch to turn your architecture rules into pytest tests that run in CI.
How to share your own Python code across Lambda functions using uv local packages and CDK — a simpler alternative to Lambda Layers.