What is the erlang design pattern in terms of gen_server to create a fixed number of workflows and feed them βjobsβ to do some things? Each workflow negotiates with an external service that has connection restrictions. The number of "jobs" is considered unlimited. In C, I would do this by creating a workflow pool and asynchronous. queue (with limited capacity), protected by the mutex, for supplying the pool with tasks from the sender.
source share