emitter-io / csharp

Client library for emitter.io compatible with .Net, .Net MicroFramework and WinRT
http://emitter.io
Eclipse Public License 1.0
29 stars 21 forks source link

Emitter Broker- C# version - Mismatch in the messages sequence #4

Closed sandeeprachamalla89 closed 7 years ago

sandeeprachamalla89 commented 7 years ago

I am consuming the emitter broker C# version. when we send the messages in PUB/SUB channels through Broker, they are delivered in the form of bytes. We observed that , the messages are not getting delivered in a sequence in which they received. Can you help us where we need to point in the code to debug this issue? Thanks, Sandeep

Florimond commented 7 years ago

"the messages are not getting delivered in a sequence in which they received"

I'm not sure I see exactly what you mean by that, but I'm gonna assume you are rolling your own broker and seeing that the client does not receive messages in the same order as the broker does.

That seems quite normal to me. You should not expect any sequences to be respected, as you are supposed to have a cloud of brokers with messages being exchanged all over the place. Consistency is eventual. CRDTs work behind the hood to eventually reconcile states between brokers.

You can check the code of this collaborative todo list and observe how no order of delivery is ever expected.