Elixir Mix cover image

Event Sourcing and CQRS ft. Ben Moss - EMx 148

Elixir Mix

CHAPTER

Agrequest - How to Handle a Command in a Coat Level Environment

When you handle a command, you basically return a list of events which were produced by this command. Then y seven other functions at the bottom, which say, ok, now i take these events and apply them to my user. So if you have 100 events in there when the user hasn't signed in for like, a few days, and yoa first command for this user. Then what commander actually does, aa cost to his events tram and reads all the events in there, and then it builds up the current s of that user in memory. And on this current state, you'd adtend yo variedations. All this is happening sincronously, like nothing as

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner