Technical Guide

Custom Ecommerce Architecture for Small Business: How to Choose, Scale and Maintain It

Written with AI assistance, then edited and reviewed by a person before publishing.

Five-tier ecommerce architecture diagram: customer, Astro storefront, Medusa commerce engine, database and cache, and Stripe, Shippo and Resend integrations.

Choosing an ecommerce architecture is mostly a business decision, not a technical one. Here is how to tell whether a hosted platform or a custom, composable build fits your store, with one real example and the trade-offs stated plainly.

If you are searching for “custom ecommerce architecture,” you are probably weighing two questions at once: which way should my store be built? and what will it cost me to run? This guide answers the first in plain business terms, points you to the details on the second, and tells you honestly when a hosted platform is the better call.

It draws on one real build, the Warm Presents online store, and on the full architecture whitepaper we published about it. One build is one data point, not a rule, and we say so wherever it matters.

The short version

If your store looks like this The route that usually fits
A standard catalog of restockable products, a quick launch, and you want the least to manage A hosted platform
A standard catalog that is growing, with a few extras you can get from the platform’s add-ons A hosted platform, with add-ons
One-of-a-kind or made-to-order items, or checkout and shipping rules a template cannot express A custom, composable build
A store that has to connect to other systems, such as inventory, accounting, or custom pricing A custom, composable build
You dislike a fixed monthly fee and want your base cost to be low and grow with sales A custom, composable build, if you accept more responsibility

Not sure which row is you?

Book a free 30-minute architecture review. We will look at your store, recommend an architecture, and give you a rough price range. No obligation.


What an ecommerce architecture actually is

An ecommerce architecture is the list of parts that make a store work, and who is responsible for each one. Every store has the same jobs to do. What differs is whether one vendor bundles them, or you choose them separately.

Layer Its job, in plain terms
Storefront The pages customers see. It exists to sell, and its speed and structure also affect how findable the store is.
Commerce engine Operates the store: products, inventory, carts, orders, customers, and the rules around them.
Database and cache Keeps orders and customer data safe, and holds the fast shared memory used for caching and background jobs.
Payments Takes card payments, confirms them, and reports back to the store.
Shipping Live rates, label purchase, and tracking updates.
Email Order confirmations, shipping updates, and other transactional messages.
Hosting Where each layer runs, and who looks after it.

A hosted platform delivers all of these as one product. A composable build chooses a specialist service for each layer and connects them. Neither is wrong. The question is which operating model fits your business.

The three routes

Hosted all-in-one Headless Composable
What it is One product covers storefront, engine, and hosting Storefront built separately from the commerce engine Store assembled from separate, replaceable services
Setup Usually the easiest More engineering The most engineering
Recurring cost Usually a fixed platform fee Often a mix Spread across services, usually tied to usage
Customization Limited to what the platform allows High on the storefront Very high
Who runs operations Mostly the vendor Shared You, or your developer
Control and lock-in Lower control, higher vendor dependence Medium Higher control, vendor dependence spread out

The cost row is where small businesses often get tripped up. A fixed monthly platform fee is the same bill in a month with a hundred orders and a month with none. For a new or seasonal shop, that can matter. For a busy one, it may be a fair price for not having to run anything.

A reference architecture: the Warm Presents example

Here is what a composable build looks like in practice. Warm Presents is a husband-and-wife shop selling handmade, one-of-a-kind gifts, plus made-to-order engraved pieces. Their inventory does not behave like restockable retail, and they did not want to pay a flat platform fee in months they sold nothing. So we built the store in five business layers:

Five-tier architecture diagram. Tier 1 the customer, tier 2 the Astro storefront on Netlify, tier 3 the Medusa v2 commerce engine on Railway. The commerce engine connects to tier 4, persistence and cache: PostgreSQL for commerce data, Redis for cache and workflows, and storage for product media. The commerce engine also connects directly to tier 5, the service integrations: Shippo for shipping, Resend for email, and Stripe for payments. A dashed line shows card entry going directly from the storefront to Stripe through the Stripe Payment Element.

Figure 1. The five business layers of the Warm Presents store.

  • Storefront: a fast, hand-coded Astro site on Netlify.
  • Commerce engine: Medusa v2, an open-source commerce backend, on Railway, with PostgreSQL and Redis behind it.
  • Payments: Stripe, with the card entered directly into Stripe’s own field.
  • Shipping: Shippo, through a fulfillment integration we built, for live USPS rates and label purchase.
  • Email: Resend, for order confirmations and shipping updates.

Two things are worth taking from this, whatever you end up building. First, each component has one job, so any one of them can be replaced without rebuilding the store. If Shippo stopped being the right fit, the answer is “replace the fulfillment integration,” not “start over.” Second, the design is deliberately simple: the build leaves out features, such as UPS and FedEx integration and return-label automation, until they earn their cost.

On this build, hosting runs about $9 a month, before transaction costs like Stripe payments and Shippo labels. That is one store’s current number, and it changes as plans and usage change. For the full cost model, see the whitepaper.


When not to go custom

This is the section most guides leave out, so here it is plainly. Stay on a hosted platform if:

  • Your products are standard, restockable items.
  • You want to launch quickly and cannot wait for an engineering project.
  • You would rather pay a predictable monthly fee than own the operations.
  • You do not need unusual checkout, fulfillment, or integration logic.
  • Nobody in your business, and no developer you trust, wants to look after the store after launch.

A custom build is not a badge of seriousness. It trades a lower and more usage-driven recurring cost for more engineering, more operational responsibility, and more provider relationships to manage. If you are not getting something specific in return, it is the wrong trade.

Five questions that decide it

  1. Does your inventory fit standard retail? One-of-a-kind and made-to-order pieces often sit awkwardly in platforms built around restockable products.
  2. What do you pay in a month you sell nothing? Compare a fixed platform fee with a base cost that scales with activity.
  3. Who owns operations after launch? Backups, deployments, monitoring, credentials, and dependency updates have to be done by someone. Our guide to running costs and hidden costs covers this in detail.
  4. What has to connect to the store? If the answer is “nothing special,” a hosted platform is hard to beat.
  5. What happens if a provider changes its price or its terms? In a composable build, you replace one part. On a hosted platform, you may be replacing everything.

Want a second opinion on your answers?

We will go through them with you on a free 30-minute call, and tell you honestly if a hosted platform is the better fit.


Scaling, maintenance, visibility and security

Each of these deserves its own page, but here is the short answer to each.

Scaling. The goal for most small stores is appropriate scale, not infinite scale. A good architecture gives you escape routes: in the Warm Presents build the backend can already run as a separate server and worker, so growth could mean more backend resources, more replicas, dedicated worker capacity, or more caching, without rebuilding. Read more in Scalable Ecommerce Solutions for Small Business.

Maintenance. Low maintenance does not mean no maintenance. It means fewer things done by hand, and a clear answer to “who looks after this?” Details, including the costs people overlook, are in what a custom ecommerce store really costs to run.

Visibility. A storefront that is mostly plain HTML and loads JavaScript only where interaction needs it is fast, and fast pages help. But architecture only makes good visibility possible. Product pages still need clear content and structured data, which our technical SEO guide walks through.

Security. In the Warm Presents build, Stripe handles card processing, the store verifies Stripe’s webhooks, and login protection and rate limiting use shared Redis state. Any architecture you choose should answer who handles card data, how payment confirmations are verified, and how logins are protected.

What it costs

Our online store builds start from $3,500. The final price depends on scope: catalog size, payment and shipping integrations, and any custom workflows. We would rather tell you the range after a conversation than guess from a form. Running costs are a separate question, and they depend on the services you choose and how much you sell.

Go deeper

Get a free architecture review for your store

A free, no-obligation 30-minute call. We will recommend an architecture and give you a rough price range, and tell you plainly if a hosted platform is the better choice.

Frequently Asked Questions

There is no single best one. A hosted all-in-one platform is usually the right choice for a standard catalog, a fast launch, and an owner who wants the least to manage. A custom, composable architecture fits better when the inventory or checkout does not fit standard retail, when you want a low base cost that grows with sales, or when the store has to connect to other systems.
A hosted platform bundles the storefront, commerce engine, and hosting into one product with a recurring fee. Headless separates the storefront from the commerce engine so each can be built and changed independently. Composable goes further: the store is assembled from separate, replaceable services, such as one for payments, one for shipping, and one for email, connected by APIs.
Our online store builds start from $3,500, and the final price depends on scope: catalog size, payment and shipping integrations, and any custom workflows. Running costs are a separate question. On our Warm Presents build, hosting is about $9 per month, before transaction-based costs such as Stripe payment processing and Shippo shipping labels. We scope every store on a call, and the first conversation is free.
Not necessarily. Hosted platforms handle much of the scaling for you. A custom architecture lets you decide where to add capacity, such as more backend resources, dedicated workers, or more caching, but it also means someone has to plan and run that. Scale only becomes a reason to go custom when a hosted platform cannot do what the store needs.
Stay hosted if your products fit standard retail, you want to launch quickly, you would rather pay a predictable monthly fee than own the operations, and you do not need unusual checkout, fulfillment, or integration logic. Going custom adds engineering and operational responsibility, and that is only worth it when you get something specific in return.
A free 30-minute call about your store. We look at how it is built today, or how it should be built if it is new, recommend an architecture, and give you a rough price range. There is no obligation to hire us.
MORE FROM THE BLOG

Keep Reading

Pricing Guide
December 2026 13 min read

Your Website Isn't a Brochure: Why a Real Website Is Worth $3,000

Is a $3,000 website worth it? What a working website does that a brochure site can't, what it costs over three years, and how to tell if you need one.

Read the guide
Case Study
November 2026 7 min read

Replacing Two Old Websites Without Losing Google — Pioneer First Services Case Study

A Bethlehem, GA wheel repair shop had two aging sites and years of search history. We consolidated them into one fast site with 59 tested redirects and a quote form that takes up to 8 photos, with no backend.

Read the case study
Insight
November 2026 7 min read

Do You Actually Own Your Website? A 5-Minute Check

Paying for a website doesn't mean you own it. Check who controls your domain, logins and Google listings, and what leaving a platform really takes.

Read the insight