Oskar Dudycz

Pragmatic about programming

Recap of Event Sourcing Live 2023

2023-06-15 oskar dudyczEvent Sourcing

cover

InfoQ claims that Event Sourcing is in the late majority adoption phase. That means that if you havenā€™t started to use it, you better start doing it, as youā€™re not innovative and lagging behind. Is that true?

I think thatā€™s too optimistic; weā€™re not there yet. Still, I believe thatā€™s one of the emerging concepts that can change how we build our software. From my observation, itā€™s boiling under the surface. One of the reasons why I decided to go solo was that I got workshops and consulting requests, even though I didnā€™t advertise them. Of course, Iā€™m part of the bubble, but trying to look realistically at it.

Event Sourcing passed the hype cycle. Some people failed to use it and were loud about it. Some were quieter about their failures because they learned from them and recovered. For many years, we had a shortage of practical resources about Event Sourcing; thatā€™s one of the reasons why I started to build my samples and self-paced kits and write on this blog. Right now, tooling matured, and we have already established patterns. Wild-wild west times are over. In that regard, InfoQ is right.

Half a year ago, I invited the community to share their journey at the Event Sourcing Live conference. I wrote:

We want to prove that Event Sourcing is a highly practical pattern and show its real-world usage during the Event Sourcing Live Conference. We want to learn about both big successes adopting it and horror stories. Your stories.

And people accepted the challenge!

Event Sourcing Live is the only conference focused on the Event Sourcing pattern and a spin-off of Domain Driven Design Europe. We had the third edition of it. It was an honour for me to be invited by Mathias Verraes to be this yearā€™s line-up curator.

The goal was to show that Event Sourcing is practical and pragmatic. We wanted to make it more hands-on, giving the space to show the tech stack. We encouraged speakers that they could (and should!) go down the rabbit hole. We also assumed that the audience should be familiar with the basics, so speakers donā€™t have to repeat the introduction stuff, like whatā€™s an event, whatā€™s projection and how to build a state from events. See:

So if you were there and the introduction was missing, blame me, not the speakers.

cover

We started with a talk by Yves Reynhout showing that Event Sourcing can be simple if we keep it like that. Iā€™m happy that Yves came with this talk, and we intentionally put it as the first to make a clear stand. Event Sourcing is not complex, itā€™s different, and if we try to keep it simple, our journey will be much smoother. Yves managed to go through the most common (mis)conceptions and explain them, busting the most common myths.

Still, we didnā€™t want just to show the easy part. We also wanted to show the challenges, including technical ones!

cover

Event Sourcing and serverless are an excellent match. Still, most popular event stores are built in the traditional way, which doesnā€™t allow an easy serverless model. Some people are trying to build event stores on DynamoDB and CosmosDB, but itā€™s tricky, and those implementations are still so early in the journey that I couldnā€™t recommend any of those tooling besides Equinox.

Thatā€™s why I was thrilled that Alexey Zimarev came up with the idea of talking about that. He managed to step by step with the considerations on running and operating serverless solutions with existing tooling. He also showed potential solutions to make that scalable on the example of Eventuous connectors.

cover

I promised you patterns. And with the definition of a pattern, James Geall started his talk. It was a wise move, as the process manager is one of the most misunderstood topics (see also more in Saga and Process Manager - distributed processes in practice). He neatly explained the importance of explicit business process modelling and how to manage workflows without hair loss. James also explained how to compose that with business logic and where to draw a line of responsibility. He also made us mind-boggled with (un)intentional mixture of colours of the event modelling sticky notes.

cover

The next talk took us forward with those ideas. JĆ©rĆ©mie Chassaing showed us how to compose business logic and process managers using the Decider pattern. A lot of code, 100% hands-on mode and real examples. I can say that Iā€™m under the huge influence of the Decider pattern (see, e.g. in How to effectively compose your business logic). If you havenā€™t checked it yet, try it on your own.

I wrote that I had to choose the killer feature of Event Sourcing, Iā€™d select projections.. Theyā€™re great not only because they allow building customised read models from stored events. They allow decreasing in the cognitive load of the development process. We can break it down into two phases: capturing business facts and interpreting them.

Robert Baelde and Anton Stƶckl showed us how to deal with projections.

cover

Anton showed his journey and how to keep projection handling simple when you donā€™t need to reach the ultimate scale. All of that was backed by his personal experience working on the internal gamification solution.

cover

Robert explained the second-day issue: rebuilding our projections without system interruption. Thatā€™s a complex part; we still donā€™t have that out of the box in Marten, but itā€™s one of our most important goals. Thatā€™s also why Iā€™m happy that Robert shared his heuristics and explained the hard parts with potential solutions. I was especially intrigued by the idea of the snapshots representing a partial phase of projection to speed up the rebuild. Thatā€™s tricky, as it requires betting on when our interpretation can be stable enough, so we donā€™t have to rebuild it but can increase performance a lot.

One of the things that are too often missed while doing event-driven design is data governance practices. Weā€™re taking things too lightweight. In some environments, it may work well, but for the bigger enterprises, thatā€™s too optimistic if we want to use event-driven tools as a communication backbone.

cover

Wim Debreuck explained why and how we can and should think more responsibly about defining our event model. He showed how to put our events in a broader context. He used Kafka as an example. Event Streaming is not the same as Event Sourcing, but both come from event-driven tooling, and many patterns are the same, and we can learn from each other. Itā€™s essential to think about what should happen with the events we store, as itā€™s just the beginning of the journey.

To close with the personal experience, we also had talks from Anita Kvamme and Łukasz Reszke. They shared insights and lessons learned from their real projects.

cover

Łukasz had an intriguing journey moving from the .NET community to Ruby and joining a company thatā€™s not only responsible for delivering software for clients but also maintaining their own event store and being one of the Event Sourcing promoters in the DDD space.

cover

Anita showed that whether something is good or bad practice depends on context. She talked a lot about the challenges of implementing an event store on top of CosmosDB and design tradeoffs they took. I liked the pragmatic way of showing the thought process and the existence of the grey matter, e.g., splitting for private and public events may also depend on the team structure. If weā€™re a single team, maybe we can take shortcuts. That may work if weā€™re making conscious, transparent decisions.

Letā€™s not forget about the friendly folks from Event Store. Yves Lorphelin and Alexey Zimarev did a discussion panel during the main conference giving a chance to the community to ask questions and get answers. I enjoyed that primarily because it focused on the patterns and were not vendor specific.

Iā€™d like to thank all the speakers for bearing with my lame MC jokes and all the community that was there showing the power of Event Sourcing!

All speakers did their best and delivered important content. If something was wrong, blame me, humble line-up curator.

Being the curator and MC was a big thing but also stressful for me. Iā€™m an introvert that somehow managed to keep the stress on a leash when giving a talk, but that was a new experience. I was really stressed. This is an interesting thing, as I knew that no one would be focused on what I was doing, as speakers and their talks were the most important. Still, I guess we humans are selfish, and our brain tries to focus on ourselves. Still, I tried to make the show as fluid as possible so both audience and speakers liked it.

The general feedback I got was positive. Of course, some people said it was too much tech stuff, but we intended to show that Event Sourcing is a living thing and people are doing real things. Some said they would like more content about specifics of event modelling, and I take that, although the content is also dependent on the submissions. I hope weā€™ll have more on that if we have the next edition.

Still, I saw that people enjoyed the versatility, hands-on and pragmatic talks. I also liked them a lot. Especially since the content showed many faces of Event Sourcing, and most importantly, had this personal touch and was closed to the real projects, without esoteric considerations.

When will the videos be available? Iā€™m not sure, but I will update this article as soon as they are available. You can subscribe to Architecture Weekly, and Iā€™ll definitely send an update there.

Let me finish this article with my favourite quote from this edition of Event Sourcing Live. Anita Kvamme said:

Event Sourcing is architecting for tomorrowā€™s questions

Cheers!

Oskar

p.s. Ukraine is still under brutal Russian invasion. A lot of Ukrainian people are hurt, without shelter and need help. You can help in various ways, for instance, directly helping refugees, spreading awareness, putting pressure on your local government or companies. You can also support Ukraine by donating e.g. to Red Cross, Ukraine humanitarian organisation or donate Ambulances for Ukraine.

šŸ‘‹ If you found this article helpful and want to get notification about the next one, subscribe to Architecture Weekly.

āœ‰ļø Join over 5000 subscribers, get the best resources to boost your skills, and stay updated with Software Architecture trends!

Loading...
Event-Driven by Oskar Dudycz
Oskar Dudycz For over 15 years, I have been creating IT systems close to the business. I started my career when StackOverflow didn't exist yet. I am a programmer, technical leader, architect. I like to create well-thought-out systems, tools and frameworks that are used in production and make people's lives easier. I believe Event Sourcing, CQRS, and in general, Event-Driven Architectures are a good foundation by which this can be achieved.