News for hackers. Stuff that matters.
Re:Serverless Best Practices by etaioinshrdlu on Sunday September 02, 2018 @05:51PM (#17898873)
I don't get the difference particularly... You have to open a tcp connection to talk to dynamodb, right?
Re:Serverless Best Practices by k__ on Sunday September 02, 2018 @05:54PM (#17898890)
From the docs: DynamoDB is a web service, and interactions with it are stateless. Applications do not need to maintain persistent network connections. Instead, interaction with DynamoDB occurs using HTTP(S) requests and responses.
Re:Serverless Best Practices by etaioinshrdlu on Sunday September 02, 2018 @05:56PM (#17898897)
One could, if they wanted, open a new MySQL connection for every statement, which seems similar. One could do this asynchronously in the background too, simulating the eventually consistent nature as well.
Re:Serverless Best Practices by twblalock on Sunday September 02, 2018 @08:31PM (#17899441)
I think the problem with that is the performance would be bad, because the database is not designed to be used thay way and those assumptions go as deep as the way it allocates memory.
Re:Serverless Best Practices by k__ on Sunday September 02, 2018 @05:59PM (#17898912)
True.

Maybe DynamoDB works better with this model, because it is build up without the idea of maintaining connections?

Re:Serverless Best Practices by idunno246 on Sunday September 02, 2018 @08:39PM (#17899474)
There’s many frontend servers to Dynamodb. Effectively the http endpoints are a connection pool to the actual backing datastore