Recipe: DDD + Serverless
Domain-Driven Design + Alibaba Cloud Serverless Architecture
Scenario
Need to build a DDD-style Serverless backend supporting domain modeling, API design, and auto-deployment.
Contents
| File | Description |
|---|---|
| Project scaffold | 5-layer Clean Architecture directory structure |
| API design template | RESTful API design specification |
| Deployment template | Cloud function + API Gateway configuration |
Quick Start
bash
# 1. Use DDD entity generation prompt
# → Generate entity code from domain description
# 2. Use API design prompt
# → Generate API interfaces from business requirements
# 3. Deploy to Alibaba Cloud FC
fun deploySource Files
- Recipe source:
skills/recipes/ddd-serverless/ - Backend implementation:
business-lines/P0-ProChain-Mall/backend/
Tags
type.recipe domain.prochain lang.python tool.fastapi maturity.verified