Skip to content

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

FileDescription
Project scaffold5-layer Clean Architecture directory structure
API design templateRESTful API design specification
Deployment templateCloud 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 deploy

Source 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

OpenDDD — Open Domains, Open Knowledge | openddd.com | 沪ICP备2022029625号-1