What are the downsides to proxying a database connection? #5415
-
I just realized that one of our service deployments was proxying JDBC connections from a JVM app to a postgres database. This is a pretty performance-critical connection, so I disabled it, figuring there must be some overhead to proxying a postgres connection (i.e. "no free lunch"). Now I'm wondering what could be the concrete side-effects or disadvantages to this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The overhead to proxying connections is generally pretty small, but I recommend measuring the difference yourself to see what the overhead is in your particular scenario and decide if that overhead is acceptable or not. By skipping the proxy for these connections, you will lose all the Linkerd functionality for those connections such as mTLS and TCP metrics. |
Beta Was this translation helpful? Give feedback.
The overhead to proxying connections is generally pretty small, but I recommend measuring the difference yourself to see what the overhead is in your particular scenario and decide if that overhead is acceptable or not. By skipping the proxy for these connections, you will lose all the Linkerd functionality for those connections such as mTLS and TCP metrics.