Bandwidth ใน Hosting คืออะไร
Guide to hosting bandwidth — what it is and how much you need
สารบัญ
Bandwidth ใน Hosting คืออะไร
Bandwidth คือปริมาณข้อมูลที่ถ่ายโอนระหว่างเซิร์ฟเวอร์กับผู้เข้าชมต่อเดือน ไม่ใช่ความเร็วอินเทอร์เน็ต แต่เป็น "ท่อน้ำ" ที่ข้อมูลไหลผ่าน
Bandwidth is the volume of data transferred between your server and visitors each month. Think of it as a pipe — the wider it is, the more data can flow simultaneously.
- bandwidth = ปริมาณ data transfer ต่อเดือน
- ไม่ใช่ความเร็ว แต่เป็น capacity
- ทุกไฟล์ รูปภาพ วิดีโอ คิดเป็น bandwidth
- เกินโควต้า = เว็บช้าหรือถูก suspend
วิธีคำนวณ Bandwidth ที่เว็บคุณต้องการ
สูตรง่าย: จำนวนผู้เข้าชมต่อวัน × ขนาดเฉลี่ยหน้าเว็บ (MB) × 30 วัน = bandwidth ที่ต้องการต่อเดือน
Simple formula: daily visitors × average page size (MB) × 30 = monthly bandwidth needed.
- เว็บหน้าละ 2MB x 1000 ผู้เข้าชม/วัน x 30 = 60GB/เดือน
- รูปภาพ HD และวิดีโอกินมาก
- เพิ่มบัฟเฟอร์ 30% เผื่อ traffic พุ่ง
- ใช้ Google Analytics ดู page views จริง
Unlimited Bandwidth จริงหรือโกหก
โฮสต์หลายเจ้าโฆษณา "unlimited bandwidth" แต่ในสัญญา Fair Use Policy อนุญาตให้ throttle หรือ suspend เมื่อใช้เกินปกติ
Many hosts advertise unlimited bandwidth but Fair Use Policies allow them to throttle or suspend accounts that consume abnormally high volumes.
- "Unlimited" มีเงื่อนไข Fair Use เสมอ
- อ่าน TOS ก่อนสมัคร
- เว็บขนาดกลางขึ้นไปควรเลือกแพ็กที่ระบุตัวเลข
- ถามฝ่าย support โดยตรงว่า limit จริงเท่าไหร่
CDN ช่วยลด Bandwidth ของเซิร์ฟเวอร์หลักได้อย่างไร
CDN (Content Delivery Network) cache ไฟล์ static เช่น รูปภาพ JS CSS ที่ edge server ใกล้ผู้ใช้ ลด bandwidth ที่เซิร์ฟเวอร์หลักต้องรับผิดชอบ
A CDN caches static files — images, JS, CSS — on edge servers near users, reducing the bandwidth your origin server must handle.
- Cloudflare free tier ช่วยลด bandwidth ได้มาก
- ไฟล์ static เสิร์ฟจาก CDN ไม่นับ bandwidth เซิร์ฟเวอร์
- ลด latency และ TTFB ด้วย
- เหมาะเว็บที่มีรูปเยอะหรือ traffic ต่างประเทศ
ประเภทเว็บกับ Bandwidth ที่ใช้
blog ข้อความล้วนใช้ bandwidth ต่ำ ร้านค้าออนไลน์ปานกลาง เว็บวิดีโอหรือ download ใช้สูงมาก
Text blogs use low bandwidth, e-commerce moderate, video or download sites very high.
- Blog/portfolio: ต่ำ <10GB/เดือน
- SME website: กลาง 10-50GB/เดือน
- E-commerce รูปเยอะ: 50-200GB/เดือน
- Video streaming/download: 200GB+/เดือน
เทคนิคลด Bandwidth ให้เว็บคุณ
บีบอัดรูปภาพ เปิด gzip/brotli ใช้ lazy load และ WebP ช่วยลด bandwidth usage ได้ 30-70%
Compressing images, enabling gzip/brotli, using lazy load and WebP can reduce bandwidth usage by 30–70%.
- WebP แทน JPEG ลดขนาด 25-35%
- gzip/brotli บีบ HTML/CSS/JS
- lazy load รูปนอก viewport
- minify CSS/JS ลด bytes
เกิดอะไรขึ้นเมื่อ Bandwidth เกินโควต้า
แต่ละโฮสต์จัดการต่างกัน บางเจ้าเก็บ overage charge บางเจ้า throttle speed และบางเจ้า suspend เว็บ ควรรู้ policy ก่อนเลือก
Each host handles it differently — some charge overage fees, some throttle speed, others suspend the site. Know the policy before choosing.
- overage charge: จ่ายต่อ GB ที่เกิน
- throttle: ความเร็วลดลงแต่เว็บยังออนไลน์
- suspend: เว็บดับจนจ่ายเงินหรืออัพเกรด
- upgrade automatic: บางเจ้า upgrade plan อัตโนมัติและแจ้ง
เลือกแผน Hosting ตาม Bandwidth ที่เหมาะสม
เริ่มด้วยแผนถัดจากขั้นต่ำหนึ่งระดับ มีพื้นที่สำหรับ growth และ monitor usage ทุกเดือน
Start one tier above the minimum, leave room for growth and monitor usage monthly.
- ซื้อแผนที่ให้ bandwidth เผื่อ 2x ที่คาด
- monitor ทุกเดือนใน cPanel/DirectAdmin
- ตั้ง alert เมื่อใช้ถึง 80%
- CDN ก่อน upgrade plan เสมอ