This is a question regarding the connection between Fargate and RDS.

0

I have a question regarding Fargate. As far as I understand, Fargate operates within a serverless architecture, meaning it should not be running when not in use. If I have a container running on Fargate that connects to RDS, would Fargate maintain the connection to RDS when the container is not being called? or does it only reconnect to RDS when called upon?

已提问 1 个月前228 查看次数
1 回答
1
已接受的回答

Hello.

If the Fargate task disappears when the application process ends, the connection to RDS will disappear.
In other words, I think that a connection to the database is created when the task starts (when the application starts processing).
So, if you are having problems with the number of connections to the database, you can improve it by setup something like RDS Proxy and using a connection pool.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-proxy.html

profile picture
专家
已回答 1 个月前
profile picture
专家
已审核 1 个月前
profile picture
专家
已审核 1 个月前
profile picture
专家
已审核 1 个月前
  • Hi Riku, I appreciate your explanation and assistance in clarifying my doubts.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则