ExitHorizontal Scaling: ingestion throughput and bottlenecks1 / 9
Explanation

More workers need divisible work

How distributing ingestion work across workers or partitions increases throughput, and how skew or shared storage limits can prevent additional resources from helping. · associate

Ingestion throughput is the amount of data successfully ingested per unit of time. Horizontal scaling increases processing capacity by adding workers, rather than making one worker larger. The extra workers help only when they can process different pieces of work at the same time.

A partition divides input into independently processable pieces. In Amazon Kinesis Data Streams, these pieces are called shards. This example uses an application that assigns shard A to one EC2 worker and shard B to another. Each worker processes its assigned records and writes the results to the same database.

With balanced input and enough capacity elsewhere, two workers can finish more records per second than one. This diagram shows record movement, not polling requests or acknowledgments; the workers do not pass records to each other.

Shard A recordsShard B recordsProcessed recordsProcessed records
Amazon Kinesis Data StreamsInput stream: shards A and B
Amazon EC2Ingestion worker: shard A
Amazon EC2Ingestion worker: shard B
Amazon RDSShared destination database

1 / 5 The input stream contains shards A and B. These provide separate pieces of work that the ingestion application can assign independently.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.