News for hackers. Stuff that matters.
Re:Topo – A library to create in-process topologies of gorou... by mdmarek on Saturday November 15, 2014 @01:01PM (#8612195)
Hi @epimenov thank you for the feedback. The shuffle method starts a goroutine for each inbound channel, so one busy outbound channel will not block the whole system. That being said I probably should add two more features, one of which is to add a channel size rather than always using a 0 size channel, and the other is to change it to select the first non-blocking outbound channel. I don't consider the blocking part always negative, because handling back-pressure is need at one point or another, but you are right, the method should not introduce starvation.
Re:Topo – A library to create in-process topologies of gorou... by epimenov on Saturday November 15, 2014 @03:22PM (#8612554)
You're using one input source in the example. I think the main issue that it promotes bad usage pattern.