Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我编写了一个 golang aws lambda 应用程序并使用 sqlx 进行数据库连接。
我遇到了问题,因为数据库连接的数量增长得太快并且耗尽了连接总数。
在做了一些阅读之后,我遇到了 aws rds 代理,但没有得到任何如何将它与 Go 一起使用的示例。
您需要使用代理 URL 连接到客户端中的数据库。身份验证可以通过本机方式或基于 IAM 完成。代理配置可以在下面的文档中找到
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-proxy.html#rds-proxy-connecting-native