News for hackers. Stuff that matters.
Re:Serverless Best Practices by pvg on Sunday September 02, 2018 @06:22PM (#17899006)
Part of it is legacy but also, interactions with an RDBMS are often stateful so it's useful to have a session (in which such things as transactions can live, etc). I'd guess there isn't much reason to change this because there are standard and effective workarounds that just haven't yet made their way to things like lambda.
Re:Serverless Best Practices by lostapathy on Sunday September 02, 2018 @07:05PM (#17899175)
Can you elaborate on what “standard and effective workarounds” you are referring to here?
Re:Serverless Best Practices by pvg on Monday September 03, 2018 @12:01AM (#17900225)
Connection pooling is the most obvious one which is so common it tends to be transparent and built into many DB access libraries. Then there are all sorts of proxies/load balancers/multiplexors. If you think about it, the bits of code that handle web requests in your typical web app/framework/whatnot are very much like lambdas and when you write those, you generally don't have to worry about the cost of DB connections because it's a well-solved problem.