5 ms·
One big reason to use DynamoDB with Lambda is to avoid the VPC penalty (~10-20 second cold starts to attach ENI) in Lambda necessary to use RDS securely. Dynamo
by wahnfrieden 9y ago
One big reason to use DynamoDB with Lambda is to avoid the VPC penalty (~10-20 second cold starts to attach ENI) in Lambda necessary to use RDS securely. DynamoDB can be used without security groups and still use IAM-based access to lock it down securely. With RDS, you need to use security groups to properly secure your DB, which requires VPC for Lambda.
DynamoDB has world-class horizontal scalability but certainly comes with a high architecture integration cost, depending on your use cases.
- ryall 9y agoHave you tried adding this to the first line of your handler function definition? context.callbackWaitsForEmptyEventLoop = false; I only came across this last night, so haven't had a chance to test yet. Supposedly reduces the cold-start VPC delay significantly.