Part of: Messaging Gateway

Why Messaging Platforms Fail at Traffic Spikes

A messaging platform fails at a traffic spike when every message waits in one queue on one route. Urgent messages, such as one-time passwords, get stuck behind campaigns, and a failed operator stops delivery. A platform built for spikes gives urgent messages their own queue, keeps to each operator's limits and moves traffic to another route.

By Krishall Magage · Published · 5 min read

Traffic on a messaging platform does not grow smoothly. It jumps. A bank sends a campaign to its whole list. A festival sale starts. A payment date arrives and many customers pay at the same time. At that moment, the messages that matter most are the ones most likely to arrive late.

This post explains why messaging platforms fail at traffic spikes, and what a platform needs to keep urgent messages moving.

What happens to messages during a traffic spike?

During a traffic spike, messages pile up faster than they can be sent. If the platform treats every message the same, they all wait in one line. A one-time password for a customer who is waiting at a checkout sits behind a promotional message that nobody needs now.

So the spike itself is not the whole problem. The problem is that urgent and non-urgent messages share one queue and one route.

Delivery reports
TimeTypeToRouteStatus
10:41:02OTP+94 77 ••• 4821Operator B · link 2Delivered
10:41:03Alert+94 71 ••• 1180Operator A → BRerouted
10:41:03OTP+94 76 ••• 9035Operator C · link 1Delivered
10:41:05Campaign+94 70 ••• 2264Operator B · link 1Sent
Example Sprout MGW delivery report: one alert moved to another route when an operator link failed, and was delivered.

Why do urgent messages arrive late?

Urgent messages arrive late because they usually wait in the same queue as everything else. When a campaign goes out, it fills the queue, and the code a customer needs now waits its turn.

There are two kinds of message to keep apart:

  • Urgent: one-time passwords (OTPs), transaction alerts and payment confirmations. The customer is waiting for them.
  • Not urgent: campaigns and promotions. They can wait a little without harm.

Read more about the difference between transactional and promotional SMS.

How does a priority queue keep OTPs moving?

A priority queue keeps OTPs moving by giving them their own lane. Sprout Messaging Gateway puts OTPs and transaction alerts in their own priority queue, apart from campaigns. A bulk campaign goes out on its own path, so it does not delay the code a customer is waiting for.

See how this works for one-time passwords on the OTP SMS gateway page.

Why do sending limits matter during a spike?

Sending limits matter because each mobile operator has its own limits. Keeping to them protects the operator links and the platform itself.

Sprout Messaging Gateway keeps to per-second and per-day sending limits, so each operator’s limits are respected and the system is not overloaded. It handles sudden traffic spikes, and OTPs and alerts keep their own priority queue.

What happens when an operator fails during a spike?

When an operator fails, a platform with only one route stops delivering. A platform with several routes moves the traffic. Sprout Messaging Gateway connects to several mobile operators, with several connections to each one:

  • If one connection to an operator fails, traffic moves to that operator’s other connections.
  • If the whole operator fails, traffic moves to another operator.
  • When a send fails, it retries on another operator.
  • New connections can be added, or switched off for maintenance, while it runs, with no restart.

It can also run as a high-availability cluster with automatic failover. The SMPP gateway page explains the operator links.

How do you see what was delivered after a spike?

You see what was delivered by tracking every message from start to end. After a busy hour, the question is always the same: did every customer get their code and their alert?

Sprout Messaging Gateway reports every message from the moment your app submits it to the operator’s delivery report. SMS delivery status comes from the operators’ delivery reports, and WhatsApp messages show Sent, Delivered and Read. You get campaign summaries, detailed logs and dashboards for counts, statuses and trends. Reports also show message volumes and delivery results per operator, which helps you compare routes.

Which messages should be allowed to wait?

Promotional messages are the ones that can wait. A customer who gets a festival offer a little later loses nothing. A customer who gets a one-time password late may give up on the payment. So plan your campaigns around your urgent traffic, not the other way round.

Customers can also opt in to and out of promotional messages. An opt-out takes effect at once, and OTPs and alerts still arrive.

What about a spike in leads after an ad?

A spike in leads after an ad needs the same thinking: every enquiry should get an answer, even when many arrive at once. When a campaign works, leads come in faster than a team can reply. The leads that wait are the ones that go cold.

Sprout’s AI answers every enquiry in seconds, including at night and on weekends, and the leads that are ready to buy reach your team first. See how on the Capture & Qualify page.

What should you check before your next busy period?

Check these five things before your next campaign or sale:

  1. Do urgent messages have their own queue, apart from campaigns?
  2. Does the platform keep to each operator’s sending limits?
  3. What happens when one connection, or a whole operator, fails?
  4. Can you add an operator connection without a restart?
  5. Who answers the new leads your campaign brings in?

To see how banks keep their OTPs ahead of their campaigns, visit Sprout Messaging Gateway.

FAQs

What is a scalable messaging platform?

It is a messaging platform that keeps delivering when traffic jumps. It gives urgent messages their own queue, keeps to each operator's limits and moves traffic to another route when one fails.

Why do OTPs arrive late during a campaign?

Usually because they wait in the same queue as the campaign. Sprout Messaging Gateway puts OTPs and transaction alerts in their own priority queue, so a bulk campaign does not delay them.

Do we need a restart to add an operator connection?

No. With Sprout Messaging Gateway, new operator connections can be added while it runs, with no restart.

Photo of Krishall Magage

About the author: Krishall Magage

Head of Sprout, hSenid Mobile

AI Product Leader & GTM Engineer. Bridging business and tech with full-stack skills.

Krishall Magage on LinkedIn