Module 3 Intermediate Serverless & Event-Driven Patterns

Serverless Architecture & Event-Driven Systems

Pay-Per-Execution: AWS Lambda, API Gateway, SQS & EventBridge

Estimated Time 6 Hours
Primary Services
AWS LambdaAmazon API GatewayAmazon SQSAmazon EventBridgeAmazon DynamoDBAWS Step Functions
Module 3 သင်ရိုးမာတိကာ Event-Driven Primitives, Concurrency & Pay-per-Execution

Serverless Microservices Architecture

API Gateway, AWS Lambda, DynamoDB နှင့် Event-Driven Serverless စနစ်များ

Server စီမံခန့်ခွဲရန် လုံးဝမလိုဘဲ သန်းနှင့်ချီသော Request များကို အလိုအလျောက် Sub-second အလိုက် Scale လုပ်ပေးနိုင်သည့် Event-Driven Serverless Microservices စနစ်များကို API Gateway, Lambda, DynamoDB နှင့် SQS/SNS ဖြင့် တည်ဆောက်ပုံ။

ရရှိမည့် အဓိက ဗိသုကာဆိုင်ရာ ကျွမ်းကျင်မှုများ (Learning Outcomes)

1

Synchronous REST APIs (API Gateway + Lambda) နှင့် Asynchronous Event Pipelines (EventBridge + SQS) ကို ခွဲခြားအသုံးပြုနိုင်ခြင်း။

2

Lambda Cold Starts ကို လျှော့ချခြင်း၊ Reserved Concurrency နှင့် Provisioned Concurrency ကို စီမံနိုင်ခြင်း။

3

Idempotency Keys နှင့် Dead Letter Queues (DLQ) ဖြင့် Message ဆုံးရှုံးမှု မရှိအောင် ကာကွယ်နိုင်ခြင်း။

4

Serverless Cost Optimization (Execution duration, memory allocation, ARM Graviton runtime) ကို ကျွမ်းကျင်စွာ ချိန်ညှိနိုင်ခြင်း။

အခြေခံ သဘောတရားနှင့် စဉ်းစားပုံ Mental Models

Serverless ဆိုသည်မှာ Server မရှိခြင်း မဟုတ်ဘဲ၊ Server ၏ Operating System, Patching, Scaling နှင့် Capacity Planning များကို AWS က အပြည့်အဝ တာဝန်ယူပေးသော စနစ်ဖြစ်ပါသည်။

သင်သည် ကုဒ် Run သည့် မီလီစက္ကန့်အတွက်သာ ငွေပေးရပြီး Request မရှိသည့်အချိန်တွင် $0 ကုန်ကျသောကြောင့် Startup များနှင့် Microservices များအတွက် အကောင်းဆုံး ဖြစ်ပါသည်။

အဓိက ဗိသုကာ သဘောတရားများနှင့် မဏ္ဍိုင်များ (Key Architecture Concepts)

Lambda Concurrency & Cold Start

Function စတင် Wake up ဖြစ်ချိန် Execution Environment ဖန်တီးရသည့် ကြာချိန်နှင့် ပြိုင်တူ Run နိုင်သော စွမ်းရည်။

Event-Driven Decoupling

စနစ်တစ်ခုနှင့်တစ်ခု တိုက်ရိုက်မချိတ်ဘဲ SQS / EventBridge Queue များခံ၍ လွတ်လပ်စွာ လုပ်ဆောင်စေခြင်း။

Dead Letter Queue (DLQ)

လုပ်ဆောင်၍ မအောင်မြင်သော Error Messages များကို စစ်ဆေးပြင်ဆင်နိုင်ရန် သီးသန့် Queue တွင် သိမ်းဆည်းခြင်း။

Production စနစ်များတွင် မဖြစ်မနေ လိုက်နာရမည့် Golden Rules

  • Lambda Function တိုင်းတွင် သင့်တော်သော Timeout (Default 3s-10s) နှင့် Memory ကို Power Tuning Tool ဖြင့် တိုင်းတာသတ်မှတ်ပါ။
  • Asynchronous Event Lambda တိုင်းတွင် Dead Letter Queue (DLQ) ကို မဖြစ်မနေ ထည့်သွင်းထားပါ။

Hands-On Case Studies

လက်တွေ့ လေ့လာနိုင်သော Case Studies များ

3 Case Studies
Beginner SaaS & Marketing Tech
6 min read

Global Serverless URL Shortener: Sub-15ms Redirection

Architecting a high-throughput, low-latency URL redirection engine with API Gateway HTTP APIs, Lambda, and DynamoDB single-table design.

p99 Redirect Latency: 14ms
Monthly Cost / 10M Clicks: $14.20
Intermediate Fintech & Payments
7 min read

Resilient Webhook Ingestion Engine: Buffering 10,000 Webhooks/Sec

Ingest third-party webhooks (Stripe, GitHub, Shopify) directly into Amazon SQS via API Gateway without intermediate compute to prevent traffic dropouts.

Dropped Webhooks: 0
Ingress p99 Latency: 22ms