News for hackers. Stuff that matters.
Re:Serverless computing on DC/OS with Galactic Fog by philliphaydon on Friday July 22, 2016 @10:43AM (#12143803)
Oh and AWS database access sucks balls. Because you cannot pool connections you must open/close db connections. If you fail to close you will exhaust the database connections quickly and kill your app until the connections expire.
Re:Serverless computing on DC/OS with Galactic Fog by mjb on Friday July 22, 2016 @01:08PM (#12144903)
Phillip - have you tried making your database connection in 'static' code? With container re-use (see https://aws.amazon.com/blogs/compute/container-reuse-in-lamb...), you should see multiple invokes going to the same container, and you can use the same connection for all of them. That will only happen if your traffic is high enough.
Re:Serverless computing on DC/OS with Galactic Fog by k__ on Friday July 22, 2016 @04:49PM (#12146654)
I find it kinda strange, that in every official doc they talk about how not to rely on this, but every example I find relies on thsi.