We are currently using Lagom 1.5.5 with Scala, and we’ve recently encountered a strange issue with the order of events in the entity.
This is what we are doing:
Command Ato an entity, which emits
- A readside processor has an event handler for
Event A, which issues
Command Bto the same entity
- Upon receiving
Command B, the entity emits
In this case, we’re expecting
Event A to appear before
Event B on the entity. This seems to be the case all along for us, but there was a case where
Event B was persisted before
Event A on the entity, which resulted in some downstream issues for us.
Is there any reason why this could happen? Thanks in advance.