[erlang-questions] Multi processes consume limited redis resource
Thu Mar 26 04:01:08 CET 2015
Here I meet a problem for client-server model when using Erlang OTP.
Application will spawn multi processes, and each process will operate on
limited redis resource, now it only have one redis instance.
We wrapped redis client <https://github.com/wooga/eredis> using poolboy
<https://github.com/devinus/poolboy>, since producer processes are much
more than redis pool size, checkout poolboy will failed, no more redis
client in the pool.
I think it is a common issue, when producer is faster than consumer, or
producer are much more than consumer. Any common design or material for
this issue? Thanks in advanced.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions