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?

asked 18 days ago215 views
1 Answer
1
Accepted Answer

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
EXPERT
answered 18 days ago
profile picture
EXPERT
reviewed 18 days ago
profile picture
EXPERT
reviewed 18 days ago
profile picture
EXPERT
reviewed 18 days ago
  • Hi Riku, I appreciate your explanation and assistance in clarifying my doubts.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions