Hacker News new | ask | show | jobs
by tango12 2878 days ago
Might not be that easy because only postgres can take a few hundreds of connections which won't work out if you have a few thousands of serverless functions? No persistent connection pools.
1 comments

Well, just put the connection logic outside of the main handler so it's shared between invocations!

Wait, oops, you have state now.

Realistically could you do this with Redis or something similar? Not sure about security implications of this though...