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

Uncategorized

What are Business Rules? It’s not this.

What are business rules? Well, they often get confused with trivial validation. I think it’s essential to make the distinction because where you apply business rules and validation will differ and indicate the type of system you’re building. Let me explain and illustrate how you can make the distinction with a simple code example. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Example Let’s immediately start with a very simple code example. Here’s a single method that has two conditions. The first is that if the… Read More »What are Business Rules? It’s not this.

How to seed a new Microservice with data?

You’re ready to deploy a new service but need to seed it with data from other services. How do you do that? I’ll cover various solutions to this common problem I often ask about. Stick around because I will challenge you to comment to provide use cases and why I don’t think it should be that common. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Local Cache Often, people want to seed a new service with data from another service because they’re keeping a local cache… Read More »How to seed a new Microservice with data?

Have you replaced your DB because of the Repository Pattern?

Have you been able to replace your database implementation transparently because of the use of the repository pattern? While this is a controversial question and topic, I will explain why it doesn’t need to be. Sure, you’re creating an abstraction, but an abstraction around what? YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Repository Pattern First, we need to agree on the definition of the Repository Pattern. I will use the definition in the Patterns of Enterprise Application Architecture. Conceptually, a Repository encapsulates the set of… Read More »Have you replaced your DB because of the Repository Pattern?