Tendrils.io
Insights

Reference architecture · 8 min read

AWS ecommerce architecture: what a production build actually looks like

A production AWS ecommerce architecture is event-driven and serverless: vendor feeds land in S3, SQS queues the work, Lambda processes it, EventBridge schedules it, DynamoDB holds catalog state, and API Gateway serves the storefront side. Here is the full reference, the real costs, and the failure modes, from a team that runs this daily for furniture retailers.

A data center corridor, the physical layer underneath a serverless AWS ecommerce architecture
The architecture below is the one we run in production for furniture retailers on Shopify.

What does the architecture actually look like?

In one sentence: vendor feeds land in S3, SQS queues the per-record work, Lambda functions parse and normalize it, EventBridge schedules the crawls and fires the events, DynamoDB holds the catalog and inventory state, Step Functions runs the multi-step enrichment pipelines, and API Gateway fronts the operational APIs that internal tools, the storefront theme, and now AI agents call.

Concretely, for a mid-size furniture retailer on Shopify, our build looks like this. A scheduled EventBridge rule starts each vendor feed pull: an FTP drop, a vendor API, a scraped portal, whatever the vendor actually provides. Raw files land in S3 untouched, so we always have the original payload to replay. A parser Lambda normalizes each record into a canonical product shape and drops per-record messages onto SQS queues, one queue per vendor so a broken feed cannot block the others. Worker Lambdas diff each record against current state and write changes to DynamoDB. Multi-step work, the enhancement and pricing pipelines that run dedupe, copy generation, spec extraction, and image checks in sequence, runs on Step Functions. API Gateway fronts the operational APIs: product lookup by SKU, stock checks, staged price review, the calls our tools and agent surfaces make. CloudFront sits in front of media. If you want the deeper walkthrough of the orchestration layer, we wrote it up in the catalog API orchestrator post.

The important framing: none of this replaces the storefront. Shopify stays the checkout, the cart, the product pages. AWS runs the operations layer around it, which is where the actual complexity of a multi-vendor catalog lives. Our Shopify inventory sync service is this architecture packaged; what follows is what sits underneath it.

Why serverless fits ecommerce operations workloads

Because the workload is spiky, scheduled, and event-driven, which is the exact profile serverless pricing rewards. Vendor feeds do not stream continuously. They arrive on a schedule (a 6am drop, a nightly crawl) or on an event (a vendor posts a new price file). Between those moments, the system does nothing. An always-on server bills you for the idle 23 hours; a Lambda function bills you for the minutes it ran.

The spikes matter as much as the idle. When a vendor drops a 40,000-line feed, the work arrives all at once. SQS absorbs it and Lambda fans out across it in parallel, then everything scales back to zero. We did not provision for that peak; the queue is the shock absorber, and it costs nothing while empty.

Failure isolation comes free, and in this workload it is not a nice-to-have. Vendor feeds break constantly: malformed rows, partial files, portals that are down for maintenance. Per-message failures go to a dead-letter queue without taking the batch down. On a single always-on process, one bad record pattern can wedge the whole sync. We have watched both versions; the queue version fails smaller.

What does it actually cost at realistic scale?

Less than the always-on alternative, and we can put honest bounds on it because AWS prices per unit. The published on-demand rates are the right order of magnitude: Lambda requests cost fractions of a cent per thousand plus compute time, SQS runs around forty cents per million requests, DynamoDB on-demand is around a dollar and a quarter per million writes and a quarter per million reads, API Gateway around a dollar per million calls. At tens of thousands of product updates a day, the sync primitives themselves total tens of dollars a month.

The real costs sit elsewhere: Lambda compute time during enrichment (image processing is the heavy pipeline, not record parsing), CloudFront and S3 transfer for media, and Step Functions state transitions if you run chatty workflows. For a mid-size retailer, expect a monthly bill in the tens to low hundreds of dollars, dominated by whichever pipeline does the most work per record.

The comparison that matters: the always-on version is a VM plus a managed database plus a load balancer plus the patching and the on-call, and it costs more in dollars while carrying a single point of failure exactly where your nightly sync runs. Serverless is also priced correctly for this workload's shape: when vendors send nothing, you pay nothing. That alignment is the real argument, not the raw numbers.

Which failure modes do you have to design for?

Vendor feed downtime is a routine operating condition, not an exception. Portals go down, FTP credentials expire, a vendor changes their file layout without telling anyone. The architecture treats a missing feed as a first-class state: the sync runs on the last good snapshot in S3, staleness is flagged on the product record, and the queue picks up where it left off when the feed returns. What you do not do is hold products hostage to a vendor's uptime.

Duplicate events are guaranteed, because SQS and EventBridge deliver at least once. Every write path assumes the same event may arrive twice: idempotency keys on record updates, conditional writes in DynamoDB, dedupe on message attributes. If your sync is not idempotent, you do not have a sync, you have a lottery. This is the cheapest correctness investment in the whole build and the one most homegrown integrations skip.

Partial syncs are the dangerous ones because they look like success. A feed that silently delivers 30 percent of a vendor's catalog will, in a naive system, unpublish the other 70 percent as out of stock. Every sync of ours validates record counts against expectation before applying; a payload that lands far short goes to a review state instead of the storefront. The feed ingestion layer exists largely to make this failure boring, and our post on stopping overselling on Shopify covers what happens downstream when it is not.

What should you not put on AWS?

The storefront itself. Shopify is a fixed external system in this architecture; you adapt to it, you do not rebuild it. Cart, checkout, payments, themes: rebuilding any of those on AWS to save Shopify's fees is the classic way to spend a year building a worse version of a solved problem. AWS earns its place on everything upstream of the buy button.

Second, anything a SaaS already owns well. Email, analytics, search merchandising: if a mature product does it, do not write a Lambda for it. The build-vs-buy line we use: build where your data and your correctness rules are the moat (catalog state, inventory truth, vendor-specific parsing) and buy where the problem is generic.

Third, DynamoDB is not the right home for everything. Catalog and inventory state fit it perfectly: key-based reads, predictable access patterns, per-record updates. If you find yourself needing ad-hoc relational queries across the whole dataset, reporting joins, complex filtering, that is a workload for a relational store or an export to a warehouse, not a reason to force it into the operational tables. Choose DynamoDB for the hot path and export cold copies to S3 for everything else.

How does this become agent-ready?

Here is the part most architecture write-ups miss: an event-driven system of queues, tables, and pipelines is already a set of tools. Find product by SKU, stage a price update, check stock across vendors, replay a feed. Those primitives exist because the operations need them, which means an agent does not need a new system, it needs a safe handle on the existing one.

That is what MCP servers give you in practice: the same DynamoDB tables and Step Functions pipelines the syncs use, exposed behind defined tools with real validation, instead of a text box pointed at your database. We build this through our agentic commerce practice and MCP server development; the concepts are covered in what agentic commerce actually means. The punchline: agent-readiness is not a new architecture. It is this architecture, well-factored.

Questions this answers

Is AWS good for ecommerce?

Yes, for the operations layer around the storefront. The storefront itself usually belongs on a platform like Shopify, but the catalog, inventory, and order data flows around it are spiky, scheduled, and event-driven workloads that AWS serverless primitives handle well at low cost. That is the split we run in production.

How much does a serverless ecommerce architecture cost on AWS?

At mid-size retail scale, typically tens to low hundreds of dollars a month. The sync primitives (SQS, Lambda, DynamoDB, API Gateway) total tens of dollars at tens of thousands of updates a day on published on-demand rates. The variables are enrichment compute, media transfer, and how chatty your Step Functions workflows are.

Should a product catalog use DynamoDB or a relational database on AWS?

DynamoDB for the hot operational path: key-based lookups by SKU, high write rates, predictable access patterns. Relational or a warehouse export for ad-hoc reporting and joins across the dataset. Most production builds end up with DynamoDB for state and an S3 export for everything analytical.

How do you handle vendor feed failures in an ecommerce architecture?

Three mechanisms: treat feed downtime as a normal state and run on the last good snapshot, make every write idempotent because at-least-once delivery means duplicates, and validate record counts before applying so a partial feed cannot unpublish most of a catalog. The partial sync is the failure that looks like success.

Can you run a Shopify store on AWS?

Not the storefront itself; Shopify hosts that, and in a sound architecture it is a fixed system you adapt to rather than rebuild. What you can and should run on AWS is everything around it: feed ingestion, inventory truth, pricing pipelines, media processing, and the operational APIs your tools call.

What makes an ecommerce architecture agent-ready?

An event-driven build already decomposes operations into primitives: find by SKU, stage an update, check stock, replay a feed. Exposing those through MCP servers gives agents validated handles on the same tables and pipelines the sync jobs use. Agent-readiness is a well-factored operations architecture, not a separate stack.

Want this architecture running on your catalog?

We build and operate exactly this for furniture retailers on Shopify. Run the agent check for a scored read on your store, or book a call and we will walk through your vendor setup together.

New systems notes when we publish: