MassTransit: Event order -
is there way guarantee events read subscribers in same order published? using loopback queue @ moment, matter?
i have console emulator sends console output lines events. may wait till end of command return result single unit, interactive commands "telnet" not possible.
the problem is, sometimes, when result set long (like "dir" command) of lines appears misplaced. output appears published in right order.
while technically loopback should in order product of how works, if have multiple threads reading or writing order not guaranteed.
also, loopback testing. it's not product ready interface.
you use saga hold content of message until receive them in right order. eliminate out of ordering issues. consider ensuring consumer has concurrentconsumerlimit
of 1, there's ever 1 thread reading queue.
Comments
Post a Comment