3c: Fault tolerant Multibroadcast

Hi all,

I am having some trouble understanding what is wrong with my solution for the fault tolerant multi broadcast challenge. Maybe there is some edge case I am not seeing. It would be really helpful if anyone can take a look at my code and hint me in the right direction.

Code on GitHub: fly-distributed-challenges/cmd/fault-tolerant-multibroadcast/main.go at main · aloussase/fly-distributed-challenges · GitHub

Thank you!

I ended up solving it. I think the problem was using a bounded channel and some messages were getting lost. Switched to unbuffered (blocking) channel and everything looks ok :)!. Consumers can block on the channel, but for the producer I used a goroutine so that is doesn’t wait for consumers.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.