I'm experiencing some long connection time to RDS Proxy (from 70ms to 100ms). I have found out that this is inherent to the connection as spring is logging when connection is performed and we have a notion of the time taken therefore.
I know that connecting to RDS the driver is using secure connection (SSL) and my suspicious is that this process for each connection takes a while (but 100ms its a lot). On my application I have been using server-side-pooling (pgbouncer) and would like to remain using that by replacing it with RDS-Proxy.
Is there anything that I should be taking special care to avoid this long time connections to the database? I would like to avoid pooling on application side if possible.
I'm using Java with org.postgresql:postgresql:42.2.5
jdbc driver.