Two-Sided Marketplace Architecture
Two-sided marketplace architecture with listings, transactions, trust systems, and dispute resolution that scales without losing supply or demand.
Components
Considerations
Alternatives
Complexity
Fit
When this blueprint fits
And when to walk away from it
When to use this
You are building a platform where independent sellers list to independent buyers and you take a fee on transactions. The supply and demand sides have different needs and your architecture has to serve both without compromise.
When NOT to use this
If you only sell first-party inventory, you have an e-commerce store. The marketplace primitives (seller onboarding, payouts, dispute resolution) add real complexity that is wasted if there is no second side.
Architecture
System components
Key building blocks of this architecture, layered from infrastructure up.
Listing Management
Search and Discovery
Transaction System
Trust and Safety
Messaging
Payout Engine
Dispute Resolution
Planning
Critical considerations
The things I have learned the hard way and would not skip on the next build.
Options
Alternative approaches
Where I would consider a different shape entirely, with the trade-offs spelled out.
Implementation
Related playbooks
Step-by-step guides for the harder parts of this architecture.
Designing Event-Driven Systems
Event-driven architectures unlock real autonomy between services, and they expose a whole new category of bugs if you do not respect their constraints. This playbook is the design discipline I use: model events as facts, version schemas carefully, choose the right broker, build idempotent consumers, handle ordering and failure, and add the observability that makes async systems debuggable in production.
Securing Your API Endpoints
API security is not a sprinkle of middleware, it is a layered set of defenses where any one missing layer opens the door. This is my full checklist for hardening API endpoints: authentication, rate limiting, validation, CORS, audit logging, and the response headers that mitigate the long tail of browser-side attacks. Used on every production API I have shipped.
In practice
Related case studies
Where I have applied this blueprint to real builds and what changed in practice.
Thinking
Related insights
Essays where I argue the trade-offs behind the choices in this blueprint.
Need help implementing this blueprint?
I help teams adapt blueprints like this to their specific requirements and ship from planning through production.
E-commerce
More in this category
Other blueprints with overlapping concerns.
E-commerce Platform Architecture
Scalable e-commerce architecture with product catalog, cart, checkout, order management, and inventory that survives flash sales without melting.
Payment Processing Pipeline
Reference architecture for payment processing covering checkout, webhooks, reconciliation, refunds, and accounting integration.