Eventuous.OptimisticConcurrencyException handling in streaming #119
Replies: 2 comments 4 replies
-
Please provide a bit more context. I don't see the shovel involved here, it's a normal behaviour of the aggregate store. |
Beta Was this translation helpful? Give feedback.
-
Assume we have the below scenarios. We have Order microservices wihch have couple of event that create Order stream in Eventstore. The OrderStarted event should publich and all subscribers should intiated ex. Cart, Payment, Vendors, Deliver Streams with the same OrderId Aggregate Id, note every stream subscribe the same OrderStarted event. How we did implemetation for that, create Integration genreric handler which have TAggregate as parameter which handle integrated event for OrderStarted, then we use this integrated service in other microservices. The Target streams should be same as below :
We Use Eventuous V 0.06.0, As you gives a hint for that Eventuous.OptimisticConcurrencyException is Aggreagte store behavoir, so can give how and where we handle it for the above scenario. OrderStarted1 Eventuous.OptimisticConcurrencyException The event presisted to the EventStoreDB, unfortunately still this Error comes on. |
Beta Was this translation helpful? Give feedback.
-
We deploy our production using Kubernate in some time we got the below case...
Error handling command: 'EventPlanned' Eventuous.OptimisticConcurrencyException
1 .... Update of Entity with id 69589a2d-dde4-40fb-baa6-8999ca6f71cc failed due to the wrong version. Unable to append events to Entity-69589a2d-dde4-40fb-baa6-8999ca6f71cc: Append failed due to WrongExpectedVersion. Stream: Entity-69589a2d-dde4-40fb-baa6-8999ca6f71cc, Expected state: NoStream, Actual version: 0 Append failed due to WrongExpectedVersion. Stream: Entity-69589a2d-dde4-40fb-baa6-8999ca6f71cc, Expected state: NoStream, Actual version: 0 at Eventuous.AggregateStore.Store[T](T aggregate, CancellationToken cancellationToken) at Eventuous.ApplicationService3.Handle(Object command, CancellationToken cancellationToken)
How we can handle Eventuous.OptimisticConcurrencyException our eventuous V 0.05.02 using shovel in inegration
Beta Was this translation helpful? Give feedback.
All reactions