Skip to content

Instantly share code, notes, and snippets.

@webdevilopers
Created October 29, 2020 10:43
Show Gist options
  • Save webdevilopers/ef075c442adac56865533b2feee798ed to your computer and use it in GitHub Desktop.
Save webdevilopers/ef075c442adac56865533b2feee798ed to your computer and use it in GitHub Desktop.
Prooph Event Stream Projection from merged streams event ordering
@webdevilopers
Copy link
Author

How should the behaviour be in a single stream? It looks like it projection runs using the no order instead of created_at. So I guess we have to rewrite our wrongly ordered manually migrated stream.

Screenshot from 2020-10-29 11-49-36
Screenshot from 2020-10-29 11-51-09

@webdevilopers
Copy link
Author

We rewrote the event stream ordered by "created_at" and re-setting the no. The projection now looks as expected.

If I see this correctly then writing a projection fromStreams does not work if one of the streams has inconsistent ordering between no and created_at. Though this should not happen when correctly using the lib. But the mentioned sort does not seem to solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment