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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ