hard20 pts · first answer countsdatabasesscalabilityperformance
Connection pools and autoscaling
Each API instance has a PostgreSQL pool of 50 connections. During a traffic spike, autoscaling grows from 4 to 40 instances, and the database starts failing with too many connections and high latency. What is the best fix?
Discussion 0
Join free to post in the discussion.
Related questions
- Slow email during signupBackend Developer
- What EXPLAIN tells youBackend Developer
- Asking for only a few fieldsBackend Developer
- Building a long string in a loopBackend Developer
- Building SQL from user inputBackend Developer
- What atomicity guaranteesBackend Developer
- WHERE column = NULL finds nothingBackend Developer
- COUNT(*) versus COUNT(column)Backend Developer