3 ms·
I get wanting to be serverless, but hosting the static parts using S3 and doing clever database things using Lambda and DynamoDB also achieves that goal, while
by llarsson 7y ago
I get wanting to be serverless, but hosting the static parts using S3 and doing clever database things using Lambda and DynamoDB also achieves that goal, while surviving the hug of death.
- ldoughty 7y agoDynamo DB does not survive the hug of death unless configured to do so and can be very expensive if you don't design the data access pattern will. The author is trying to stick to free tier, so if it's set to the max (5 records/sec), and no caching, it probably can only handle 1 visitor every 2 seconds after the bucket of 1500 read tokens is used up. If it's doing scans at all, the DB will be shot in seconds. Really need CloudFront in front of something like this to survive and lighten the DB access