Marko M.9 min read
Link copied!
Contents:
A quick analogy: AR pool vs HTTP pool
What "pooling" means for HTTP
When to use HTTP connection pooling in Rails
How do you know you need this?
Common code smells
The minimal approach: Keep-alive + sensible timeouts
Stepping up: Wrapping a client in connection_pool
Observability: Make the pool visible
Sizing the pool: threads, workers, and math
Production pitfalls worth knowing
Wrapping up