https://github.com/nats-io/go-nats

On Monday, 11 March 2019 04:41:25 UTC, Kasun Vithanage wrote:
>
> Hi all,
>
> I've experience implementing event buses in Java. 
> In Java, I used a singleton where I can register callbacks to methods and 
> fire event from a publisher(maybe from another thread) and propagate it to 
> subscribers.
>
> In Go what would be the best pattern to implement a pub/sub event bus? 
> Are channels are a better choice than using callbacks in this scenario(*one 
> to many* event propagation)?
> Or callbacks are better for this? 
>
> (I need to propagate events *only* to subscribers of the topic)
>
> Regards,
> Kasun
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to