api: "YAML JSON TOON Database"
version: "1.0.0"
format: "json"
dataset:
  slug: "serverless-patterns"
  title: "Serverless Architecture Patterns"
  description: "Common patterns for designing serverless applications."
  category: "Cloud Computing"
  category_slug: "cloud-computing"
  tags: "cloud,serverless,lambda,functions,architecture"
  view_count: 0
data:
  - pattern: "Event-Driven"
    description: "Functions trigger on events from queues, streams, or webhooks."
    example: "S3 upload triggers Lambda to resize image."
  - pattern: "API Gateway + Functions"
    description: "HTTP requests routed through API Gateway to serverless functions."
    example: "AWS API Gateway + Lambda for REST APIs."
  - pattern: "CQRS"
    description: "Separate read and write paths into distinct functions and data stores."
    example: "Write to DynamoDB, read from Elasticsearch."
  - pattern: "Backend-for-Frontend (BFF)"
    description: "Dedicated API layer per client type (web, mobile)."
    example: "Separate Lambda functions for web and mobile clients."
  - pattern: "Step Functions / Durable Functions"
    description: "Orchestrate multiple serverless functions into workflows."
    example: "Process order through validation, payment, fulfillment steps."
  - pattern: "Static Content + Functions"
    description: "Static assets served from CDN; dynamic logic in functions."
    example: "S3 + CloudFront + Lambda@Edge."
