Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
tango12
7y ago
0 comments
Share
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.
0 comments
default
newest
oldest
somebodythere
7y ago
Well, just put the connection logic outside of the main handler so it's shared between invocations!
Wait, oops, you have state now.
rhlsthrm
7y ago
Realistically could you do this with Redis or something similar? Not sure about security implications of this though...
j
/
k
navigate · click thread line to collapse