[英]Using CloudRun and Google SQL, will cloud run automatically use connection pooling?
Hoping somone from Google SQL/ Cloud Run can answer this question.希望来自 Google SQL/ Cloud Run 的人能回答这个问题。
I am using Google SQL for hosting of my Postgres DB.我正在使用 Google SQL 托管我的 Postgres 数据库。 I am then spinning up multiple instances of Cloud Run containers which all connect directly to the SQL DB.
然后我启动了多个 Cloud Run 容器实例,它们都直接连接到 SQL 数据库。
My question is, will cloud Run/Google SQL automatically implement smart db connection pooling here?我的问题是,cloud Run/Google SQL 会在这里自动实现智能数据库连接池吗? Or do I need to manually configure something to get connection pooling
或者我是否需要手动配置一些东西来获得连接池
You need to handle your connection pooling at code level in this Cloud SQL docuemnt is mentioned您需要在此Cloud SQL 文档中以代码级别处理连接池
In the document are some code examples in various programming languages, at this time, most SQL connectors create a connection pool by default.文档中有一些各种编程语言的代码示例,此时,大多数SQL连接器默认创建一个连接池。
Cloud Run and other GCP managed services not add any pooling strategy because this could reduce the visibility for the developers. Cloud Run 和其他 GCP 托管服务不添加任何池化策略,因为这会降低开发人员的可见性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.