ออกแบบให้ทนทานบทที่ 4/9 · ~11 นาที
Compute, Load Balancing & Auto Scaling
EC2 purchase options, ELB แต่ละแบบ และ serverless
EC2 purchase options
| ตัวเลือก | ลดราคา | เหมาะกับ |
|---|---|---|
On-Demand | – | ระยะสั้น คาดเดาไม่ได้ |
Savings Plans / Reserved | สูงสุด ~72% | ใช้ต่อเนื่อง 1–3 ปี |
Spot | สูงสุด ~90% | งานทนการถูกขัดจังหวะ (batch, CI, stateless) |
Dedicated Host | – | license ผูก socket/core, compliance |
| Load balancer | Layer | จุดเด่น |
|---|---|---|
ALB | 7 (HTTP/HTTPS) | route ตาม path/host, WebSocket, Lambda target |
NLB | 4 (TCP/UDP/TLS) | ล้าน req/s, latency ต่ำมาก, static IP / Elastic IP |
GWLB | 3 | แทรก firewall/appliance ของ third-party |
เช็กความเข้าใจ
งานประมวลผลรูปแบบ batch ที่ restart ได้ ต้องการถูกที่สุด
อ่านจบแล้ว? ลองทำข้อสอบเรื่องนี้เลย
การดึงความรู้ออกมาใช้ทันทีหลังอ่าน (retrieval practice) ช่วยให้จำได้นานขึ้นมาก