The real cost of database connections in AWS Lambda

A customer brought me in to review their AWS setup. The mandate was to cut costs and improve performance. One of the first bottlenecks we uncovered was not in the code itself but in how Lambda interacted with the database. At first glance it looked like the system was sized