A serverless API architecture pattern using CloudBlocks.
Internet → Gateway (API Gateway)
↓
Public Subnet
↓
Compute (Function App / Container)
↓
Private Subnet
↓ ↓
Database Storage
(Managed) (Queue / Blob)
| Layer | Category | Block Type | Subnet | Description |
|---|---|---|---|---|
| Entry | Edge | Gateway | Public | API Gateway / Function proxy |
| Logic | Compute | Compute | Public | Serverless functions / Container Apps |
| Data | Data | Database | Private | Managed database for structured data |
| Data | Data | Storage | Private | Queue storage for async processing |
- Create a Region Plate (VNet)
- Add Public and Private Subnet Plates
- Place a Gateway block on the Public Subnet
- Place a Compute block on the Public Subnet
- Place Database and Storage blocks on the Private Subnet
- Connect: Internet → Gateway → Compute → Database
- Connect: Compute → Storage
- Run Validate to confirm
- In a real serverless architecture, the VNet integration may vary
- This example demonstrates the logical data flow pattern
- Gateway represents the API management layer