File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33A prototype which implements a simple AWS Lambda function in several programming languages and benchmarks the relative performance.
44
5- ## Lambda functionality
6-
75Each lambda implementation has the same functionality:
86
971 . Read a batch of messages off an SQS queue
1082 . Validate the content of each message against the [ shared JSON schema] ( ./schema/event.json )
1193 . Write each message to a DynamoDB table with the partition key as the message's event ID and a TTL
1210
11+ The benchmark is designed to replicate real world use as much as possible.
12+ The messages are sent to SQS in as close to one go as possible which means the lambdas are all running at the same time.
13+ They all share the same DynamoDB table so need to compete for read resource.
14+ The DynamoDB table has a randomly generated partition key to avoid 'hot' partitions.
15+
1316## Requirements
1417
1518- Node >= v20
You can’t perform that action at this time.
0 commit comments