The model shows backpressure and buffering mechanisms at work. The following parameters are configurable:
- min/max time to produce a chunk of data;
- min/max time to consume a chunk of data;
- queue capacity (i.e. buffer size).
Producer-consumer problem visualization
https://iximiuz.com/en/posts/nodejs-writable-streams-distilled/
The model shows backpressure and buffering mechanisms at work. The following parameters are configurable:
Producer-consumer problem visualization
https://iximiuz.com/en/posts/nodejs-writable-streams-distilled/
MIT License