Hacker News new | past | comments | ask | show | jobs | submit login

My problem with the serverless movement is database connection pools.

Every time a function runs, it has to create a new connection to the Postgres database so it can run a query. This is super slow, and dead in the water. If I have to maintain a separate server to have a global connection pool, I might as well just have a server for my API as well.




I agree with this. I would be comfortable moving more code to serverless if this weren't as big an issue. I think having a GraphQL server as an API to the database may be a good solution, since it can handle a variety of queries/mutations and RPC like behavior. But I still run into this issue a lot whenever I make a new serverless function/project.




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

Search: