Skip to content

What is a backend in the context of Slonik documentation? #407

Answered by aust1nz
treddy73 asked this question in Q&A
Discussion options

You must be logged in to vote

My understanding is that a persistent connection to the same backend is when a server creates and reuses a connection to Postgres. It's desirable if you're running a server on EC2, Heroku, etc. You can avoid the overhead of making a new connection, and can avoid having too many connections to a database.

If you're running serverless functions which are discarded shortly after they run (for example, on AWS lambda) then you can just use the pool directly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gajus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants