Skip to content

Software Design

Stale Data Is More Than an Eventual Consistency Problem

The moment you retrieve data, it’s potentially already stale. And I’m not talking about eventual consistency or reading from a cache, which is what people typically think of when they think of stale data. No, I’m talking about your primary database. YouTube Check out my YouTube channel, where I post all kinds of content on Software Architecture & Design, including this video showing everything in this post. Developers often make the assumption that we can just query the database, get some data back, and return it to the client. Maybe we’re showing something in a UI where the end user can make… Read More »Stale Data Is More Than an Eventual Consistency Problem

Why Sagas Feel Broken

So, you built an elaborate system with commands, queues, an event-driven architecture, retries, timeouts, and, most importantly, compensating actions all handled within sagas. But do you really? Because then you get a call from support. There’s an order where the payment is pending, and it’s been pending for 48 hours. You look into it and see that the payment provider did charge the customer, but your system shows that the payment didn’t go through. So which is true? Clearly, the payment provider. YouTube Check out my YouTube channel, where I post all kinds of content on Software Architecture & Design, including this… Read More »Why Sagas Feel Broken

Testing Needs a Seam, Not an Interface

In my last video, I said that clean architecture was killing your velocity. And man, you guys had thoughts. The number one pushback, the hill a lot of people were willing to die on, was testing. And I get it. On the surface, it sounds reasonable. Create some interface or abstraction for testing purposes. But that assumption starts to fall apart once you look at what testing actually needs. Testing needs a seam. It does not automatically need an interface. YouTube Check out my YouTube channel, where I post all kinds of content on Software Architecture & Design, including this video showing… Read More »Testing Needs a Seam, Not an Interface