Skip to content

Understanding performance, response time & connection limits from a newbie point of view #7193

Discussion options

You must be logged in to vote

Hello,

Does 1 visitor = 1 connection?

No. With connection pooling, many users can share a few database connections, you can have 10 connections serving a 1000 users. This is because in a web application the web users are not hitting the database constantly(GUI work, idleness, etc) and when they need to, they "borrow" a connection, fulfill a request and then "return" the connection to the pool.

There are some more details on https://supabase.com/docs/guides/database/connecting-to-postgres

If I pick the 2XL addon (4000 pooler connections)

Note that that refers to pgbouncer connections, only relevant when you do direct connections to postgres through your own language/framework. It doesn…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@miguderp
Comment options

@DevOfManyThings
Comment options

@steve-chavez
Comment options

Answer selected by miguderp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants