Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

1 producer to many consumers?

just spawn goroutines that select on the (optionally buffered) channel

if you need to fan out even further, repeat this on the spawned routines



Not quite. Produce one message, have arbitrary <n> consumers all read that exact message.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: