---
title: "Discussion on \"AWS Lambda and RDS Connection Nightmare (How I Got Out) 🧟‍♂️\" | Hashnode"
description: "Discussion on \"AWS Lambda and RDS Connection Nightmare (How I Got Out) 🧟‍♂️\". A view on connection pooling, Lambda freezing, and RDS Proxy"
url: "https://hashnode.com/posts/aws-lambda-and-rds-connection-nightmare-how-i-got-out/682d71613af49537c002266b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [AWS Lambda and RDS Connection Nightmare (How I Got Out) 🧟‍♂️](https://log.victoranuebunwa.com/aws-lambda-and-rds-connection-nightmare-how-i-got-out?utm_source=hashnode&utm_medium=feed)

A view on connection pooling, Lambda freezing, and RDS Proxy

May 21, 2023 · 5 min read · log.victoranuebunwa.com  
Updated Jun 1, 2025  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#aws-lambda](https://hashnode.com/tag/aws-lambda)
-   [#rds](https://hashnode.com/tag/rds)
-   [#rds-proxy](https://hashnode.com/tag/rds-proxy)
-   [#aws-serverless](https://hashnode.com/tag/aws-serverless)
-   [#serverless](https://hashnode.com/tag/serverless)
-   [#aws-aurora](https://hashnode.com/tag/aws-aurora)

## Written by

[Victor Anuebunwa](https://hashnode.com/@AVONnadozie)

@AVONnadozie

  
[View profile](https://hashnode.com/@AVONnadozie)

## Responses 2

Markdown supported · ⌘↵ to post

[Emenike Jane](https://hashnode.com/@jane6)

[May 21, 2025](https://hashnode.com/posts/aws-lambda-and-rds-connection-nightmare-how-i-got-out/682d71613af49537c002266b/comment/682e178d3ed3e3d5b2f69820)

Even as a non-techie, I could feel the stress of that “too many connections” moment! I love how you broke everything down so clearly (and with humor too). It’s amazing to see how much thought goes into making these systems work smoothly behind the scenes. Proud of you for always finding smart solutions and for helping others avoid the same headaches!

[Peter Amalu](https://hashnode.com/@amalupeter)

[May 21, 2025](https://hashnode.com/posts/aws-lambda-and-rds-connection-nightmare-how-i-got-out/682d71613af49537c002266b/comment/682d73d6e5f0020ad6c6537d)

Beautiful article Victor. Well-done. There is a small question I have with your design though. And that is: why did you use lambda for processing a CSV, especially one which seems like it was heavy. Didn't Lambda timeout after some seconds? Why not use EC2 and a CRON job and stream this file from S3. You could have used eventbridge to start and stop this instance if you are worried about it running all the time and racking up cost.

[Victor Anuebunwa](https://hashnode.com/@AVONnadozie)

[May 21, 2025](https://hashnode.com/posts/aws-lambda-and-rds-connection-nightmare-how-i-got-out/682d71613af49537c002266b/comment/682d73d6e5f0020ad6c6537d#reply-682d7734e83139d771baf5af)

Great question. Your stack option is pretty good as well. It all depends on your requirements.

For our use case, Lambda looked to be the best option. Lambda timeout is 15 minutes, and that's enough time to read most files. The problem comes from the processing, and we did that in chunks using SQS.
