Per-Domain Rate Limiting, Circuit Breakers & Backoff for Safe Bulk Enrichment
Speed without traffic hygiene destroys enrichment reliability: an unthrottled 100-thread worker pool hammering one domain triggers immediate 429 blocks, IP bans, and cascading failures across your entire batch. Batch-Anything builds per-domain token buckets, circuit breakers, and row-level exponential backoff into every job.
Why Naive Parallelism Turns 10k-Row Runs Into 429 Meltdowns
Bulk CSVs are rarely uniformly shuffled — a 20,000-row URL patrol or SKU catalog often contains hundreds of consecutive rows pointing to the exact same host or public registry endpoint. Unbounded worker pools slam that host in milliseconds, triggering HTTP 429 Too Many Requests and wasting minutes on stalled sockets.
When a single upstream origin goes down completely, scripts without circuit breakers continue queuing thousands of doomed requests against the dead host, choking worker threads needed for healthy domains.
Three-Tier Traffic Safety Built Into the Waterfall Executor
Per-Domain Token Bucket (per_domain_rps)
Every hostname receives an independent token bucket, letting your job sustain high aggregate throughput (1,535.28 rows/sec measured in Loop 3) across diverse domains while remaining strictly polite to each individual origin.
Per-Host Circuit Breaker
Repeated consecutive failures or blocks on a single host automatically trip that host's circuit breaker, fast-failing remaining dead rows to dead_letter_rows ($0 billed) without starving healthy domains.
Row-Level Exponential Backoff on Transient 429/502/503/504
Transient rate-limit or gateway hiccups retry cleanly with jittered exponential backoff — verified in Loop 3 Gauntlet transient recovery tests.
Deduplication + Cache Eliminates Redundant Traffic First
Before any token bucket is even consulted, canonical within-batch deduplication and the 7d–30d verified archive cache remove redundant network probes completely.
Traffic Hygiene & Fault-Tolerance Comparison
Competitor pricing figures reflect documented public tiers; Batch-Anything performance metrics reflect real measured Gauntlet telemetry (16/16 checks passing).
| Reliability Control | Batch-Anything Executor | Naive ThreadPool / asyncio | Cloud Browser Slots |
|---|---|---|---|
| Per-Host Rate Limiting | Independent per_domain_rps token bucket | Global semaphore only (floods single hosts) | Coarse slot scheduling |
| Dead-Host Isolation | Automatic per-host circuit breaker | All workers stall on failing host timeouts | Browser slots hang until timeout |
| Transient 429 / 503 Recovery | Bounded row-level exponential backoff | Often drops row or retries aggressively | Burns execution minutes |
| Cost of Circuit-Broken Rows | $0.00 billed + dead_letter_rows log | Wasted compute / partial output | Execution time still billed |
| Memory Safety Under Backpressure | Bounded chunk streaming (8.03 MB at 10k) | Unbounded task queues risk OOM | High container memory |
Working REST & Streamable /mcp Code Examples
REST API (POST /v1/batch/run & /v1/batch/submit)
# 1. Submit async batch job (HTTP 202)
curl -fsSL -X POST "https://batch.fastmesh.dev/v1/batch/submit" \
-H "Content-Type: application/json" \
-d '{"workflow": "url_health_patrol", "tenant_id": "acme_revops", "rows": [{"url": "https://example.com"}, {"url": "https://httpbin.org/status/404"}, {"url": "https://httpbin.org/html"}], "max_budget_usd": 5.0, "per_domain_rps": 4.0, "max_workers": 16, "output_format": "jsonl"}'
# 2. Poll live progress, cache hit rate & savings
curl -fsSL "https://batch.fastmesh.dev/v1/batch/{job_id}"
# 3. Stream verified output (csv | tsv | json | jsonl | sqlite | columnar)
curl -fsSL "https://batch.fastmesh.dev/v1/batch/{job_id}/export?format=jsonl"
Native AI Agent Call (POST /mcp · JSON-RPC 2.0)
# Streamable HTTP MCP JSON-RPC 2.0 call (https://batch.fastmesh.dev/mcp)
curl -fsSL -X POST "https://batch.fastmesh.dev/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "batch_submit_job", "arguments": {"workflow": "url_health_patrol", "tenant_id": "coding_agent_01", "rows": [{"url": "https://example.com"}, {"url": "https://httpbin.org/status/404"}], "max_budget_usd": 1.0}}}'
Full schema: /openapi.json · Agent onboarding: /skill.md · Machine directory: /llms.txt · Treg Hub: batch-anything-waterfall (0% commission) · Causal Bazaar: batch_anything_waterfall_v1
Zero-Empty Guarantee, Privacy & Never-Expiring Packs
$0.00 and isolated in dead_letter_rows with a verifiable receipt_sha256.Zero Customer Table Resale Pledge: Your uploaded CSVs, SQLite tables, prompts, BYOK keys, and batch traces are NEVER resold, licensed, or used to train external models.
Starter Pack
$19 credit (19M micros · 6,333 B2B domains / 12,666 URL checks) · Never expires · 0 seat fees
Get Starter PackGrowth Pack
$90 credit (90M micros · 30,000 B2B domains / 60,000 URL checks) · Never expires · 0 seat fees
Get Growth PackScale Pack
$325 credit (325M micros · 108,333 B2B domains / 216,666 URL checks) · Never expires · 0 seat fees
Get Scale PackFrequently Asked Questions
How does Batch-Anything prevent flooding a single website during a 50,000-row run?
Every job combines canonical deduplication, per-domain token buckets (per_domain_rps), bounded worker concurrency (max_workers), and per-host circuit breakers so no origin is ever flooded.
What happens when an upstream endpoint returns a temporary HTTP 429 or 503?
The waterfall executor automatically applies bounded row-level exponential backoff and recovers cleanly once the transient error clears — without blocking unrelated hosts.
Am I billed if a host's circuit breaker trips mid-batch?
No. Every row skipped by a tripped circuit breaker or unresolved after max retries is logged cleanly in dead_letter_rows and billed strictly $0.00.
Were rate limits, circuit breakers, and 429 backoff recovery verified in testing?
Yes. Loop 3 Gauntlet explicitly runs dedicated torture checks verifying per-domain token-bucket throttling, circuit-breaker tripping, and transient 429/503 exponential backoff recovery.