Response required from all subscribers

92 views
Skip to first unread message

Ivo Kovacka

unread,
Apr 4, 2023, 10:11:09 AM4/4/23
to nats
Hi all,

from the architecture of the nats i understand that i get answer to my request from
the "first" subscribtion and all other answers are just ignored by the server.

What is the pattern i have to make to get all the answers? I want to for example know if
the transaction that is going to be spread around more parts can be executed.

Is there such a pattern available on top of nats?

Thanks a lot.

Regards, Ivo

derek

unread,
Apr 4, 2023, 10:34:05 AM4/4/23
to nats
The nature of a request is that usually you want a single answer, but NATS will continue to deliver responses as long as the interest is still present, meaning you do not close the subscription.

Which language are you working in?

Also if possible join the slack group and checkout https://natsbyexample.com/

Ivo Kovacka

unread,
Apr 4, 2023, 10:47:20 AM4/4/23
to nats
Hi Derek,

thanks for the answer, basically enough for c#

Scott Fauerbach

unread,
Apr 4, 2023, 3:28:01 PM4/4/23
to nats

Ivo Kovacka

unread,
Apr 5, 2023, 3:21:06 AM4/5/23
to nats
Thanks guys ...
Reply all
Reply to author
Forward
0 new messages