How do you avoid Lambda overwhelming a database during an SQS spike?
AdvancedProductionServerless & Messaging (Step Functions, EventBridge, SQS, SNS)
Answer
Set a maximum concurrency on the SQS event source mapping or reserved concurrency on the function, use RDS Proxy to pool connections, and tune batch size. The queue absorbs the spike while consumers process at a rate the database can handle.