Discussion about this post

User's avatar
Ben Virkler's avatar

Very helpful article Oskar, and timely for my project. You described the scenario where you know what events you should receive, just not the order. But what if you don't know that? For example, you get an ItemRemovedFromCart event, but the item doesn't exist in your view of the current state of the cart. Is it an invalid event? Or is there an ItemAddedToCart event that hasn't come through yet? Any thoughts on how to handle this scenario?

Expand full comment
Hubert's avatar

Hey!

Do you store the intermediate state in the storage or in the application's memory only?

What if the app restarts in the middle of processing the payment and some information that already have been asked will disappear (since we acked the message in the queue) and the other ones will just arrive after that?

Expand full comment
6 more comments...

No posts