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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南