|
|
|
|
|
by denart2203
2676 days ago
|
|
Really neat post. Did y’all consider GenStage or another demand based approach for your overflow problem? I’d be interested in hearing about the tradeoffs between demand vs semaphore, it seems like the two have some similarities. |
|
With how discord uses semaphores, the Consumer will not even make a demand for more events from the producer.
Other than that, I think in the case of Discord, it's more of an RPC thing, and GenStage is rather made for concurrent streaming and processing of data.