Hi David,
Ok, I don't involve with source code.
Just say we have boss_cache process uses cache application. cache application has 1 gen_server, it handle GET/SET/DELETE message (gets key, returns value; set {key, value} entry; delete key).
There are 2 solutions:
1. boss_cache process send message to cache application directly.
2. boss_cache process creates poolboy supervisor, its children are poolboy workers.
boss_cache sends mesages to poolboy, it checks out worker. The worker sends message to cache application. Poolboy checks in the worker.
CB is using (2) solution. Is (2) better than (1) ?
For asynchronous SET/DELETE message, obviously we don't need poolboy.
For synchronous GET message, we send message with timeout.
As Even mentioned in
roadmap, he uses poolbooy to resolve bottleneck issue. Maybe I don't understand poolboy implementation ?
Regards,
Cuong Th.