AWS Computeยท
Handling large volume of transactions with AWS Lambda Managed Instances
TL;DR
Scheduled traffic spikes can overwhelm transaction systems, while keeping peak capacity running year-round wastes money. This ticketing backend pre-warms AWS Lambda Managed Instances before an event and scales down afterward, using Valkey for queue positions and DynamoDB atomic writes to prevent conflicting bookings. In a two-minute test, it handled roughly 40,000 requests per second and recorded 1.75 million bookings, with 121 ms p99 latency and no Lambda errors or Lambda/DynamoDB throttling.
Relevant links
- Advanced (300)aws.amazon.com
- AWS Lambdaaws.amazon.com
- Technical How-toaws.amazon.com
- AWS Lambda Managed Instancesaws.amazon.com
- AWS Lambdaaws.amazon.com
- Amazon Elastic Compute Cloud (EC2)aws.amazon.com
- AWS CloudFormationaws.amazon.com
- Amazon API Gatewayaws.amazon.com
- Amazon ElastiCache Serverless for Valkeyaws.amazon.com
- Amazon DynamoDBaws.amazon.com
- GitHub repositorygithub.com
- AWS Command Line Interface (CLI)aws.amazon.com