Course contentsShow
← System Design
Lesson 1685 of 1,91941. Real-World System: Notification SystemFree lesson

SMS Notifications

SMS delivery through gateway providers like Twilio, including costs, delivery rates, and international considerations.

SMS Notifications

What you'll learn: How to integrate SMS delivery into a notification system using gateway providers like Twilio, and what factors affect cost, reliability, and global reach.

Why SMS Still Matters

Despite push notifications, SMS remains critical for high-priority alerts (auth codes, payment confirmations, critical alerts) because it works on any phone, doesn't require app installation, and has near-universal reach. SMS delivery rates typically exceed 95% worldwide.

SMS Gateway Providers

You don't send SMS messages directly—you use gateway providers like Twilio, AWS SNS, Vonage, or Plivo. These companies maintain carrier relationships worldwide and handle the complexity of message routing across hundreds of mobile networks.

Think of it like using a shipping company instead of delivering packages yourself—they have infrastructure, vehicles, and agreements you don't.

Key Implementation Considerations

Costs

SMS is significantly more expensive than push notifications:

  • US/Canada: 0.0079–0.0079–0.01 per message
  • Western Europe: 0.01–0.01–0.05 per message
  • Other regions: 0.03–0.03–0.15+ per message

At scale, millions of SMS messages monthly = substantial costs. Budget carefully and use SMS selectively for high-value notifications only.

Delivery Rates and Timing

  • Delivery success: 90–98% depending on region and carrier
  • Latency: Usually 3–10 seconds, but can be minutes during carrier congestion
  • Delivery receipts (DLRs) confirm when messages reach phones, but aren't guaranteed

International Challenges

  • Regulatory compliance: Some countries require sender registration (India, China)
  • Local numbering: Better delivery using local phone numbers vs international
  • Character limits: 160 characters for standard GSM; Unicode reduces to 70
  • Carrier filtering: Spam filters may block messages with certain keywords or patterns

Key Takeaway: SMS notifications provide reliable, universal reach through gateway providers like Twilio, but cost significantly more than push notifications and require careful consideration of international regulations, delivery rates, and per-message pricing when designing at scale.