mateodelnorte / servicebus

Simple service bus for sending events between processes using amqp.
MIT License
420 stars 66 forks source link

Publish/subscribe with many subscribers fails? #99

Closed gfot closed 7 years ago

gfot commented 7 years ago

From documentation I understood that if we have a publish/subscribe bus, then for one/same event published all subscribers should receive it. If that's hold true, then the simple example presented in publish/subscribe section does not work properly.

mateodelnorte commented 7 years ago

You're probably running all the subscribers in the same directory, causing them to all use the same .queues file, causing them to all use the same named queue... which will then cause then to round robin.

Run them in different directorios, specify a different .queues file name for each process, or specify a different queue name for each process' subscribe.

On Fri, Jun 2, 2017, 11:50 PM gfot notifications@github.com wrote:

From documentation I understood that if we have a publish/subscribe bus, then for one/same event published all subscribers should receive it. If that's hold true, then the simple example presented in publish/subscribe section does not work properly.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mateodelnorte/servicebus/issues/99, or mute the thread https://github.com/notifications/unsubscribe-auth/AAh3X7OyHsRSvvg2Fa1l3RMz-LbJVWLqks5sANgVgaJpZM4Nu9sN .

gfot commented 7 years ago

Thanks for clarifying this. Indeed I executed all subscribers from the same directory.