
Processes events in order by invoking an AWS Lambda function synchronously from a FIFO subscriber on an Amazon EventBridge custom event bus.
InvocationType REQUEST_RESPONSE) from a FIFO subscriber.OrderPlaced events that share one EventGroupId, each carrying a monotonically increasing sequence number. The FIFO subscriber invokes the consumer AWS Lambda function synchronously, waiting for each event to be confirmed before delivering the next in the group. The consumer logs each sequence number as it processes, and the Amazon CloudWatch log shows the sequence handled in order, one at a time. Synchronous confirmation gives the reliability and back-pressure that teams used to get by adding an Amazon SQS queue between the bus and AWS Lambda, so no Amazon SQS buffer sits in the path.git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/eventbridge-custom-lambda-sync/typescript/samsam build --template infra/template.yamlsam deploy --guided --capabilities CAPABILITY_NAMED_IAMnpm testscripts/run_publish.sh [stack-name] [region] [count]aws logs tail /aws/lambda/sync-orders-consumer --since 5m --format shortsam delete