Traditional IT vs Cloud
ก่อนยุค Cloud องค์กรต้องลงทุนและดูแล Data Center เองทั้งหมด — ทั้งค่าเช่าพื้นที่, ค่าไฟ, ระบบ cooling, ทีม IT 24/7 และเวลาในการจัดหาเครื่อง Cloud externalizes ปัญหาเหล่านี้ทั้งหมด ให้เป็นหน้าที่ของผู้ให้บริการ
ค่าเช่า DC + ค่าไฟ + Cooling
ต้องจ่ายค่าเช่าพื้นที่ Data Center, ค่าไฟ, ระบบทำความเย็น และค่าบำรุงรักษาทั้งหมดเป็น CAPEX ก้อนใหญ่
Hardware Setup ใช้เวลานาน
การสั่งซื้อ + ติดตั้ง server ใหม่ใช้เวลาหลายสัปดาห์ถึงหลายเดือน — ปรับขยาย/ลด capacity ทำได้ยาก
Scaling จำกัด
ต้องประเมิน peak traffic ล่วงหน้า ซื้อเผื่อ — ถ้าใช้ไม่ถึงก็เสียเปล่า ถ้าไม่พอก็ระบบล่ม
ทีม Monitor 24/7
ต้องมีทีมเฝ้าระบบตลอดเวลา — รับมือ disaster (ไฟดับ, hardware เสีย, ภัยพิบัติ) เอง
What is Cloud Computing?
Cloud Computing คือการส่งมอบทรัพยากร IT (compute, database storage, applications) แบบ on-demand ผ่านอินเทอร์เน็ต โดยจ่ายตามที่ใช้จริง (pay-as-you-go) — เป็นวิธีง่ายๆ ในการเข้าถึง servers, storage, databases และ services อื่นๆ
- On-demand delivery — provision ได้ทันทีไม่ต้องรอ
- Pay-as-you-go pricing — จ่ายเท่าที่ใช้ ไม่มีค่า upfront
- AWS เป็นเจ้าของ + maintain hardware — คุณแค่ provision ผ่าน web app
- เข้าถึงผ่าน internet ได้ตลอดเวลา จากทุกที่
5 Characteristics of Cloud Computing
NIST นิยาม Cloud Computing ด้วย 5 ลักษณะสำคัญ:
1. On-demand Self-service
ผู้ใช้ provision ทรัพยากรเองได้ โดยไม่ต้องติดต่อคนของผู้ให้บริการ — กดปุ่มแล้วได้เครื่องเลย
2. Broad Network Access
เข้าถึงผ่าน network ได้จากหลากหลาย platform (mobile, laptop, tablet, workstation)
3. Multi-tenancy + Resource Pooling
ลูกค้าหลายรายแชร์ infrastructure ร่วมกัน — แต่แยก isolation จากกัน (economies of scale)
4. Rapid Elasticity + Scalability
ขยาย/ลด resource ได้รวดเร็วและอัตโนมัติ — acquire และ dispose ตาม demand
5. Measured Service
วัดการใช้งานได้แม่นยำ — pay-per-use ตามจริง (compute hours, storage GB, data transfer)
6 Advantages of Cloud Computing
เหตุผลหลักที่องค์กรย้ายมาใช้ Cloud มี 6 ข้อ สำคัญ:
1. Trade CAPEX for OPEX
เปลี่ยนจากลงทุน hardware ก้อนใหญ่ (Capital Expense) → จ่ายตามใช้ (Operating Expense) — ลด TCO โดยรวม
2. Massive Economies of Scale
AWS ซื้อ hardware ในระดับ massive — ราคาต่ำลงเรื่อยๆ และส่งต่อให้ลูกค้า
3. Stop Guessing Capacity
ไม่ต้องเดา capacity ล่วงหน้า — scale ตาม actual usage จริงๆ ได้
4. Increased Speed & Agility
Provision resource ภายในนาที — ทดลอง deploy feature ใหม่ได้เร็วขึ้น time-to-market สั้นลง
5. Stop Spending on Data Centers
ไม่ต้องดูแล DC, racking servers, power, cooling — โฟกัสที่ business value
6. Go Global in Minutes
Deploy ไปหลาย Region ทั่วโลกได้ภายในไม่กี่นาที — leverage AWS global infrastructure
Types of Cloud Computing (IaaS / PaaS / SaaS)
Cloud แบ่งเป็น 3 ประเภทตามระดับการจัดการของผู้ให้บริการ — ยิ่ง abstraction สูง คุณยิ่งดูแลน้อยลง
IaaS — Infrastructure as a Service
ให้ building blocks ระดับ infrastructure (VM, network, storage) คุณดูแล OS, runtime, app เอง — ตัวอย่าง: Amazon EC2, GCP Compute Engine, Rackspace, Digital Ocean
PaaS — Platform as a Service
ผู้ให้บริการดูแล infra + OS + runtime ให้ — คุณแค่ deploy code — ตัวอย่าง: AWS Elastic Beanstalk, Heroku, Google App Engine, Microsoft Azure
SaaS — Software as a Service
ใช้งาน software สำเร็จรูปผ่าน browser — ผู้ให้บริการดูแลทุกอย่าง — ตัวอย่าง: AWS services หลายตัว, Google Apps (Gmail), Dropbox, Zoom
Cloud Deployment Models
นอกจากแบ่งตามประเภท service แล้ว Cloud ยังแบ่งตาม วิธี deploy ได้ 3 แบบ:
Public Cloud
Infrastructure อยู่กับผู้ให้บริการสาธารณะ — แชร์ใช้งานกับลูกค้ารายอื่น (multi-tenant) — ตัวอย่าง: AWS, Microsoft Azure, Google Cloud Platform
Private Cloud
Cloud ที่ใช้งานเฉพาะองค์กรเดียว — อยู่บน on-premises หรือ third-party DC — ตัวอย่าง: VMware, OpenStack
Hybrid Cloud
ผสม Public + Private — เก็บข้อมูล sensitive ไว้ private, run workload ทั่วไปบน public — ใช้ AWS Direct Connect / VPN เชื่อม
Pricing of the Cloud (Quick Overview)
AWS pricing มี 3 fundamentals ที่ต้องเข้าใจ — ช่วยแก้ปัญหาที่ traditional IT แพง:
1. Compute
จ่ายตาม compute time (เช่น EC2 per second/hour) — ไม่ใช้ก็ไม่จ่าย (เมื่อ stop instance)
2. Storage
จ่ายตาม GB ที่เก็บจริง — มี storage class หลายแบบ (S3 Standard, IA, Glacier) ราคาต่างกัน
3. Data Transfer
Data IN ฟรี (เข้า AWS) — Data OUT คิดเงิน (ออกจาก AWS ไป internet) — Transfer ภายใน region/AZ บางทีฟรี
AWS Global Infrastructure
AWS มี global infrastructure ครอบคลุมทั่วโลก — ช่วยให้ deploy app ใกล้กับผู้ใช้ ลด latency และเพิ่ม availability
AWS Regions
พื้นที่ทางภูมิศาสตร์ (เช่น us-east-1, ap-southeast-1) — ใช้ deploy applications + infrastructure แต่ละ Region isolated จากกัน — ประกอบด้วย AZ เฉลี่ย 3 AZ (อย่างน้อย 2, สูงสุด 6)
Availability Zones (AZ)
Data center 1+ แห่งที่มี redundant power, networking, connectivity — แยก physically จากกัน (ป้องกันภัยพิบัติ) — เชื่อมกันด้วย high-bandwidth + ultra-low latency network
Edge Locations / Points of Presence
216+ จุดทั่วโลก — ใช้ส่ง content ใกล้ผู้ใช้ (content delivery) สำหรับ CloudFront (CDN) และ Route 53 (DNS)
AWS Data Centers
Hardware กายภาพจริง — racks, servers, network equipment ภายใน AZ (ผู้ใช้ไม่สามารถเข้าถึงได้โดยตรง)
AWS Global Infrastructure
└── Region (เช่น ap-southeast-1)
└── Availability Zone (เช่น ap-southeast-1a)
└── Data Center (physical hardware)
Edge Locations / PoPs (216+) — แยกต่างหาก ใช้กับ CloudFront / Route 53How to Choose an AWS Region
การเลือก Region ที่เหมาะสม ขึ้นอยู่กับ 4 ปัจจัย:
1. Compliance
กฎหมาย data sovereignty — บางประเทศกำหนดว่าข้อมูลต้องอยู่ในประเทศเท่านั้น (เช่น GDPR ในยุโรป) — ต้องเลือก Region ที่ตรงข้อกำหนด
2. Proximity (Latency)
เลือก Region ใกล้ลูกค้า — latency ต่ำลง user experience ดีขึ้น (ลูกค้าไทย → ใช้ ap-southeast-1 Singapore)
3. Available Services
ไม่ใช่ทุก service มีในทุก Region — service ใหม่ๆ มักเปิดที่ us-east-1 ก่อน แล้วค่อยขยาย — เช็ค region table ก่อน
4. Pricing
ราคาแต่ละ Region ต่างกัน — โดยทั่วไป us-east-1 ถูกที่สุด, Region ห่างไกลแพงกว่า
Global vs Regional Services
AWS services แบ่งเป็น 2 scope — Global (ทั่วโลก ไม่ผูกกับ Region) และ Regional (อยู่เฉพาะใน Region ที่ deploy)
Global Services
IAM (users, groups, roles, policies), Route 53 (DNS), CloudFront (CDN), WAF (Web Application Firewall) — ใช้งานได้เหมือนกันจากทุก Region
Regional Services
ส่วนใหญ่เป็น regional — EC2, RDS, Lambda, VPC และอื่นๆ — ต้องเลือก Region ตอน deploy S3 เป็น regional แต่ bucket name unique ทั่วโลก
AWS Cloud Use Cases
AWS ใช้สร้าง scalable applications ได้หลากหลายอุตสาหกรรม — ไม่จำกัดแค่ tech startup
- Healthcare — เก็บข้อมูลผู้ป่วย, run AI/ML วินิจฉัยโรค
- Finance — fraud detection, real-time trading, banking
- Gaming — server backend, multiplayer matchmaking, leaderboards
- Media — video streaming, content delivery (CloudFront)
- Retail / E-commerce — recommendation engine, peak traffic handling
- Manufacturing — IoT sensors, supply chain analytics
Famous AWS Customers
Netflix (video streaming), Airbnb (booking platform), Twitch (live streaming), Lyft (ride-sharing), NASA (space data + research)
Why They Chose AWS
Scale รับ traffic peak ได้ทันที, global reach, broad service catalog, pay-as-you-go ลด cost ตอน traffic ต่ำ
Summary
Cloud Computing คือ on-demand delivery ของ compute, storage และ database ผ่าน pay-as-you-go pricing — แก้ปัญหาของ traditional IT ที่ต้องลงทุน hardware, ดูแล data center และทีม monitor 24/7 เอง
5 Characteristics
On-demand self-service, broad network access, multi-tenancy, rapid elasticity, measured service
6 Advantages
Trade CAPEX→OPEX, economies of scale, stop guessing capacity, speed/agility, stop spending on DC, go global in minutes
3 Service Types
IaaS เช่น EC2 — PaaS เช่น Elastic Beanstalk — SaaS เช่น Dropbox หรือ Zoom
3 Deployment Models
Public (AWS), Private (VMware on-prem), Hybrid (ผสม Public + Private)
3 Pricing Fundamentals
Compute (per hour/sec), Storage (per GB), Data Transfer (IN ฟรี, OUT คิดเงิน)
Global Infrastructure
Region (avg 3 AZ, min 2, max 6) → AZ → Data Center และ Edge Location 216+ จุดทั่วโลก
- เลือก Region ตาม 4 ปัจจัย: Compliance, Proximity, Available Services และ Pricing
- Global services ที่ต้องจำ: IAM, Route 53, CloudFront, WAF
- Regional services ที่พบบ่อย: EC2, S3, RDS, Lambda, VPC
- Shared Responsibility — AWS รับผิดชอบ security OF the cloud (โครงสร้างพื้นฐาน)
- Shared Responsibility — Customer รับผิดชอบ security IN the cloud (data + config)