// the find
aws-samples/aws-serverless-ecommerce-platform
Serverless Ecommerce Platform is a sample implementation of a serverless backend for an e-commerce website. This sample is not meant to be used as an e-commerce platform as-is, but as an inspiration on how to build event-driven serverless microservices on AWS.
A reference implementation of event-driven serverless microservices on AWS, using Lambda, EventBridge, DynamoDB, AppSync, and Cognito to model an e-commerce backend across 8 services. It's explicitly a learning sample, not production software. Best suited for developers who want to see how these AWS services connect in a realistic domain before building their own system.
Each microservice has its own SAM/CloudFormation template and Makefile, so you can deploy and tear down services independently — good discipline that many samples skip. Both unit and integration tests exist for every service, and the integration tests hit real AWS infrastructure rather than mocks. The shared `ecom` library and OpenAPI schemas enforce consistent event shapes across services, which is the hard part of event-driven architectures. The Makefile-based toolchain (`tools/deploy`, `tools/teardown`) handles the multi-service deployment sequencing without requiring a custom orchestration framework.
Last commit was mid-2024 and the repo is still marked 'work-in-progress' after years, so some services feel incomplete — warehouse and delivery have thin logic that wouldn't survive real inventory or carrier scenarios. The `payment-3p` service is written in TypeScript/CDK while everything else is Python/SAM, which means two different deployment toolchains and language contexts to manage simultaneously. No saga or compensation pattern for the order flow — if payment succeeds but warehouse allocation fails, there's no rollback mechanism shown. DynamoDB single-table design is not used; each service gets its own table with a simple schema, which sidesteps the hardest DynamoDB design questions you'd actually face in production.