A background report is three layers of plumbing:
1. Nightly bulk ingest — where most of the data comes from. 2. Live calls — the handful of sources that can't be pre-computed. 3. Request-time aggregation — ~380ms to assemble everything into the dashboard view.
Here's the stack.
Layer 1 — Nightly bulk ingest
Four pm2 workers run the bulk pipelines:
phone-worker— carrier bitmaps + line-type tables. Daily refresh.court-worker— 50 state court systems. Each has a different API. Rate-limited per state's AUP.fec-worker— FEC individual contribution dumps. Quarterly cycle.qcew-worker— BLS QCEW employment panel. 980M rows per quarter.
_raw Clickhouse tables, then a separate parse job normalizes into typed tables, then an ER pass resolves them to canonical identities in identities_gold.
Schema drift is handled defensively. Each parser has:
- An expected-columns contract.
- A reject-and-log path for records that don't match (preserved raw in
_rejectedtable for ops review). - A monthly audit that flags drift >0.5% so we catch new upstream schema changes before they silently break downstream.
Layer 2 — Live calls
Five sources we hit at request time:
1. NSOPW — sex-offender registry, 184 jurisdictions. Live via curl_cffi with Chrome-125 impersonation (NSOPW rejects plain httpx). 24h PG cache keyed on (first, last, dob). 2. OFAC SDN — hit cache (daily refresh); validate freshness per request. 3. osint.sx — social platform resolver. $0.0005 per lookup. 4. Nominatim — address → lat/long. Cache-heavy. 5. Stripe — the payment itself. $0.36 on a $1.99 charge.
Layer 3 — Request-time
A single /v1/search or /profile/{handle}/full-dossier call fans out to:
- 1 Clickhouse query for the gold-identity lookup (~30ms).
- 3-5 specialty-table queries in parallel (~80ms total).
- 1-3 live calls for NSOPW / osint.sx / Stripe quota check (~200ms worst case; cached otherwise).
- Response assembly + JSON serialization (~50ms).
The $1.99 arithmetic
Per report at scale:
| Cost | $/report |
|---|---|
| Stripe processing | 0.36 |
| Clickhouse compute | 0.03 |
| osint.sx live hit | 0.0005 |
| Bandwidth + images | 0.01 |
| Contribution margin | ~1.59 |
Where we lose data
- ER false negatives: identities with sparse digital footprints don't cross our merge threshold (0.7 overlap). A real person with no social + no court + no breach might end up as two separate thin records.
- Rejected parse rows: ~0.5% of ingested records fail parse. These land in
_rejectedtables; we don't attempt to backfill. - Legal gates: some data (SSN-verify, DL details) is tier-gated. Non-enterprise sees the signal but not the detail.
What the price point funds
$1.59 per report × ~10,000 reports/day = $15,900/day contribution. That funds:
- 4 batch workers continuously.
- 23-watchlist daily refresh.
- Court-worker rate-limited parallel scraping across 50 states.
- 2 FTE on data-quality + parser maintenance.
- Compliance + legal budget.
See /stats for the live catalog depth + MV refresh progress.