views:

99

answers:

1

I'm working on an application that sends and receives SMS messages to and from its users. (Don't worry - it's not spam - every user of the app expects to send and receive these messages).

One key aspect of the app... If a user sends a message to the app, the app then sends that message out to every person on that user's "team". So, the app will be sending a receiving a pretty significant number of messages (I'm hoping for a few thousand users, and 5,000-10,000 SMS messages per day).

I've been experimenting with a number of options:

  1. SMS to email
  2. Connecting a mobile phone to my server
  3. Contracting an SMS gateway

Option 1 is great, since it's free, but it's unreliable (apparently mobile providers queue these messages after SMS messages they can charge for, so they're frequently received late or lost)

Option 2 is also cheap, but the mobile phone can't keep up with the number of messages I'll be sending. Also, the mobile phone provider will consider this volume of messages excessive.

Option 3 is perfect, except that SMS gateway providers charge PER MESSAGE (usually $0.02-$0.06 per), which creates an impossible scaling problem. (Reminds me of the old business adage... "Sure we're losing money on every transaction, but we'll make it up in volume...")

So, long story short - how on EARTH did Twitter pull this off? They've been doing a similar thing (allowing users to exchange SMS messages with the app) since the beginning. Even if they negotiated an INCREDIBLE discount (say, $0.001 per message), they'd be paying an ENORMOUS cost to send the hundreds of millions of messages they handle.

Does anyone have any idea how they did this?

+4  A: 

After a bit of Googling, it looks like Twitter has simply been signing deals with cell phone companies in various countries. For example (Twitter blog post link spam incoming):

Some more details about SMS in general here.

Matt Ball
I was really hoping to discover that the early Twitter team had BUILT something (that, potentially, I could learn from and maybe reverse-engineer). But so far, it sounds like they just negotiated good deals with the phone companies. Too bad. Nevertheless, this is a very helpful answer - thanks Bears!
mattstuehler
This answer explains how Twitter managed itself AFTER it was pretty large. But, how did it manage in it's earliest days, before it was big enough to negotiate with those companies? Even in those early days, sending 10s of thousands of messages would have burned through an enormous amount of cash?
mattstuehler