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

Derek Comartin

Event Carried State Transfer: Keep a local cache!

What’s Event Carried State Transfer, and what problem does it solve? Do you have a service that requires data from another service? You’re trying to avoid making a blocking synchronous call between services because this introduces temporal coupling and availability concerns? One solution is Event Carried State Transfer. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Temporal Coupling If you have a service that needs to get data from another service, you might just think to make an RPC call. There can be many reasons for… Read More »Event Carried State Transfer: Keep a local cache!

SOLID? Nope, just Coupling and Cohesion

How do we avoid writing spaghetti code so our systems don’t turn into a hot mess? For me Coupling and Cohesion. Some people focus on things like SOLID principles and Clean Architecture. While I don’t necessarily have a problem with that if you’re pragmatic, I don’t ever really think about either of those explicitly. 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. Coupling and Cohesion With over 20 years of professional software development experience, I’m mostly thinking about coupling and cohesion as a guide to… Read More »SOLID? Nope, just Coupling and Cohesion

Blocking or Non-Blocking API calls?

When should you use blocking or non-blocking API calls? Blocking synchronous communication vs non-blocking asynchronous communication? Should commands fire and forget? What’s the big deal of making blocking synchronous calls between services? 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. Communication There are 3 different forms of communication that I’m generally thinking of. Commands, Queries, and Events. I’m going to cover all three and the pros/cons of using blocking synchronous or non-blocking asynchronous with each of them. Commands With commands, it’s all about users’/clients expectations.… Read More »Blocking or Non-Blocking API calls?