Thomas
On December 22, 2016 at 9:54:32 AM, Erik Johansson
--
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+unsubscribe@googlegroups.com.
Is there a way to avoid that situation easily? I'd be interested to find out common approaches to this problem.
Going with in order single thread processing of events would most likely work for a while from performance point of view, and it is easiest to implement it that way.
Thomas
Why are you using competing consumers and a pub/sub for a read model?
Usually its far simpler to use something like a catch up subscription
(client driven subscription) which assures ordering.
Alternatively it is common to use sequence numbers to allow for
reordering assuming a single source. With multiple sources vector
clocks/lamport sequences work reasonably well.
Greg
On Thu, Dec 22, 2016 at 2:30 PM, Erik Johansson
<erik.gusta...@gmail.com> wrote:
> Hi,
>
> Is there some ideomatic way of handling events that are received out of
> order in a read model (i.e. a read model on the receiving end of a pubsub
> whitch guarantees delivery at least once but not in order)?
>
> The only solution I´ve come across so far (which works for all but the most
> basic read models) is to store pending events in the read model and then
> apply them when the read model catches up.
>
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/dddcqrs.
For more options, visit https://groups.google.com/d/optout.