Skip to content

Event Driven Architecture Doesn’t Eliminate Coupling

So you make what seems like a harmless change to an event that you’re publishing. Suddenly, a consumer of that event starts behaving incorrectly, and you’re left wondering, “I thought event driven architecture was supposed to prevent these issues. We replace direct API calls with events, put a message broker in the middle, and now our services can evolve independently, right?” 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. Loose Coupling Doesn’t Mean No Coupling Well, not necessarily. Don’t get me wrong, I’m a… Read More »Event Driven Architecture Doesn’t Eliminate Coupling

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 Database Generated IDs Can Complicate Your System Design

When you’re creating something in your system, where does the ID come from? For most, it’s probably the database. Database generated IDs are pretty straightforward, and you’re probably used to them if you’ve done a lot of CRUD. But why is your database responsible for generating the ID? This seemingly simple decision can have a pretty big impact on your overall system design when you start thinking about asynchronous processing, messaging, and different boundaries. 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. You have… Read More »Why Database Generated IDs Can Complicate Your System Design