Skip to content

Instantly share code, notes, and snippets.

@andrewhummus
Created January 2, 2022 23:44
Show Gist options
  • Save andrewhummus/7834725b4ddc1d804464a84d9e90b063 to your computer and use it in GitHub Desktop.
Save andrewhummus/7834725b4ddc1d804464a84d9e90b063 to your computer and use it in GitHub Desktop.
Simple db pooling explained in small graph
+---------+
| |
| Clients |
+---------+ |
| |-+ (1) +------+ (3) +----------+
| Clients | ===#===> | Open | =======> | RealOpen |
| | | +------+ +----------+
+---------+ | ^
| | (2)
| /------\
| | Pool |
| \------/
(4) | ^
| | (5)
| +-------+ (6) +-----------+
#===> | Close | ======> | RealClose |
+-------+ +-----------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment