Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: