cjbottaro
I love NimblePool and use it frequently. I’m curious why all Redix pooling libraries use Poolboy instead.
From the NimblePool docs…
you can act directly on the resource, avoiding the data copying, but you need to keep the state of the resource in sync with the process
I take that to mean that you have to make sure the resource is in a good state before returning it via checkout. Which is fine; NimblePool has callbacks to ensure your resource is good before handing them out. I.e. if a Redix process is dead, you can use a NimblePool callback to create a new one.
NimblePool may not be a good option to manage processes.
Why? I understand that the pool itself can become a bottleneck, but that’s easily handled by having multiple pools and randomly selecting one to use.
Thanks for the help.
Trending in Questions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 2- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
josevalim
Great question! Answer added to the README:
dimitarvp
Can somebody give me an example how exactly is
NimblePoolan actual pool? I’ve read part of its source code and it looks to do exactly the opposite of a pool to me – namely it serializes access to single state / resource.