Skip to content

Sponsor: Do you build complex software systems? See how NServiceBus makes it easier to design, build, and manage software systems that use message queues to achieve loose coupling. Get started for free.

Learn more about Software Architecture & Design.
Join thousands of developers getting weekly updates to increase your understanding of software architecture and design concepts.


Follow @CodeOpinion

Is an ANEMIC Domain Model really that BAD?

Is an anemic domain model a bad thing? Most would probably call it an anti-pattern, and it should be avoided. But is that really true? Well, it depends on what your intent is. Are you trying to create a domain model? Or are you really just trying to create a data model? YouTube Check out my YouTube channel where I post all kinds of content that accompanies my posts including this video showing everything in this post. Example In this post, I’m going to be using the example of a food delivery service. You order food from the restaurant and it’s delivered… Read More »Is an ANEMIC Domain Model really that BAD?

Message Ordering in Pub/Sub or Queues

Do you need message ordering? Processing messages in order as they were sent/published to a queue or topic sounds simple but has some implications. What happens when processing a message fails? What happens to all subsequent messages? How is throughput handled when using the competing consumers’ pattern, which loses the guarantee processing in order. Lastly, is ordering even important? YouTube Check out my YouTube channel where I post all kinds of content that accompanies my posts including this video showing everything in this post. Message Ordering What are some reasons that most people think they need to process messages in a particular… Read More »Message Ordering in Pub/Sub or Queues

Commands & Events: What’s the difference?

One of the building blocks of messaging is, you guessed it, messages! But there are different kinds of messages: Commands and Events. So what’s the difference? Well, they have very distinct purposes, usage, naming, ownership, and more! YouTube Check out my YouTube channel where I post all kinds of content that accompanies my posts including this video showing everything in this post. Commands The purpose of commands is the intent to invoke behavior. When you want something to happen within your system, you send a command. There is some type of capability your service provides and you need a way to expose… Read More »Commands & Events: What’s the difference?