_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

Serverless Patterns — Architektonické vzory

06. 07. 2024 1 min read intermediate

Cloud Intermediate

Serverless Patterns — Architektonické vzory

ServerlessArchitekturaEvent-DrivenPatterns 5 min read

Fan-out, Step Functions orchestrace, CQRS a event sourcing na serverless.

Fan-Out / Fan-In

SNS Topic: order-events
  ├── SQS: billing → Lambda: process-billing
  ├── SQS: inventory → Lambda: update-inventory
  ├── SQS: email → Lambda: send-confirmation
  └── SQS: analytics → Lambda: track-analytics

Každý processor nezávislý, SQS buffering + retry.

Step Functions

{
  "StartAt": "Validate",
  "States": {
    "Validate": {"Type":"Task","Resource":"arn:...:validate","Next":"Pay",
      "Catch":[{"ErrorEquals":["ValidationError"],"Next":"Failed"}]},
    "Pay": {"Type":"Task","Resource":"arn:...:payment","Next":"Ship",
      "Retry":[{"ErrorEquals":["Timeout"],"MaxAttempts":3}]},
    "Ship": {"Type":"Task","Resource":"arn:...:ship","End":true},
    "Failed": {"Type":"Fail"}
  }
}

Serverless CQRS

  • Command: API GW → Lambda → DynamoDB (writes)
  • Query: API GW → Lambda → ElastiCache (reads)
  • Sync: DynamoDB Streams → Lambda → update read model

Summary

Serverless = event-driven thinking. Fan-out, Step Functions, CQRS pro škálovatelnost.

Need Help with Implementation?

Our team has experience designing and implementing modern architectures. We’re happy to help.

Free Consultation

Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.