How request and response sizes, traffic volume, concurrency, replication, uploads, downloads, and peak throughput determine ingress and egress requirements and influence CDN and object-storage architecture.
An image-serving service can run at 15% CPU and still be completely saturated. If each response averages 400 KB and the host has a 10 Gbps network interface, about 3,100 responses per second fill the link. Extra CPU headroom, connection pooling, and query tuning do nothing to raise that ceiling. Latency climbs and kernel send buffers fill, while the dashboards most teams check first look normal.
This is why bandwidth estimation deserves the same rigor as database sizing. Bandwidth is a throughput resource with a hard ceiling at every hop: the client’s uplink, the load balancer, the instance NIC, the cross-zone link, the replication stream, and the origin behind the CDN. It is also hard to estimate, because the bytes a user sees are a small fraction of the bytes the system actually moves.
This article builds a bandwidth model from first principles: payload size multiplied by rate, then corrected for peaks, protocol overhead, retries, fan-out, and replication. It then shows how that model drives specific architectural decisions: where uploads should terminate, what a CDN cache hit ratio is really worth, and why upload concurrency often depends on the client’s network more than on your servers.
Bandwidth Estimation From First Principles: The Core Equation
The base relationship is simple:
text bandwidth (bits/s) = requests per second x bytes per request x 8
The interesting part is the corrections. The naive equation quietly assumes four things:
The average payload represents the traffic. In practice, payload sizes are heavy-tailed. A small share of large objects (videos, original-resolution photos, export files) often makes up most of the bytes. Traffic is evenly spread over time. In practice, it follows daily cycles, spikes around events, and arrives in sub-second bursts. Each logical request moves its bytes once. In practice, bytes get replicated, fanned out to internal services, written again as derived data, and retransmitted on retry. Links are independent. In practice, ingress, egress, replication, and observability traffic often share the same NICs and the same cross-zone paths.
When any of these assumptions fails, saturation rarely produces a clean error. It turns into latency first, then into concurrency, then into memory pressure.
Consider an API service that proxies photo uploads to object storage. Suppose the link between the API tier and storage becomes congested. It is not down, just slower. The causal chain looks like this:
text congested link -> each upload takes longer to complete -> more uploads are in flight at once (arrival rate unchanged) -> request buffers and connection slots on the API tier fill -> new requests queue; health checks start timing out -> clients time out at 80-90% complete and restart from zero -> more bytes on the wire, fewer completed uploads -> worse congestion
The important distinction here is between throughput (bytes moved) and goodput (bytes that contribute to a completed operation). A saturated link with restart-from-zero retries can show high throughput and near-zero goodput at the same time. The network looks busy and the product looks broken.
Notice also where state lives in this failure. The API tier is nominally stateless, but every in-flight upload is state: a buffer, a socket, a partially transmitted object. A stateless service that sits in a bulk data path holds a lot of state. The amount just depends on how slow the transfers are.
The Distributed Systems Deep Dive: Where the Bytes Actually Go Concurrency Is Set by the Slowest Link, Not the Server
Little’s Law states that the average number of items in a system equals the arrival rate times the average time each item spends in it: L = λ × W. For data transfer, W is roughly the object size divided by the effective throughput of a single connection, and that throughput is usually limited by the client.
Take uploads arriving at 70 per second at peak, averaging 3 MB each. A client with a 5 Mbps uplink needs about 4.8 seconds per upload, so roughly 340 uploads are in flight at once. If the typical client has 1 Mbps (a weak mobile connection), each upload takes about 24 seconds and concurrency rises to around 1,700. The total ingress bandwidth is the same in both cases, about 1.7 Gbps. What changed is how long each connection stays open.
The mental model is that total bandwidth determines link sizing, while per-connection bandwidth determines concurrency. Concurrency is what uses up file descriptors, memory buffers, worker threads, and load balancer connection tables. Server capacity planning that only looks at aggregate Gbps misses the resource that actually runs out.
The same reasoning applies at the transport layer through the bandwidth-delay product. A single TCP flow cannot exceed its window size divided by the round-trip time. To keep 10 Gbps flowing across a 100 ms cross-region path, a sender needs about 125 MB in flight. Without window scaling or parallel streams, a single replication connection between regions will deliver a small fraction of the provisioned link. A replication pipeline that falls behind across regions even though the link has spare capacity commonly has this cause.
Amplification: Replication, Fan-out, Derived Data, and Retries
External traffic is the input to the bandwidth model, not the output. Internal traffic is external traffic multiplied by several amplification factors:
Replication. A database write is shipped to every replica, often with its write-ahead log entries as well. A self-managed storage system with three-way replication writes each byte three times over the internal network. Managed object storage absorbs this internally, so it shows up in the price rather than on your links. Cross-region replication. Every region holding a copy needs the full write stream sent to it. Ingress grows with the number of regions. Derived data. A 3 MB photo might produce four renditions totaling 1 MB. The transcoding workers read 3 MB and write 1 MB per upload, so worker traffic adds 4 MB of internal movement for every 3 MB the user sent. Fan-out. A feed endpoint returning a 20 KB response might call ten internal services that each return 15 KB. That is 150 KB of east-west traffic per 20 KB of north-south traffic. In microservice architectures, east-west bandwidth frequently exceeds external egress. Retries. If a transfer fails with probability p and must restart from zero, the expected number of attempts is 1 / (1 − p). Worse, p itself grows with transfer duration: for a fixed rate of interruptions per second, the chance of an uninterrupted transfer drops exponentially as the transfer gets longer. Large objects over unreliable networks are disproportionately expensive to retry.
Chunked, resumable uploads change this math. If an interrupted transfer resumes from the last acknowledged chunk, the bytes wasted per failure are limited to one chunk instead of the whole object. The tradeoff is new state: the server must track upload sessions, completed parts, and expiry for abandoned sessions. The complexity moves from the network into session management, where it is easier to reason about.
CDN Cache Hit Ratio Is a Multiplier on Origin Egress
For read-heavy systems, the most important equation in network capacity planning is:
text origin egress = edge egress x (1 - byte hit ratio)
Two details matter. First, the relevant number is byte hit ratio, not request hit ratio. A CDN can serve 98% of requests from cache while missing on the large, long-tail objects that make up most of the bytes. Second, the relationship is not linear in the way intuition suggests. Moving from a 90% to a 99% byte hit ratio looks like a 9-point improvement. It actually cuts origin egress by 10x.
That multiplier also works in reverse. The origin is usually sized for the miss traffic, not the total traffic. Anything that drops the hit ratio suddenly (a global purge, a deploy that changes asset URLs, a new region warming up, traffic moving to a cold edge location after an outage) sends a multiple of normal load to an origin that was never sized for it.
Tiered caching, often called an origin shield, addresses a subtler problem. Without it, each edge location misses on its own, so a newly popular object can trigger one origin fetch per edge location. A shield layer collapses those misses into one fetch, and request coalescing at the shield collapses concurrent misses for the same object into a single upstream request. The cost is an additional hop and another cache whose capacity and failure behavior must be understood.
Peaks, Not Averages
Enjoying this so far?
Join thousands of engineers receiving practical engineering, Cloud, Distributed Systems, Infrastructure and AI engineering insights.
No spam. Unsubscribe anytime.
Daily averages are useful for estimating storage and monthly transfer volume. They are close to useless for link sizing. Consumer traffic commonly runs several times higher at its daily peak than its daily average, and synchronized behavior (a push notification sent to every user, a scheduled batch job, a live event) can raise it far higher.
At very short timescales, microbursts matter. A link can show 40% utilization averaged over a minute while repeatedly exceeding capacity for milliseconds. Switch and NIC buffers absorb those bursts until they fill. After that, packets drop and TCP backs off, and the result shows up as tail latency that does not correlate with any one-minute metric. Capacity plans should be based on a high percentile of short-window throughput, not the mean of long windows.
Architecture: Modeling a Media Platform End to End
Consider a hypothetical photo-sharing platform with the following illustrative workload:
10 million daily active users 2 million uploads per day, averaging 3 MB Each user views 100 images per day, averaging 200 KB as delivered Four renditions per upload, totaling 1 MB Peak-to-average ratio of 3x Two regions, with asynchronous replication Flow Daily volume Average Peak (3x) Upload ingress 6 TB ~555 Mbps ~1.7 Gbps Rendition writes 2 TB ~185 Mbps ~555 Mbps Cross-region replication 8 TB ~740 Mbps buffered (see below) Edge egress to users 200 TB ~18.5 Gbps ~56 Gbps Origin egress at 95% byte hit ratio 10 TB ~0.9 Gbps ~2.8 Gbps Origin egress at 90% byte hit ratio 20 TB ~1.9 Gbps ~5.6 Gbps
The workload is about 33:1 egress to ingress at the edge, but behind a healthy CDN the origin sees only a few Gbps. The architecture should follow from those numbers:
text Client | (1) POST /uploads -> small JSON: create upload intent v API Service --------------------> Metadata DB (source of truth) | (2) returns presigned, chunked upload URLs v Client ===== (3) bytes, direct =====> Object Storage (originals) | | (4) object-created event v Queue --> Transcode Workers | v Object Storage (renditions) | async cross-region replication | Client <=== (5) GET image === CDN Edge <== Origin Shield <== Object Storage
State ownership. The metadata database owns the truth about which photos exist and who can see them. Object storage owns the bytes. The CDN holds disposable copies. Keeping these roles separate is what makes each tier independently scalable.
Scaling boundaries. The API service never handles bulk bytes. Its capacity grows with request count, not with object size, so slow mobile uploads cannot exhaust its connections. The bulk data path runs from client to object storage and from object storage to the CDN, which are both systems built for high concurrency.
Consistency boundaries. Two new failure windows appear. An upload can complete in storage without its metadata ever being committed, leaving orphaned objects that need a cleanup process. And metadata can become visible before renditions exist. If the CDN caches the resulting 404 (negative caching), the image stays broken for the length of the negative TTL even after the rendition is written. Publishing metadata only after renditions are confirmed, or keeping negative-cache TTLs short, closes that gap.
Replication behavior. The replication link does not need to handle the 3x peak in real time if the recovery point objective allows lag. A backlog that builds at peak and drains during off-peak hours is fine, as long as daily replication capacity comfortably exceeds daily write volume. It is a deliberate trade: lower link cost in exchange for a larger window of data that could be lost in a regional failure.
A small model makes these relationships explicit and reviewable:
go type Workload struct { AvgRequestsPerSec float64 BytesPerRequest float64 PeakFactor float64 // peak / average ProtocolOverhead float64 // e.g. 1.05 for headers and framing ExpectedAttempts float64 // 1 / (1 - failureProbability) }
// PeakBits returns the bits/s the network must carry at peak. func (w Workload) PeakBits() float64 { return w.AvgRequestsPerSec _ w.BytesPerRequest _ 8 _ w.PeakFactor _ w.ProtocolOverhead * w.ExpectedAttempts }
// OriginBits is what survives the CDN. Size the origin for this, // and for what it becomes when the byte hit ratio collapses. func OriginBits(edgeBits, byteHitRatio float64) float64 { return edgeBits * (1 - byteHitRatio) }
// InFlight applies Little's Law: concurrency depends on client // throughput, not server throughput. func InFlight(arrivalsPerSec, bytes, clientBitsPerSec float64) float64 { return arrivalsPerSec _ (bytes _ 8 / clientBitsPerSec) } Tradeoffs and Decision Framework for Network Capacity Planning
No upload or delivery design is correct in every case. The right one depends on object size, client networks, and how much server-side control the product needs.
Upload strategy When it makes sense What it makes harder Behavior at scale Proxy through API tier Small payloads; inline validation or scanning needed before persistence API concurrency tied to client speed; double bandwidth through the app tier Degrades first under slow clients; exposed to slow-sender exhaustion Presigned direct-to-storage Medium objects, reliable clients Validation moves after the write; orphan cleanup; harder to enforce quotas inline API load depends on request count only; storage handles concurrency Chunked, resumable direct upload Large objects, mobile or unreliable networks Upload session state, part tracking, expiry of abandoned sessions Retry waste limited to one chunk; most efficient in goodput
Delivery decisions involve similar tradeoffs:
CDN versus direct origin. A CDN reduces latency and origin egress, but it adds a second copy of state with its own freshness rules. For low-traffic or highly personalized, uncacheable responses, it adds cost and invalidation complexity while providing little benefit. Synchronous versus asynchronous replication. Synchronous cross-region replication makes every write wait on the slowest region’s round-trip time and requires links sized for peak. Asynchronous replication lets the link be sized closer to average, at the cost of a recovery window. Compression and encoding. Better image formats and response compression trade CPU for bytes. This is usually worthwhile for egress-dominated workloads and rarely worthwhile for already-compressed media or small, latency-sensitive responses, where the encode time costs more than the bytes it saves. Data placement. Keeping compute in the same zone or region as the data it reads removes cross-zone and cross-region transfer, which many cloud providers bill separately from internet egress (pricing models vary and change, so verify current rates). The cost is reduced fault isolation if everything is pinned to one zone.
The underlying question in each row is the same: which link carries these bytes, how often, and what happens to the system when that link is slow?
Bandwidth Estimation at Scale: How Failure Modes Change
Using the 200 KB image response as a reference point:
10 requests/second (~16 Mbps). Bandwidth is not a design constraint. Proxying uploads through the API is reasonable. Adding a CDN at this stage is premature unless latency for distant users matters. 1,000 requests/second (~1.6 Gbps). A meaningful fraction of a single host’s NIC. Per-instance network limits, which on some cloud instance types differ between baseline and burst, start to matter. A CDN becomes an economic decision as well as a performance one. 100,000 requests/second (~160 Gbps). The origin survives only because of the hit ratio. A global cache purge becomes an incident-level event. Load balancer capacity, cross-zone transfer, and observability traffic (logs and traces that scale with request count) all need their own bandwidth budgets.
Failure modes shift as scale grows:
Partial failure. One edge location fails and its traffic moves to neighbors with cold caches, increasing origin fetches during the incident. Retry storms on large objects. Restart-from-zero retries multiply bytes exactly when the network is least able to carry them. Slow-client exhaustion. Connection-bound resources run out while bandwidth graphs look healthy. Replication lag. Lag grows silently until a failover exposes how much data had not yet reached the secondary region. Shared-link contention. Replication, backups, and log shipping compete with user traffic on the same NIC, so a backup job can cause user-facing latency. Engineering Principles Bandwidth saturation shows up as latency before it shows up as errors. By the time requests fail, queues and buffers have already absorbed the overload. Concurrency is set by the slowest link in the path. Little’s Law ties in-flight work to transfer time, and transfer time is usually determined by the client. Internal traffic is external traffic times an amplification factor. Replication, fan-out, derived data, and retries all multiply bytes, and the multiplier belongs in the capacity model. The origin is sized for misses, so it must survive a hit-ratio collapse. Purges, cold regions, and failovers are when that sizing gets tested. Keep bulk bytes out of request-routing tiers. Services whose capacity should scale with request count should not hold connections whose duration scales with object size. Resumability converts network waste into explicit state. That is usually a good trade, because state can be tracked and expired, while wasted retransmissions cannot be recovered. Averages size storage; peaks size links. Use a high percentile of short-window throughput for network capacity, not a daily mean. Final Thoughts
Bandwidth estimation looks like arithmetic, and the arithmetic is easy. The engineering value comes from seeing what the arithmetic reveals: which tier sits in the bulk data path, where concurrency accumulates, which multipliers turn one user byte into five internal ones, and which single number (such as a byte hit ratio) the whole cost and reliability profile depends on.
The deeper principle is that every byte crosses a series of links, and each link is a shared, finite resource with its own failure behavior. Strong architecture comes from understanding those constraints well enough to decide which components handle bytes, which handle requests, and which handle state, and to know what happens to each when the network becomes slow rather than unavailable.
These are the kinds of engineering problems at the center of modern software systems, and the kind PulseSoft focuses on: understanding where state lives, how data moves between components, and what happens when the assumptions between them stop being true. A good bandwidth estimate predicts how a system will behave under load before production traffic shows you.
Key Takeaways Bandwidth estimation starts with rate × payload × 8, but real capacity depends on peak factors, protocol overhead, retries, fan-out, and replication multiplying that baseline. Aggregate bandwidth sizes the link, while per-connection throughput (usually the client’s) sets concurrency through Little’s Law, and concurrency is what exhausts sockets and memory. Origin egress equals edge egress times (1 − byte hit ratio), so going from 90% to 99% byte hit ratio cuts origin load by 10x, and losing that hit ratio multiplies it by the same factor. Presigned or chunked direct-to-storage uploads remove bulk bytes from the API tier, so the API’s capacity depends on request count rather than object size or client network speed. Restart-from-zero retries make large transfers on unreliable networks disproportionately expensive. Resumable uploads cap the waste at one chunk in exchange for tracking upload session state. Asynchronous cross-region replication lets links be sized closer to average throughput, at the cost of a recovery window that grows during peaks. A single TCP flow is limited by window size divided by RTT, so high-latency replication paths need window scaling or parallel streams to use the bandwidth already provisioned.
Get insights like this in your inbox
Join thousands of engineers receiving practical engineering, Cloud, Distributed Systems, Infrastructure and AI engineering insights.
No spam. Unsubscribe anytime.