Composable architecture is a way of building software from independent parts, each owning one business capability such as checkout, search, identity or content, that talk to each other only through APIs and events. Because no part reaches into another part's database or code, you can replace any one of them, or buy it from a vendor, without rewriting the rest. Most of the work is deciding where those boundaries go and who owns the data on each side. The tools come later.
If you were looking for The Composable Architecture (TCA), Point-Free's Swift library for structuring SwiftUI and UIKit apps around state, actions and reducers, that is a separate topic. This post is about how whole systems are put together.
Where the term comes from
Gartner popularized "composable business" in the opening keynote of its 2020 IT Symposium/Xpo, built on four principles: modularity, autonomy, orchestration and discovery. In Gartner's research the unit of composition is the packaged business capability (PBC): a software component that does one job a business user would recognize, such as pricing or order management, and comes with its own data, API and events.
The MACH Alliance, an industry body made up mostly of software vendors and systems integrators, promotes a technical checklist for the same idea: microservices-based, API-first, cloud-native SaaS and headless. MACH is one route to a composable system, and it leans heavily on buying SaaS products. There are others.
How it differs from microservices, headless and MACH
These words get used as synonyms. They describe different things at different levels:
Term | What it describes | Level |
|---|---|---|
Microservices | Code split into separately deployed services, each with its own data | Deployment |
Headless | A front end separated from the back end, talking to it over an API | Presentation |
MACH | A vendor checklist: microservices, API-first, cloud-native SaaS, headless | Technology choices |
Composable architecture | Business capabilities with boundaries clean enough to swap or buy each one | System design |
You can have any of these without the others. A monolith that serves a JSON API to a separate front end is headless. Plenty of microservice systems are so tangled that no single service can be replaced on its own. And a modular monolith can be composable.
You will often read that microservices split a system by technical function while composable architecture splits it by business capability. That is unfair to microservices: Lewis and Fowler's 2014 description already says services should be organized around business capabilities, each managing its own data. What composable thinking adds is the buy-or-build question. A capability's boundary is drawn so that a vendor's product could sit behind it.
Separate deployments are optional too. Shopify kept its main application as a modular monolith: in 2020 it had 37 components inside one codebase and was rolling out its own tool, Packwerk, to flag dependencies that cross component boundaries. Functionality moved into separate services only for specific reasons: storefront rendering, because it is read-only and very high-traffic, and credit card vaulting, because that data shouldn't flow through the rest of the system.
What a capability looks like in practice
Take a marketplace. A reasonable first map of its capabilities:
- Identity and login: usually bought (Auth0, Clerk, Supabase Auth, or Keycloak if you want to host it yourself).
- Payments: bought (Stripe, Adyen).
- Search: bought (Algolia) or run yourself (OpenSearch, Postgres full-text search) behind an interface you own.
- Marketing and help pages: a headless CMS (Contentful, Sanity, Strapi).
- Listings, pricing rules, commissions and matching: built in-house, because this is the business.
Each capability owns its data. The others refer to its records by ID, and when they need some of that data locally they keep a copy and update it from the capability's events (listing.updated, payment.succeeded). Nothing joins across another capability's tables. That one rule does more for replaceability than any framework or vendor.
The rest of your code should depend on an interface you own, and only one adapter per vendor should ever touch that vendor's SDK. A sketch in TypeScript:
export interface ListingDocument {
id: string;
title: string;
city: string;
price: number;
updatedAt: string; // ISO 8601
}
// Application code imports ListingSearch.
// Only the adapter for a specific vendor imports that vendor's SDK.
export interface ListingSearch {
upsert(listing: ListingDocument): Promise<void>;
remove(listingId: string): Promise<void>;
query(q: {
text: string;
city?: string;
maxPrice?: number;
page: number;
}): Promise<{ ids: string[]; total: number }>;
}Moving from Algolia to OpenSearch then means writing one adapter and re-indexing, instead of hunting for vendor calls across the codebase. The catch is that the interface has to start from what your product needs. Once it grows options that only one engine has, or the relevance rules live in the vendor's dashboard instead of your repository, the swap turns back into a project.
When it's worth it, and when it isn't
It tends to pay off when:
- Several teams ship to the same product and keep waiting on each other's releases.
- One capability changes far more often than the rest (search tuning, pricing, content) and drags every release along with it.
- The same back end serves several channels: a website, a mobile app, a point of sale, partner integrations.
- A good product already exists for something you would otherwise build and maintain, and it isn't where you compete.
- A suite you are locked into, such as an aging commerce platform or ERP, sets the pace of every change.
It is usually not worth it when:
- One team owns the whole product. You would pay distributed-systems costs to solve a coordination problem you don't have.
- The product is young and the domain boundaries are still moving. Boundaries drawn too early land in the wrong places, and moving one between two services is far harder than moving it inside one codebase.
- Nobody owns operations: tracing, alerting and on-call across a dozen services and vendors.
- The budget can't absorb several SaaS bills that grow with your traffic.
For a small team, the better starting point is usually a well-structured monolith for the core domain, with bought services at the edges for the commodity capabilities: authentication, payments, email, sometimes search. You get most of the benefit for a fraction of the operational load, and you can still pull more pieces out later.
The Finland property-search platform we build is a small example of buying the infrastructure and writing the parts that make the product. Scrapy crawlers collect listings from each source, a registry in Supabase controls which crawlers run and logs every run, the website is a Next.js app on Cloudflare Workers, and the iOS app is built with Expo and React Native. Supabase and Cloudflare provide the database and hosting as managed services; the crawlers, the website and the app are code we wrote. Nobody would sell it to you as a MACH stack, and it doesn't need to be one.
How to move toward it without a rewrite
- List your capabilities and how often each one changes. Six months of tickets or commits is enough. The ones that change most and have clear edges are your first candidates; search, content and identity often qualify.
- Put one routing layer in front of the existing system. An API gateway or a thin backend-for-frontend sends each call either to the old system or to the new capability, so clients don't notice when something moves.
- Extract or buy one capability and shift traffic to it gradually. This is the strangler fig approach; our post on legacy system modernization covers the migration mechanics. Run old and new side by side and compare their output before you switch reads over.
- Translate at every boundary you don't control. Microsoft's description of the anti-corruption layer pattern is a good reference: a layer that converts an outside system's model into yours, so its quirks don't leak into your design.
- Publish events for the data other capabilities need, so they can keep their own copies instead of calling you on every request.
- Stop when the next extraction costs more than it saves. Pulling out three or four capabilities and leaving the rest in a tidy monolith is a perfectly good place to end up.
Step 4 is easy to underestimate. Oplist, a client whose hospital shift-scheduling SaaS we build, receives staff and leave data from the HR and payroll systems of private hospitals in Türkiye through live API integrations. Those systems can hold duplicate records for the same employee, and leave types are not equal: sick leave, hourly leave and block leave such as training each affect the roster differently, and some take precedence over others. A scheduler that trusted the raw feed would build wrong rosters, so we deduplicate staff records and apply a precedence order to leave types on Oplist's side instead of taking the source data as given.
What it costs
Every part you compose can fail, throttle you or change its API on its own schedule. Two examples from systems we have run in production.
In the field-ticket automation we built with an agency partner for an oilfield services company, an n8n workflow takes ticket PDFs that arrive by Gmail, sends them to an LLM for extraction and files the results in dated Google Drive folders. It has handled about 100 documents a day since September 2025. Most failures came from hitting the LLM provider's rate limits (HTTP 429). The fix was a fallback: when one model is throttled, the document goes to an alternative model, so it still gets processed.
For EdgeHunters' real-time odds platform it worked the other way round. The scrapers we built were the primary source, and a third-party odds API took over automatically whenever a scraper failed.
The rest of the bill arrives more quietly. SaaS components are priced per request, record, seat or transaction, so model the price at ten times today's volume before you sign. One user action may now cross four systems, and without a request ID passed through every hop and logged in one place, debugging turns into guesswork. Each hop and translation layer also adds latency, which a page calling five capabilities in sequence will show.
Leaving a vendor is harder than it looks. Exporting your records is usually possible; exporting everything you need to keep working is a different matter. With identity providers, ask up front whether they will export password hashes, or every user resets their password on migration day.
Questions to ask before you buy a capability
- What is the API versioning policy, and how much notice do you get before a breaking change?
- Are there webhooks or events for every state change you care about?
- What are the rate limits on the plan you will actually pay for?
- Can you export all the data you would need to migrate away, including history, files and credentials?
- What does it cost at ten times your current volume?
- Where is the data stored and processed, and what does that mean under the privacy law your users fall under, such as the GDPR?
- Is there a public status page and incident history?
Frequently asked questions
How is this different from SOA?
Service-oriented architecture also split systems into services behind interfaces, but it usually came with a shared enterprise service bus, canonical data models and central governance, and many services were wrappers around existing applications. Composable architecture keeps the interfaces, connects capabilities through APIs and events instead of a central bus, gives each capability its own data, and assumes from the start that some capabilities will be bought.
How do you keep a modular monolith from turning back into a tangle?
Have the build check the boundaries. Most stacks have a tool that fails CI when one module depends on another in a way you haven't declared or reaches into its internals: Packwerk for Ruby, Spring Modulith or ArchUnit for Java, dependency-cruiser or Nx's module-boundary lint rule for TypeScript, import-linter for Python. For the data, give each module its own schema or table prefix and send back any query that joins across them in code review.
Is composable architecture only for e-commerce?
Commerce and content are where most of the vendor products are, which is why "composable commerce" is the phrase you will see most. The same thinking applies to any system that depends on outside services: HR and payroll feeds, billing, document processing, identity.
If you'd like a second opinion on which parts of your system to buy and which to build, that's part of our backend and API work.
Related Articles
Kong vs Traefik vs AWS API Gateway: How to Choose
Kong, Traefik and AWS API Gateway compared as of October 2026: features, licensing, Kubernetes support and what AWS charges for 100 million requests a month.
Read More: Kong vs Traefik vs AWS API Gateway: How to ChoosegRPC vs REST for Microservices: When gRPC Is Worth It
When gRPC beats REST between services, what it adds to your operations (load balancing, deadlines, browser access), and what our own protobuf vs JSON test showed.
Read More: gRPC vs REST for Microservices: When gRPC Is Worth ItRPA Implementation: From Process Choice to Bots That Keep Running
Most of an RPA implementation is choosing the process and designing for exceptions. The order we work in, current license prices, and what broke in the n8n and LLM automation we built with an agency.
Read More: RPA Implementation: From Process Choice to Bots That Keep Running
