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

Feature Flags are more than just Toggles

Feature Flags are just conditional statements but can be much more powerful. Use them so you can integrate features before they are ready to be used in production. But they have a lot more utility than just being simple toggles. Here are different ways of thinking and using feature flags. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Configuration In it’s simplest form, we’re really just talking about configuration. We could have some deployment process where it’s simply a matter of having a static file that’s… Read More »Feature Flags are more than just Toggles

Avoiding long-running HTTP API requests

How do you handle long-running HTTP requests that take long to complete? For example, how would you design an HTTP API that needs to generate a transcript for a specific video (by ID)? Deeper into that question, you can assume that won’t be a fast request/response, so how can we better manage this? Using asynchronous request/reply with HTTP. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Designing an API Endpoint This video/blog were spurred on by this post I came across on Twitter/X. I didn’t think… Read More »Avoiding long-running HTTP API requests

Beware! Anti-patterns in Event-Driven Architecture

Event-driven architecture has patterns and common practices that are solutions for various problems. The issue arises when you apply these patterns when you don’t have the problem they solve, or you can avoid having the problem in the first place. Here are some patterns and why the might become anti-patterns in a given context. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Leaking Internals If each service has it’s own storage/database, then we need to be cautious about leaking schema and data that we don’t want… Read More »Beware! Anti-patterns in Event-Driven Architecture