5min chapter

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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode