3 ms·
> The FBP model provides implicit backpressure, because of the bounded buffers on the channels. The actor model on the other hand is more loosely coupled and fl
by bcrosby95 6y ago
> The FBP model provides implicit backpressure, because of the bounded buffers on the channels. The actor model on the other hand is more loosely coupled and flexible.
Note that this is why people recommend using GenServer's "call" instead of "cast" in Elixir/Erlang by default - it applies a sort of backpressure because call waits for the process to return a result rather than being fire and forget.
It's not exactly the same thing, or as configurable as Go channels, but it is an option.
- pythonaut_16 6y agoElixir has several tools built around solving this problem; GenStage being the foundation library and Flow and Broadway at a higher level.
- samuell 6y agoOn a related note, there's also work on an FBP implementation in Elixir: https://github.com/pcmarks/ElixirFBP https://github.com/pcmarks/ElixirFBP