Skip to content

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

Architecture

Screaming Architecture: Not Driven By Entities

“Manager”, “Builder”, “Factory”, or another technical name in your code structure isn’t Screaming Architecture or Vertical Slices. This post was inspired by the neverending posts I see on LinkedIn about software architecture styles and concepts. Let’s be real: The signal-to-noise ratio isn’t great, and many posts miss context and nuance. So, let’s unpack some thoughts on this. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Vertical Slice Architecture First up is the ever-popular vertical slice architecture, which seems to be widely misunderstood. One post I came… Read More »Screaming Architecture: Not Driven By Entities

Multi-Tenant: Database Per Tenant or Shared?

When building a multi-tenant application, one of the first decisions revolves around data management: Should you use a shared database or a database per tenant? YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Shared Database Let’s start with the shared database model. In this scenario, tenant A and tenant B are hitting the same API, connecting to the same database instance with the same schema. This means you need to record tenant information alongside the data you are persisting. For example, customer data might look like:… Read More »Multi-Tenant: Database Per Tenant or Shared?

Vertical Slice Architecture isn’t technical

Migrate to a Vertical Slice Architecture from a monolith? Is it more like microservices? Does it replace Clean Architecture? None of the above. It’s about being driven by cohesion of business capabilities and business processes. It has nothing to do with layers or physical deployment concerns. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Vertical Slice Architecture Vertical Slice Architecture has everything to do with business capabilities and nothing to do with a monolith, microservices, clean architecture, or hexagonal imports and adapters. It’s all about defining… Read More »Vertical Slice Architecture isn’t technical