frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

ASK HN: Designing a DSP architecture for 1M QPS CPM ads without overspending

1•charzlie•1mo ago
I’m working on the system architecture for a high-throughput AdTech DSP and would love feedback from people who’ve built large-scale bidding / serving systems.

Constraints / Goals

DSP only (no exchange)

Target: 1M ad requests/sec

End-to-end DSP latency budget: ~100ms

Pricing model: CPM

Hard requirement: no advertiser or campaign overspend

Targeting / Campaign Fetch

I modeled targeting (geo, interests, etc.) using Redis + Roaring Bitmaps.

Fetching candidate campaigns alone:

Redis: ~1000 RPS at ~8ms (local machine, not cloud)

Aerospike: ~200–400 RPS at ~10ms

This is only campaign fetching, not bidding or scoring.

Budget / Wallet Model

Advertiser has a wallet

Campaign has:

Total budget

Daily budget

Daily spend tracking

Overspend is not acceptable (even a small % matters at scale).

Budget Control Approaches Considered

Splitting daily budgets into hourly buckets

Rate limiting via:

Token bucket

PID controllers

These reduce overspend but don’t guarantee correctness under bursty traffic.

Recently considering micros (integer currency units) to reduce rounding errors.

Open Questions

At 1M QPS, how do people actually enforce budget guarantees in production?

Soft overspend with reconciliation?

Hard atomic checks in the hot path?

Is Redis bitmap–based targeting viable at this scale, or does everyone eventually:

Pre-materialize campaign sets?

Push logic into memory / C++?

How do you balance:

Strict budget enforcement

Low latency

High throughput without introducing global locks or cross-region contention?

Is “no overspend ever” a realistic requirement, or is bounded error the industry norm?

I’m less interested in textbook answers and more in what has actually worked (or failed) in production.

How I do and don't use agents

https://twitter.com/jessfraz/status/2019975917863661760
1•tosh•15s ago•0 comments

BTDUex Safe? The Back End Withdrawal Anomalies

1•aoijfoqfw•2m ago•0 comments

Show HN: Compile-Time Vibe Coding

https://github.com/Michael-JB/vibecode
1•michaelchicory•5m ago•0 comments

Show HN: Ensemble – macOS App to Manage Claude Code Skills, MCPs, and Claude.md

https://github.com/O0000-code/Ensemble
1•IO0oI•8m ago•1 comments

PR to support XMPP channels in OpenClaw

https://github.com/openclaw/openclaw/pull/9741
1•mickael•9m ago•0 comments

Twenty: A Modern Alternative to Salesforce

https://github.com/twentyhq/twenty
1•tosh•10m ago•0 comments

Raspberry Pi: More memory-driven price rises

https://www.raspberrypi.com/news/more-memory-driven-price-rises/
1•calcifer•16m ago•0 comments

Level Up Your Gaming

https://d4.h5go.life/
1•LinkLens•20m ago•1 comments

Di.day is a movement to encourage people to ditch Big Tech

https://itsfoss.com/news/di-day-celebration/
2•MilnerRoute•21m ago•0 comments

Show HN: AI generated personal affirmations playing when your phone is locked

https://MyAffirmations.Guru
4•alaserm•22m ago•3 comments

Show HN: GTM MCP Server- Let AI Manage Your Google Tag Manager Containers

https://github.com/paolobietolini/gtm-mcp-server
1•paolobietolini•23m ago•0 comments

Launch of X (Twitter) API Pay-per-Use Pricing

https://devcommunity.x.com/t/announcing-the-launch-of-x-api-pay-per-use-pricing/256476
1•thinkingemote•23m ago•0 comments

Facebook seemingly randomly bans tons of users

https://old.reddit.com/r/facebookdisabledme/
1•dirteater_•25m ago•1 comments

Global Bird Count Event

https://www.birdcount.org/
1•downboots•25m ago•0 comments

What Is Ruliology?

https://writings.stephenwolfram.com/2026/01/what-is-ruliology/
2•soheilpro•27m ago•0 comments

Jon Stewart – One of My Favorite People – What Now? with Trevor Noah Podcast [video]

https://www.youtube.com/watch?v=44uC12g9ZVk
2•consumer451•29m ago•0 comments

P2P crypto exchange development company

1•sonniya•43m ago•0 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
2•jesperordrup•48m ago•0 comments

Write for Your Readers Even If They Are Agents

https://commonsware.com/blog/2026/02/06/write-for-your-readers-even-if-they-are-agents.html
1•ingve•48m ago•0 comments

Knowledge-Creating LLMs

https://tecunningham.github.io/posts/2026-01-29-knowledge-creating-llms.html
1•salkahfi•49m ago•0 comments

Maple Mono: Smooth your coding flow

https://font.subf.dev/en/
1•signa11•56m ago•0 comments

Sid Meier's System for Real-Time Music Composition and Synthesis

https://patents.google.com/patent/US5496962A/en
1•GaryBluto•1h ago•1 comments

Show HN: Slop News – HN front page now, but it's all slop

https://dosaygo-studio.github.io/hn-front-page-2035/slop-news
6•keepamovin•1h ago•1 comments

Show HN: Empusa – Visual debugger to catch and resume AI agent retry loops

https://github.com/justin55afdfdsf5ds45f4ds5f45ds4/EmpusaAI
1•justinlord•1h ago•0 comments

Show HN: Bitcoin wallet on NXP SE050 secure element, Tor-only open source

https://github.com/0xdeadbeefnetwork/sigil-web
2•sickthecat•1h ago•1 comments

White House Explores Opening Antitrust Probe on Homebuilders

https://www.bloomberg.com/news/articles/2026-02-06/white-house-explores-opening-antitrust-probe-i...
1•petethomas•1h ago•0 comments

Show HN: MindDraft – AI task app with smart actions and auto expense tracking

https://minddraft.ai
2•imthepk•1h ago•0 comments

How do you estimate AI app development costs accurately?

1•insights123•1h ago•0 comments

Going Through Snowden Documents, Part 5

https://libroot.org/posts/going-through-snowden-documents-part-5/
1•goto1•1h ago•0 comments

Show HN: MCP Server for TradeStation

https://github.com/theelderwand/tradestation-mcp
1•theelderwand•1h ago•0 comments