Personal Project
StreamSizer

StreamSizer — Capacity Sizing That Shows Its Working

Size Kafka, Kinesis, SQS and RabbitMQ pipelines — partitions, consumers, storage and bandwidth — and see exactly why each number is what it is, how lag builds during a burst, and what would actually fix it.

Event-Driven ArchitectureCapacity PlanningLittle's LawKafkaKinesisSQSRabbitMQ

The Problem

Sizing calculators hand you a number and stop. Architects know the concepts, but rarely see why a partition count is what it is, which input drives it, or how lag actually builds and drains during a traffic spike.

So teams over-provision for the peak, or add partitions and pods to a pipeline whose real limit is a slow database — and the lag doesn't move.

The Idea

A sizing engine where every number carries its own derivation: the formula, your values plugged in, and a plain-English explanation — one click away.

The same model diagnoses the bottleneck, tests every possible fix, and writes the decision up as an ADR ready to paste into GitHub, Jira or Confluence.

How to Use It

A first sizing takes about two minutes. The quickest way in: open the app, click the Flash Sale Checkout scenario, then click any number on the spec sheet.

1

Pick your broker

Top bar

Switch between Kafka, Kinesis, SQS and RabbitMQ. Each one brings its own limits — partitions, shards, in-flight caps, per-queue throughput — and the sizing rules change with it.

2

Describe your traffic

Left panel · Workload

Start from a scenario (Flash Sale, IoT Firehose, Webhook Spike) or set your own: normal message rate, how much busier the peak gets, how long and how often peaks happen, and message size. Hover any ⓘ for a plain-English explanation with a live example.

3

Describe your consumers and target

Left panel · Consumers & Service level

How long one call downstream takes, how many messages per call, pods × threads, any rate limit downstream, and how often calls fail. Then set the longest delay you can accept during a spike — your lag SLO.

4

Read the verdict

Top of the results

Meets SLO, running hot, SLO breached, or unstable — with the peak lag, capacity and utilization behind it. The pipeline strip highlights the stage that limits throughput.

5

Click any number to see the math

Spec sheet

Every result opens into its formula, the formula with your numbers, the result and what it means. Hover a number to light up the inputs that drive it — or hover an input to see every number it affects.

6

Find the fix, then export

What would fix it? · Copy ADR

See each change ranked by its effect on lag — including the ones that do nothing, like adding partitions when downstream latency is the limit. Copy the result as an Architecture Decision Record, or share a link that reproduces your exact setup.

What It Models

Little's Law

Workers needed = messages per second × time each takes. Latency, not throughput, sets how much concurrency you need.

Absorb vs provision

Instead of sizing for the peak, let the broker buffer a burst and drain it — as long as the worst wait stays inside your lag SLO and the backlog clears before the next burst.

The partition ceiling

With one consumer per partition, extra pods sit idle. The tool shows idle handlers and compares in-pod fan-out.

Broker-specific limits

Kinesis' records-per-second limit vs bandwidth, shared vs enhanced fan-out reads, SQS in-flight and FIFO caps, RabbitMQ per-queue throughput.

Retry amplification

A few percent of failures with retries is extra load. The Webhook scenario shows retries alone tipping a stable system into an ever-growing backlog.

Bottlenecks & counterfactuals

Finds the slowest stage, names the next one, and re-runs the model for each possible change so the fix is evidence, not a guess.

Tech Stack

App

ViteReact 19TypeScript (strict)Tailwind CSS v4

Sizing engine

Pure TypeScriptSelf-explaining resultsFluid lag simulation70 automated tests

Delivery

Cloudflare Workers static assetsStrict CSPState in the URL hashNo backend

Hosting & Privacy

Zero-Backend Edge Delivery

Every calculation runs in the browser. The app is static files served from Cloudflare's edge at streamsizer.dheepstack.com, deployed on every push to main, with a strict content security policy and no network calls after load.

Shareable Without a Server

Your whole configuration lives in the part of the link after the #, which browsers never send to a server. Share a link and the recipient sees exactly your setup — and the exported ADR embeds it.

Honest About Assumptions

Every constant — a hard vendor limit, a planning default, or a rule of thumb — is labelled as such, editable in the app, and listed in the exported ADR.

Size Your Next Pipeline

Load a scenario, break it, and watch the tool explain why — then copy the decision record.

Open StreamSizer (streamsizer.dheepstack.com) ↗