🗃️Connection Pool
Also known as Database Connection Pool, Connection Pooling
Open links to a database that an app keeps ready. It uses them again.
Think of it like
Think of it like a row of shared bikes. You take one, ride, and put it back for the next person.
Example
Lucy's app opened a new connection for each request and fell over at 100 users. A pool of 20 shared connections fixed it.
Why it matters
Definition
Common mistake
Key takeaways
- 1Open once, reuse. No handshake each time.
- 2Borrow and return. Each request hands it back.
- 3A cap. Limits the load on the database.