PDO establishing connection to Azure PostgreSQL is very slow PDO establishing connection to Azure PostgreSQL is very slow kubernetes kubernetes

PDO establishing connection to Azure PostgreSQL is very slow


As far as I can tell it is caused by Azure specific authentication on top of PostgreSQL. Unfortunately Azure support was not able to help from their side.

Using connection pool (PgBouncer) solves this problem. It is another piece of infrastructure we have to maintain (docker file, config/secret management, etc.), which we hoped to outsource to cloud provider.