You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HI, i was scrolling through the documentation and i see that whenever we create a pg_listener, we will acquire a connection from the pool
// Pull out an initial connection
let mut connection = pool.acquire().await?;
Does this mean that we are using a dedicated connection for each PgListner?
I am creating a game using postgres database to connect all instances of apps and for each game created, i am thinking of using one instance of PgListner to notify all users in the game about events that are taking place. But if PgListener is using a dedicated connection, that would mean there is a very limited amount of games that i can create at a single time?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
HI, i was scrolling through the documentation and i see that whenever we create a pg_listener, we will acquire a connection from the pool
Does this mean that we are using a dedicated connection for each PgListner?
I am creating a game using postgres database to connect all instances of apps and for each game created, i am thinking of using one instance of PgListner to notify all users in the game about events that are taking place. But if PgListener is using a dedicated connection, that would mean there is a very limited amount of games that i can create at a single time?
Appreciate any input on this. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions