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?

질문됨 한 달 전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
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
profile picture
전문가
검토됨 한 달 전
profile picture
전문가
검토됨 한 달 전
  • Hi Riku, I appreciate your explanation and assistance in clarifying my doubts.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠