afterclick
728 × 90

Engineering

What the AWS case study showed about TellApart's real-time bidding

Second out of roughly 1,500 entrants. That was TellApart’s finish in the 2010 AWS Startup Challenge, and a few months later, in 2011, Amazon followed up by publishing an AWS case study on the company’s architecture. TellApart’s own blog post about it was short and a little proud: the founders had bet early that good algorithms were worth nothing unless they could be put into production quickly and at scale, and Amazon Web Services was how they planned to do that.

The post pointed to two systems in particular. One was a real-time bidding system answering tens of thousands of requests per second on behalf of hundreds of millions of end users. The other was Tubes, an internal service that replicated data between AWS regions using Amazon SQS. Both are worth unpacking, because the constraints behind them have barely changed.

Real-time bidding sets a hard clock

In real-time bidding, an ad exchange announces an impression to many bidders at once and waits a fixed, short window for answers. A bidder that replies late has simply not bid. Each request needs a decision about the user, the page and the price, and that decision depends on data such as the user’s recent shopping behaviour and the quality score TellApart’s models assigned them.

Tens of thousands of requests per second is not extreme by 2026 standards, but in 2011 it was a serious load for a young company, and the existence of a cross-region replicator tells you the serving fleet ran in more than one AWS region. That spread is what created the need for the second system.

Tubes moved data between regions over SQS

If bidders in different regions all need a consistent view of user data, the data has to move between regions, continuously and without loss. TellApart’s answer was Tubes, which carried data from one region to another over Amazon Simple Queue Service.

The blog post gave no internal details about Tubes. So what follows is how such a design generally works, not a description of Tubes’ code.

A queue between regions decouples the writer from the reader. The producing region writes messages and moves on; the consuming region reads at its own pace, and a temporary outage on either side becomes a backlog rather than lost data. SQS standard queues deliver every message at least once, which means the consumer must be idempotent: applying the same update twice must leave the same result. They also do not guarantee order, so updates need versions or timestamps, or the data must be shaped so that order does not matter, as with counters and set unions.

That last point is the one teams most often get wrong. A replication stream of “set balance to 40” messages breaks under reordering. A stream of “add 5 to balance, operation id 1234” messages survives it, as long as the receiver remembers which ids it has applied.

Beyond the AWS case study: an alphabet soup of services

TellApart described its use of AWS as an alphabet soup, and the company’s engineering writing over the following years shows how wide it got. Feature extraction ran on Elastic MapReduce over logs stored in S3. Databases sat behind Elastic IPs, which caused the subtle failover bug described in InetSocketAddress Considered Harmful. Metrics flowed through the company’s own Taba event aggregation service, and dashboards also took in Amazon CloudWatch data. Later the fleet moved onto Apache Aurora, Mesos and Docker, a shift covered in Imagine There’s No Server.

One small aside: SQS was among the first AWS services, opened to the public in 2006, before EC2 itself. Building replication on it in 2011 meant building on the oldest and best-understood part of the platform.

What a team would use for the same jobs today

The bidding side has changed least. A team building a bidder in 2026 would still put stateless servers behind load balancers in several regions near the exchanges, keep the hot user data in an in-memory store such as Redis, Valkey or DynamoDB with DAX, and treat latency budgets as a hard constraint in code. The OpenRTB protocol from the IAB, which standardised bid requests across exchanges, defines the message format almost everywhere.

For cross-region replication, the choice is wider than in 2011. DynamoDB global tables replicate across regions without any application code. Aurora Global Database does the same for relational data. For event streams, Amazon MSK with MirrorMaker 2 or Kinesis with a consumer that writes into another region fills the space Tubes did. SQS remains a reasonable choice when the volume is moderate and the consumer is idempotent, and its FIFO queues add ordering within a message group if you need it.

The design rule TellApart’s choice illustrates still holds: replicate with something that turns an outage into a backlog. Direct synchronous writes across regions look simpler until the first time a region slows down and drags every bidder with it.

The AWS case study itself was a marketing document, and it read like one. The more interesting record of TellApart’s architecture is the engineering posts that came after it. What it captured was a moment when a start-up could run a global real-time bidder on rented infrastructure, and four years later Twitter bought the company along with that stack.

Questions readers ask

Why did SQS-based replication need idempotent consumers?

SQS standard queues deliver every message at least once, so the same message can arrive twice. A consumer that applies an update twice must end up with the same result as applying it once. Standard queues also do not guarantee order, which is why updates need versions or timestamps, or should be shaped like counters and set unions where order does not matter. A stream of additions tagged with an operation id survives this, provided the receiver remembers which ids it already applied.

How did TellApart do in the 2010 AWS Startup Challenge?

It finished second out of roughly 1,500 entrants. A few months later, in 2011, Amazon published a case study on the company's architecture. TellApart's short blog post about it said the founders had bet early that good algorithms were worth nothing unless they could reach production quickly and at scale, with Amazon Web Services as the means. The case study pointed to a real-time bidding system and to Tubes, the cross-region replicator.

Which AWS services would do the job of Tubes today?

DynamoDB global tables replicate across regions with no application code, and Aurora Global Database does the same for relational data. For event streams, Amazon MSK with MirrorMaker 2, or Kinesis with a consumer writing into another region, covers the ground Tubes did. SQS is still reasonable at moderate volume with an idempotent consumer, and FIFO queues add ordering within a message group. Whatever the tool, pick one that turns a regional outage into a backlog instead of lost data.

How established was SQS when TellApart chose it for replication?

SQS was one of the first AWS services, opened to the public in 2006, before EC2 itself was available. By 2011, when the case study appeared, a replicator built on it rested on the oldest and best-understood part of the platform. That suits the general case for a queue between regions: the producer writes and moves on, the consumer reads when it can, and a short outage on either side leaves a backlog instead of missing data.