3 ms·
> Why did they choose Dynamo? And what does serverless has to do with this? Possibly because lambda is integrated with dynamodb. You can hook a function to an
by viraptor 8y ago
> Why did they choose Dynamo? And what does serverless has to do with this?
Possibly because lambda is integrated with dynamodb. You can hook a function to an event like a row being inserted or modified: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.Lambda.html https://docs.aws.amazon.com/amazondynamodb/latest/developerg...
That lets you skip a lot of explicit queue management code and the change+notify is atomic by default.
- scarface74 8y agoYou can use lambda within an Aurora (AWS version of MySQL) trigger also. The advantage of DynamoDB when using lambda is that it is API based instead of based on database connections and pooling and it doesn’t run inside of a VPC - meaning a network interface doesn’t need to be created inside your VPC every time a new lambda process comes online. But now Aurora Serverless has the Data API that doesn’t use traditional database connections so there is even less of a need for DynamoDB for lambda performance reasons.
- pavelrub 8y agoSure, but that's simply a single point in favour of Dynamo in what should have been a comprehensive analysis of strengths and weaknesses with respect to the required use case. If they chose DynamoDB simply due to this strength (ignoring for the moment that the same thing can be achieved with native functions in Aurora), while ignoring the other things that ultimately turned out to be more important, then this again points to a flawed analysis. It's hard to see how serverless is to blame for this.