HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlMinor

Mysql Connection Pooling Similar To PostgreSQL's PgBouncer

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
postgresqlpgbouncerpoolingmysqlsimilarconnection

Problem

I'm looking for a pooling solution for mysql that is independent of the language. I am using PGBouncer as an example because it

  • Resides on the server the database is on



  • Just change the connection string to use the pooling connector



  • No modification to the code required



Is there something similiar in MySQL where I can using pooling by installing a 3rd party connector and just connect through that port?

Solution

This started off as a comment but it's getting a bit long.

Perhaps you could provide a better description of what it is you actually want rather than simply say it's like something else.

If you want multiple clients to use the same connection, then it must be implemented in the DBMS, otherwise you have no session management. Further you need to advise how you intend dealing with issues of state spanning more than a single request/response (i.e. transactions).

It would also be helpful to know why you want it. MySQL has a very different setup cost and per-session overhead cost compared to PostgreSQL - why do you think it needs it, and why you think it would actually yeild any benefit.

Context

StackExchange Database Administrators Q#43629, answer score: 3

Revisions (0)

No revisions yet.