RTB Architecture
RTB Latency Budget: QPS, Sizing and Measurement
Published · Last updated
Next scheduled review:
RTB latency is an end-to-end budget. Network travel, request handling, data lookups, bidding and response delivery must fit inside the exchange deadline. QPS describes load, while tail latency shows how that load affects slower requests. Size the system from measured behavior and test failure conditions before committing capacity.
Contents
Key facts
- Two current releases. Prebid Server Go v4.10.0 shipped on 13 October 2026 and requires Go 1.26.2 or newer; Prebid Server Java v4.3.0 shipped on 7 October 2026 and requires JDK 25 (prebid-server releases; prebid-server README; prebid-server-java releases; prebid-server-java README; all accessed 17 October 2026).
- Hundreds of adapters. Prebid.org's overview says "230+" server-side bid adapters; the full bidder list has 394 entries including aliases and duplicates (Prebid Server overview; bidder list; accessed 17 October 2026).
- The implementations differ. Prebid's feature index shows 16 features available only in Java (including the USGen privacy module, circuit breaker and request logging endpoints) and 4 only in Go (TCF geo-fencing, OpenRTB 2.4 and 2.5 schain compatibility, experimental Ads.Cert 2.0) (Prebid Server feature index, accessed 17 October 2026).
- It is not turn-key. Prebid.org says "Prebid Server is not a turn-key solution," that neither Prebid Server nor Prebid Cache terminates SSL, and that hosts should check for updates at least quarterly because releases arrive almost weekly (Prebid Server hosting, accessed 17 October 2026).
- A 2026 security advisory applies. pkg.go.dev flags GO-2026-6139, a server-side request forgery issue in bidder adapters, against PBS-Go v4.0.0 through v4.3.0 (pkg.go.dev, prebid-server versions, accessed 17 October 2026).
- Managed is an option. Prebid.org lists 21 managed-service providers, and Microsoft's Prebid Server Premium runs on open-source PBS-Go with access to over 200 demand partners (Prebid.org managed services, accessed 17 October 2026; Microsoft Learn, 21 October 2025).
Definition
Bid-path latency is the time from an auction request entering the buying path to the exchange receiving its corresponding bid or no-bid response.
Diagram by AdSovereign, CC BY 4.0.
Evaluate the workflow
What QPS Really Means in AdTech
QPS vs Fill Rate: The Critical Relationship
Example calculation:
How Latency Impacts Revenue
The Revenue Cost of Latency
* Based on industry benchmarks and Google research on latency impact
Network, Storage, and Compute Bottlenecks
Performance bottlenecks hide in three layers: network (connectivity), storage (database/disk), and compute (CPU/memory). Identifying the constraint is the first step to optimization.
┌─────────────────────────────────────────────────────────┐ │ PERFORMANCE BOTTLENECK IDENTIFICATION │ ├─────────────────────────────────────────────────────────┤ │ │ │ START: High latency or low QPS detected │ │ │ │ 1. Check Network │ │ ├─ Packet loss? → CDN or direct connection │ │ ├─ High ping? → Geographic routing issue │ │ └─ OK? → Continue to storage │ │ │ │ 2. Check Storage │ │ ├─ Slow queries? → Add indexes or optimize SQL │ │ ├─ High IOPS? → Upgrade to SSD/NVMe │ │ ├─ Replication lag? → Scale read replicas │ │ └─ OK? → Continue to compute │ │ │ │ 3. Check Compute │ │ ├─ High CPU? → Optimize algorithms or scale out │ │ ├─ Memory swapping? → Increase RAM or reduce load │ │ ├─ Cache misses? → Tune cache size or TTL │ │ └─ OK? → Check application logic │ │ │ │ 4. Application Logic │ │ ├─ Complex loops? → Refactor to O(1) lookups │ │ ├─ Blocking I/O? → Switch to async/non-blocking │ │ └─ External API calls? → Cache or batch │ │ │ └─────────────────────────────────────────────────────────┘
Network Bottlenecks
- Fix: Edge nodes in major markets, optimized routing, CDN for static assets
Storage Bottlenecks
- Fix: Upgrade to SSD/NVMe, optimize queries, add composite indexes, use read replicas
Compute Bottlenecks
- CPU saturation: Reduces QPS capacity, increases latency variability
- Memory bandwidth: Critical for in-memory caching and large datasets
- Fix: Horizontal scaling, algorithm optimization, GPU for ML-based bidding
15-Point Performance Audit Checklist
Use this checklist to audit your RTB infrastructure performance. Each item includes target benchmarks and common fixes.
Identify peak traffic patterns (hourly, daily, seasonal)
Audit database query performance (slow query log)
Low hit rate = wasted cache capacity or wrong TTL
Test network latency to major exchanges
Use traceroute and ping tests from production servers
Monitor disk I/O wait times
High iowait = storage bottleneck, consider SSD upgrade
Check load balancer distribution
Uneven load = routing issue or unhealthy node
Review bidding algorithm complexity (O(n) vs O(n²))
Test disaster recovery failover time
Measure data replication lag
Audit logging overhead
Test geographic redundancy
Simulate datacenter failure, does traffic failover correctly?
Review rate limiting policies
Protect against DDoS without blocking legitimate traffic
Get Performance Audit Template
Download our comprehensive Excel template with pre-configured formulas, benchmark ranges, and automated health scoring for your RTB infrastructure.
Download TemplateKey Takeaways
- ✓ Bottlenecks hide in network, storage, or compute, systematic diagnosis required
- ✓ Multi-tier caching (in-memory, Redis, database) is critical for scale
- ✓ Predictive monitoring and autoscaling prevent performance degradation before it happens
Read the current references
Read the rtb architecture guide for the broader decision framework.
FAQ
Is Prebid Server free?
Should I choose Prebid Server Go or Java?
How much does it cost to run Prebid Server on AWS?
How many bidders does Prebid Server support?
Do I need Prebid Server to get AdX bids after the Google ruling?
How this works on owned infrastructure
For an AdSovereign latency evaluation, define the clock boundaries and exchange timeout before measuring. Trace network time, state lookups and bidder computation through the architecture, including how no-bid and error responses are recorded. Supply representative traffic and measure tail behavior under the intended load. The security assessment should establish which request fields and logs are permitted for that test. A deployment review should compare deadline compliance, eligible responses and event reconciliation with the operational cost of the configuration. Design targets and calculator estimates guide the experiment; they do not establish deployed latency or translate request volume directly into advertising revenue.
Component licensing, inclusions and payment terms are published on the pricing page.
Sources
- GitHub, prebid/prebid-server, README and Releases (accessed 17 October 2026). https://github.com/prebid/prebid-server and https://github.com/prebid/prebid-server/releases
- GitHub, prebid/prebid-server-java, README and Releases (accessed 17 October 2026). https://github.com/prebid/prebid-server-java and https://github.com/prebid/prebid-server-java/releases
- GitHub, prebid/prebid-server, docs/developers/configuration.md (accessed 17 October 2026). https://github.com/prebid/prebid-server/blob/master/docs/developers/configuration.md
- GitHub, prebid/prebid-server, config/config.go defaults (accessed 17 October 2026). https://raw.githubusercontent.com/prebid/prebid-server/master/config/config.go
- GitHub, prebid/prebid-server-java, docs/config-app.md (accessed 17 October 2026). https://github.com/prebid/prebid-server-java/blob/master/docs/config-app.md
- pkg.go.dev, github.com/prebid/prebid-server/v4 versions, with GO-2026-6139 advisory (accessed 17 October 2026). https://pkg.go.dev/github.com/prebid/prebid-server/v4?tab=versions
- Prebid.org, "Prebid Server overview" (accessed 17 October 2026). https://docs.prebid.org/prebid-server/overview/prebid-server-overview.html
- Prebid.org, "Prebid Server hosting" (accessed 17 October 2026). https://docs.prebid.org/prebid-server/hosting/pbs-hosting.html
- Prebid.org, "Prebid Server feature index" (accessed 17 October 2026). https://docs.prebid.org/prebid-server/features/pbs-feature-idx.html
- Prebid.org, "Prebid Server bidder list" (accessed 17 October 2026). https://docs.prebid.org/dev-docs/pbs-bidders.html
More sources (15)
- Prebid.org, "Adding a new bidder (PBS-Go)" (accessed 17 October 2026). https://docs.prebid.org/prebid-server/developers/add-new-bidder-go.html
- Prebid.org, "Stored requests (PBS-Go)" (accessed 17 October 2026). https://docs.prebid.org/prebid-server/features/pbs-storedreqs-go.html
- Prebid.org, "Prebid Server cookie sync" (accessed 17 October 2026). https://docs.prebid.org/prebid-server/developers/pbs-cookie-sync.html
- Prebid.org, "Prebid Server privacy features" (accessed 17 October 2026). https://docs.prebid.org/prebid-server/features/pbs-privacy.html
- Prebid.org, "Prebid Server price floors" (accessed 17 October 2026). https://docs.prebid.org/prebid-server/features/pbs-floors.html
- Prebid.org, "Prebid Server adapter (s2sConfig)" (accessed 17 October 2026). https://docs.prebid.org/dev-docs/modules/prebidServer.html
- Prebid.org, "PBS-Go versions" (accessed 17 October 2026). https://docs.prebid.org/prebid-server/versions/pbs-versions-go.html
- Prebid.org, "Managed services" (accessed 17 October 2026). https://prebid.org/managed-services/
- Microsoft Learn, "Prebid Server Premium" (21 October 2025). https://learn.microsoft.com/en-us/xandr/monetize/prebid-server-premium
- Vantage (EC2Instances.info), c7g.xlarge and m7g.large (updated 17 October 2026). https://instances.vantage.sh/aws/ec2/c7g.xlarge and https://instances.vantage.sh/aws/ec2/m7g.large
- AWS, Elastic Load Balancing pricing (accessed 17 October 2026). https://aws.amazon.com/elasticloadbalancing/pricing/
- AWS, ElastiCache pricing (accessed 17 October 2026). https://aws.amazon.com/elasticache/pricing/
- AWS, EC2 on-demand pricing, data transfer section (accessed 17 October 2026). https://aws.amazon.com/ec2/pricing/on-demand/
- United States v. Google LLC, No. 1:23-cv-00108 (E.D. Va.), Memorandum Opinion, Dkt. 1858 (2 September 2026). https://www.courthousenews.com/wp-content/uploads/2026/09/google-judge-memo.pdf
- PPC Land, "DOJ seeks 6 months, Google 12, to open its ad exchange to rivals" (6 October 2026). https://ppc.land/doj-seeks-6-months-google-12-to-open-its-ad-exchange-to-rivals/