Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_ad-serving

Ad Serving System (Auction, Pacing, Frequency Cap & Click Attribution)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Ad Serving System (Auction, Pacing, Frequency Cap & Click Attribution) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_ad-serving/opengraph-image)](https://archos.sageideas.dev/d/dgm_ad-serving)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_ad-serving)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_ad-serving" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Ad Serving System (Auction, Pacing, Frequency Cap & Click Attribution) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Publisher Ad Slots"]
  n1_1["Ad Request Edge"]
  n2a_2["Retrieval & Auction"]
  n2b_3[("Pacing & Freq Cap")]
  n3_4[("Click & Billing Log")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Ad request · HTTPS"| n1_1
  n1_1 -->|"2a. Run · gRPC"| n2a_2
  n1_1 -.->|"2b. Check cap · Redis"| n2b_3
  n2a_2 -->|"3a. Log · Kafka"| n3_4
  n2b_3 -->|"3b. Apply · Async"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Publisher Ad SlotsSTATELESS
    High-QPS impression requests
  • Ad Request EdgeSTATELESS
    Context parse + timeout 50ms
  • Retrieval & AuctionSTATELESS
    Targeting index + eCPM auction
  • Pacing & Freq CapSTATEFUL
    Redis user caps + spend pacer
  • Click & Billing LogSTATEFUL
    Kafka dedupe -> billing ledger
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Publisher Ad Slots → Ad Request Edge (Ad request)[HTTPS]
  2. Ad Request Edge → Retrieval & Auction (Run)[gRPC]
  3. Ad Request Edge → Pacing & Freq Cap (Check cap)[Redis]
  4. Retrieval & Auction → Click & Billing Log (Log)[Kafka]
  5. Pacing & Freq Cap → Click & Billing Log (Apply)[Async]
  6. Click & Billing Log → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →