All articles

We Moved Our Cloud With 500 Live Calls On It

· 5 min read

Every phone company says it's redundant. Few show you what happens when the redundancy is actually used. So we tested ours under load and wrote down exactly what we saw, including the parts that didn't go perfectly.

The short version: no call was dropped by the switch, in either direction, with up to about 500 calls on the line.

How ShoutDial is built for this

ShoutDial has two layers. The ShoutDial cloud holds your account, settings and call history. It runs in two regions at once: one active, one standing by with a live copy of everything. The phone servers that carry your calls keep their own copy of the settings they need to route a call. So a call in progress doesn't depend on where the cloud is running at that moment.

That's the theory. We wanted to prove it with real calls on the line.

How the test worked

We rented a separate server and used it to place test calls into our phone servers. Each call registers like a real phone, connects over encrypted SIP, and streams audio in both directions for two minutes. Then it hangs up and a new one starts. Hundreds of them, continuously.

With the calls running, we moved the ShoutDial cloud from its active region to its standby region, and later back again.

Run 1: about 100 live calls

We held around 100 calls and switched regions. The standby region was taking changes 57 seconds later. Calls already up stayed up, and new calls kept connecting the whole time, because routing reads from the copy on each phone server.

Run 2: about 500 live calls

Then we ramped to roughly 500 calls at once and switched back. The cloud was taking changes again 61 seconds after the switch began; almost all of that was waiting for DNS to update.

One call did drop, 46 seconds after the switch had finished. Our phone server sent its routine "are you still there?" check and the test tool never answered. That check doesn't involve the cloud at all, so we count it as a test-tool miss. We're showing it anyway.

What we found and fixed

A test that finds nothing isn't worth much. This one found three real problems, and all three are fixed:

Call history paused after a switch

The service that saves call records kept talking to the old region's database, which becomes read-only after a switch. Nothing was lost (it retries), but call history lagged until it reconnected. Now it reconnects automatically, and the second run proved it.

Two calls failed to connect in run 1

The call-routing service on each phone server restarted itself whenever our code changed, even for a documentation-only change. During that brief restart, a call could wait longer than the phone server's three-second limit. Now it skips restarts it doesn't need, waits up to six seconds, and runs more copies of itself.

One phone server wasn't saving call history at all

A configuration difference meant one phone server's call records never reached the cloud. Only test and lab calls were affected, and it's fixed and confirmed.

What we didn't test

Why it matters to you

Redundancy is part of every ShoutDial plan. You don't buy a second site, and you don't flip anything when something goes wrong. As we add phone servers in more regions, the same design carries over: your calls run close to you, and the cloud behind them has a standby ready.

We'll keep testing it, and we'll keep publishing what we find.

Ready to try ShoutDial?

Phones, paging and AI for every building you run. Cloud from $20 per user a month.

Coming Soon