wojtekmach / req

Req is a batteries-included HTTP client for Elixir.
https://hexdocs.pm/req
Apache License 2.0
1.09k stars 117 forks source link

Documentation around adjusting pool_size #395

Open PragTob opened 4 months ago

PragTob commented 4 months ago

:wave:

As usual, thanks a lot for this excellent library!

One thing I found myself struggling with a bit yesterday was trying to adjust the pool size. I eventually found the documentation inside run_finch that pointed me in the right direction.

I.e. I'm now starting my own Finch pool under my application and am specifying it as finch: MyFinch when making requests with Req and it seems to work :tada:

Took me a while to get there/understand it - I had assumed as Req starts its own pool I could somehow change the default pool size Req uses but didn't find a way to do it. I mean ok I did find this comment on a PR but it discouraged setting it globally plus I think it also just meant setting finch: there vs. altering the default options that Req works with. Having Reqs pool size be adjustable may be nice, but of scope for this.

Improvements I see:

Very happy to make a PR trying to improve on these myself if you agree, just wanted to check in first and get some feedback :)

Thanks for all your work once again!

IMG_20220109_104347

wojtekmach commented 4 months ago

Please send a PR!