I would like to understand the pros and cons of choosing Cloud SQL language specific connectors (using client specific libraries) over the binary form . In my opinion client specific libraries provide a neat way of handling connections using code and more flexible compared to the binary which needs to deployed as a separate process (for example sidecar in case of GKE deployments) so there is operational overhead in choosing the latter.
Solved! Go to Solution.
Thanks @robertcarlos I don't want to bother you anymore but from what i understood Cloud SQL Language connectors also provide secure SSL connections similar to Auth Proxy. I just it is more of a convenience choice.
Hi @dheerajpanyam,
Welcome to Google Cloud Community!
Here are the benefits for each connection options:
Benefits of Cloud SQL Language Connectors:
Benefits of the Cloud SQL Auth Proxy:
You may check the following documentations for each connector:
You can also check other means of connecting to your Cloud SQL instance.
Hope this helps.
Thanks @robertcarlos I don't see much difference. Both support secure SSL connections and use IAM based authorization. My point of view is that cloud sql auth proxy requires an operational overhead / DevOps team while the connector is entirely dev focussed.
Hi @dheerajpanyam,
Both works similarly however the basic difference would be convenience. Cloud SQL Language Connectors doesn't require any additional complex network setup while Cloud SQL Auth proxy is more secured as it requires certificate and encryption to verify clients.
Thanks @robertcarlos . One last question before i accept the solution.
1. Are both methods designed for production usecases or is there any preference of one over the other?
2. Does language connectors option work with most of the services like GKE, Cloud Run, Cloud Functions etc?
To address your questions @dheerajpanyam,
Hope this helps.
Sorry this is getting more confusing. My usecase is connecting to Cloud SQL instance from Cloud Run via private IP since this has low latency versus public IP. Is this something that Cloud SQL language connector can fulfill or do i need to use the Cloud SQL Auth Proxy? I don't understand this line from link you shared "Cloud SQL recommends using the Cloud SQL Language Connectors to connect to your Cloud SQL instance over other connection options"
I only mentioned that this is recommended as this is more secured. You can still use Cloud SQL Connector if that's your preference as it is easier to use. It would still depend on your setup and which connector would be more beneficial for your setup. Both have their benefits so you can choose whichever fits your needs.
Hope this helps.
Thanks @robertcarlos I don't want to bother you anymore but from what i understood Cloud SQL Language connectors also provide secure SSL connections similar to Auth Proxy. I just it is more of a convenience choice.
i also faced this problem in my website please resolve my issue
What problem did you face specifically @robatbross ?
@robertcarlos Are Cloud SQL language connectors ==== Cloud SQL Auth proxy?