Skip to content

Sponsor: Using RabbitMQ or Azure Service Bus in your .NET systems? Well, you could just use their SDKs and roll your own serialization, routing, outbox, retries, and telemetry. I mean, seriously, how hard could it be?

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

.NET Channels as a In-Memory Message Bus – Beware!

If you’re looking at using .NET Channels as a replacement for a MediatR, or if you’re not in .NET but searching for an in-memory producer-consumer API, hang on a second—because you might be in for a pile of pain. That’s not actually what you want. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Channels in .NET: A Simple Example Let me give you a really simple example of channels in C#. If you’re not using .NET, you’ll totally understand the gist of this because it’s pretty… Read More ».NET Channels as a In-Memory Message Bus – Beware!

5 Mistakes That Make Your Code Unmaintainable

Here are my 5 most common mistakes in software design that make your code a nightmare to work with. All of these mistakes make your code unmaintainable over time as it grows. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. 1. Invalid State and Data Consistency Issues The first mistake is related to data ending up in an invalid state and having consistency issues. This usually happens because you don’t have good control over what’s changing state. Imagine you have two different boundaries in your system… Read More »5 Mistakes That Make Your Code Unmaintainable

Microservices to Monolith

There’s been a noticeable pushback against microservices lately, and we’re seeing a strong swing back toward monoliths. But I have to ask, if you can’t build a solid microservices system, what makes you think you can build a good monolith? YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Understanding the Basics: Network Calls Nearly a decade ago, Simon Brown echoed a similar sentiment, just in reverse of today, and I believe the reasons remain unchanged. Let’s dive into the fundamentals first. Imagine we have two components,… Read More »Microservices to Monolith