Search Tools

API fanout and request amplification

Estimate how many downstream requests are generated by requests arriving at one entry API

Calculate expected requests over the same period for an acyclic API call graph. Enter measured or assumed branch probabilities and cache hit rates.

Enter an ID from the node table below. Use a short identifier, not an API URL.

Enter an integer count for a consistent observation period. No initial request count is prefilled.

API nodesRequired
RowAPI IDActions
1
2

Paste 1 tab-separated columns into the leftmost field. Up to 40 rows.

Register the APIs used as callers and callees. IDs must be unique.

Call edges between APIsOptional
RowCaller IDCallee IDCalls per invocation (calls)Branch probability (0~1)Cache hit rate (0~1)Actions
1
2

Paste 5 tab-separated columns into the leftmost field. Up to 160 rows.

Enter probabilities and hit rates from 0 to 1 (0.25 for 25%). A cache hit is assumed to avoid a request to the callee. Entirely blank edge rows are unused.

Results

Results update automatically when the required values are entered.

Report an issue

Method, applicability and sources

Calculation method

Expected transmissions on edge i→j = stage-specific requests to API i × calls per invocation mᵢⱼ × branch probability pᵢⱼ × (1−cache hit rate hᵢⱼ). Stage 0 contains the initial requests; stage d+1 contains all edge transmissions generated from stage d. Sum expected requests across stages and APIs; total amplification = all-stage total ÷ initial requests. Calls reaching the same API through different paths are counted separately.

Worked example (hypothetical values)

Example: 100 requests enter A. A→B: 2 calls, probability 1, hit rate 0.25; A→C: 1 call, probability 0.5, hit rate 0; B→D: 3 calls, probability 0.4, hit rate 0.5. Stage 0 has 100 requests, stage 1 has 200 (B: 150, C: 50), and stage 2 has 90 (D: 90). Total: 390 requests; downstream: 290; amplification: 3.9×.

Applicability and limitations

An acyclic dependency graph with an initial request count and per-edge call counts, branch probabilities and cache hit rates specified for the same observation period. Excludes cyclic calls, retries, fallback calls on errors, timeouts, batching, automatic call deduplication, estimating cache hit rates from TTL, concurrency, latency, peak load and API fees. Results are expected values, not observed counts.

Methods used

  • Expected requests in an acyclic call graph (DAG-expected-requests v1.0): scope A steady call structure with specified call counts, conditional branch probabilities and per-edge cache hit rates; region global

Method and sources

Method: Expected-value DAG propagation v1.0 (independent expectation arithmetic informed by Microsoft Gateway Aggregation and AWS API Gateway cache definitions). Data recorded: 2026-11-13.