Nyquist Nyquist
CLOSED BETA · 2026 Start a 60-day pilot
Nyquist Research · No. 04 · Infrastructure

What it actually takes to run 36 AI agents in production.

Spinning up agents is easy. Keeping them synchronized, isolated from each other's failures, fed with consistent real-time data, responsive under load, compliant with regulatory obligations, and economically viable given clearing and connectivity costs — that's a different engineering problem entirely. One we've had to solve in production.

Published
11 May 2026
Reading time
22 min
Author
Nyquist Research
Topic
Infrastructure · MLOps · vLLM · Kafka · Redis · PTP · OTel

Spinning up 36 AI agents is easy. Keeping them synchronized, isolated from each other's failures, fed with consistent real-time data, responsive under load, compliant with regulatory obligations, and economically viable given clearing and connectivity costs — that's a different engineering problem entirely. One we've had to solve in production.

The single most common — and most expensive — infrastructure mistake is treating all agents as equivalent compute. They are not. The correct model is three distinct speed tiers, each with different hardware, containerization rules, and stacks, layered over four architecture concerns: compute topology, orchestration, data consistency, and observability. This piece walks the full stack, then the part nobody publishes — the institutional cost stack that dwarfs cloud bills.

01 — Why it differs

Why agent infrastructure differs from standard MLOps.

Most MLOps frameworks assume stateless, batch-oriented workloads. Financial AI agents break every one of those assumptions. Five properties define the gap.

PropertyWhat breaksConsequence
Stateful agents Recovery is a state-replay operation, not a pod restart A crashed trading agent holds open positions, pending orders, and a live context window. You don't lose a task — you inherit a risk event: unhedged positions, orders that may or may not have hit the exchange, and a gap in the audit trail.
Temporal consistency 80ms of clock skew is a wrong-way risk generator If Agent A prices a spread on a snapshot 80ms older than Agent B's, they produce divergent signals on correlated instruments. At 36 agents, clock skew is a systematic wrong-way risk generator, not a data-quality issue.
Cascading failures Failures propagate faster than human oversight Agent A generates a bad signal → B acts on it → C hedges the wrong position. The failure crosses the fleet in milliseconds. By the time a human sees the alert, you've already traded. Circuit breakers must live in the fleet, not the operator's chair.
Latency asymmetry LLM inference (50–500ms) is incompatible with HFT Inference latency is categorically incompatible with HFT but acceptable for medium-frequency execution agents. Segment the fleet by speed tier before writing a single line of agent code — or over-engineer cold-path agents and under-serve latency-critical ones.
Auditability Every decision logged with hash, model version, timestamp_ns Every decision must carry agent_id, model_version, input_hash, output_action, confidence_score, timestamp_ns — not for post-mortem debugging, for compliance. CAT reporting, MiFID II reconstruction, and FIA audit obligations require this from day one, not as a retrofit.
02 — Compute topology

Three tiers. Different hardware. Different stacks.

The correct mental model is three distinct speed tiers. Treating all agents as equivalent compute is the single most common and most expensive infrastructure mistake. Latency asymmetry forces segmentation — if you don't tier first, you over-engineer cold agents or under-serve hot ones.

T1
Hot · < 10 ms

Bare-metal critical path. No container overhead.

Market data ingestion, order routing, position tracking. Pinned cores, pre-allocated ring buffers, zero GC pressure. C++ / Rust on the critical path; Python only in orchestration glue, never the latency loop. Co-lo bare metal, 10GbE. $800–$2,000/mo.

T2
Warm · 10–500 ms

Where the AI agents live. Weights pinned in VRAM.

LLM inference, signal generation, risk reasoning. Cold-start on model load is production-unacceptable. vLLM / TGI serve inference; FastAPI exposes the internal agent API. A10G / A100 with dedicated VRAM, Docker / K8s. $2,800–$4,200/mo.

T3
Cold · > 500 ms

Stateless, batch, cost-optimized. Place nothing un-retryable here.

Backtesting, model retraining, compliance reporting. Horizontally scalable on Spot instances; Ray / Dask / Celery for distributed compute. Workloads tolerate preemption. AWS EC2 / Railway spot. $300–$800/mo.

TierLatency SLAHardwareContainerized?Cost / month
Tier 1 · Hot< 10 msCo-lo bare metal · pinned cores · 10GbEno — bare process$800 – $2,000
Tier 2 · Warm10 – 500 msGPU cloud (A10G / A100) · dedicated VRAMDocker / K8s$2,800 – $4,200
Tier 3 · Cold> 500 msSpot instances (AWS EC2 · Railway)stateless$300 – $800

A management note on Tier 2: vLLM's KV-cache pre-allocates GPU memory via gpu_memory_utilization. PagedAttention cuts fragmentation waste from 60–80% down to under 4%, yielding 2–4× throughput on the same hardware — which matters at 36 agents generating sustained inference load.

03 — Orchestration

Orchestration is a discipline, not a feature.

At 36 concurrent agents, orchestration is not a feature — it's a discipline. Start with a taxonomy of five archetypes.

Agent taxonomy · five archetypes

Data agents — market data normalization, feed validation, sequence-gap detection. Signal agents — alpha generation, sentiment scoring, factor construction. Risk agents — position-limit monitoring, real-time VaR breach detection, margin status. Execution agents — order routing, TCA, slippage attribution. Meta-agents — fleet-level watchdogs, circuit breakers, cross-agent correlation monitoring.

Isolation model. Each agent runs in its own container with explicit resource limits — CPU quota, memory ceiling, GPU allocation. At 36 agents on shared infrastructure the noisy-neighbor problem is not theoretical: one agent with a memory leak (vLLM KV-cache growth under sustained load is a documented failure mode) degrades adjacent agents silently before it crashes.

BUSCommunication topology.

  • Pub/Sub via Kafka 3.x or Redis Streams for market-data fan-out — one canonical bus, N subscribers.
  • gRPC for synchronous agent-to-agent calls where latency and contract enforcement matter.
  • Redis 7.x as the shared state store for position and risk state — your single source of truth; agent-local state is a consistency liability.

Circuit breaker pattern. Every agent has a watchdog. If an agent misses N consecutive heartbeats, or its output deviates anomalously (position size >3σ from historical distribution, suspiciously uniform confidence scores suggesting model collapse), it is automatically isolated and flagged for human review before it can affect the fleet. The minimal implementation uses asyncio + Redis: three consecutive missed beats sets circuit_breaker:<agent_id> = OPEN and publishes to fleet_alerts; meta-agents subscribe and refuse to route new work to the isolated agent until human-acknowledged.

Failures propagate through the fleet in milliseconds. By the time a human sees the alert, you've already traded. Circuit breakers belong in the fleet — not the operator's chair.
The case for fleet-resident controls
04 — Data & observability

Data consistency & observability.

Data consistency is the most chronically underengineered component in agent infrastructure. Teams invest in compute and orchestration, then let agents fetch their own data independently. That is how you get fleet-level temporal inconsistency. Five design decisions are non-negotiable.

Non-negotiable design decisions

Single data bus — all 36 agents subscribe to one canonical stream; independent fetching creates fan-out inconsistency. Sequence numbers — every message carries one; a missing sequence triggers replay, not silent skip. Snapshot + delta — on restart, replay from last checkpoint and apply deltas forward; starting from empty state on crash recovery is unacceptable. Time sync — NTP achieves only millisecond accuracy; use PTP (IEEE 1588, sub-microsecond) on co-located hardware and Lamport logical clocks for cloud-distributed deployments. Data validation — every tick validated against price bounds (±Nσ from VWAP), sequence continuity, and timestamp monotonicity at the bus, before reaching any agent.

You cannot debug a 36-agent fleet by reading logs sequentially. Observability spans three dimensions — time-series metrics (Prometheus + Grafana: per-agent p50/p95/p99 inference latency, tokens/sec, queue depth, error rate), structured logs (every decision emitted as JSON to Loki / ELK), and distributed traces (OpenTelemetry spans covering market-data tick → agent inference → risk check → order generation as one trace). When something breaks at 09:32 on a high-volatility open, you need millisecond-resolution attribution, not grep.

MetricToolAlert thresholdResponse playbook
Agent inference latency p99Prometheus + Grafana> 500 ms sustainedScale GPU tier · check KV-cache saturation
Fleet health (active / total)Custom exporter< 80% healthyPage on-call · isolate failed agents · check Redis connectivity
Data bus lagKafka consumer lag> 100 msEscalate to data engineering · check broker throughput
Risk agent heartbeatRedis TTL monitorsilent > 30 sImmediate escalation — risk-agent silence is a trading-halt trigger
Decision log throughputLoki / ELKdrop to zeroAudit-trail gap = regulatory exposure · halt new agent decisions
GPU memory utilizationDCGM + Grafana> 90% VRAMInvestigate KV-cache leak · roll inference server
05 — The hidden stack

The hidden cost stack — clearing, connectivity, compliance.

The visible cost stack — compute and data infrastructure — is the first table any proposal includes, and the one that understates the true institutional bill by a factor of 3–5×. Here is the visible layer.

ComponentSpecCost / month
Co-lo / bare metal (Tier 1)2× dedicated servers · 10GbE$800 – $2,000
GPU inference (Tier 2)4× A10G (AWS g5.2xlarge)$2,800 – $4,200
Orchestration cluster3-node K8s · 8 vCPU · 32GB each$600 – $900
Data bus (Kafka managed)Confluent Cloud / self-hosted$400 – $800
Observability stackGrafana Cloud / self-hosted$200 – $500
Market data feedsAsset class dependent$500 – $5,000+
Cold compute (batch)Spot instances · variable$300 – $800
Total · excl. Bloomberg~$5,000 – $9,000
Total · incl. Bloomberg~$27,000 – $33,000

On inference economics: at 36 agents × 1,000 inference calls/day, API costs (GPT-4o, Claude 3.5 Sonnet) exceed self-hosted GPU costs (Llama 3.1 70B on A10G) at roughly the three-month mark. Self-hosting requires dedicated MLOps overhead — model updates, GGUF/AWQ quantization, vLLM version management — but at fleet scale the economics are straightforward.

Most breakdowns stop here. The real institutional stack has three further layers that dwarf cloud bills — clearing & settlement, market connectivity & co-location, and compliance infrastructure.

CLRClearing & settlement.

Asset classClearing modelCost rangeMin. capital
US EquitiesPB / self-clear$0.001 – $0.005 / share$500K+
US Futures (CME/CBOT)FCM + CME clearing$0.10 – $0.35 / contract / side$100K+ margin
US OptionsOCC via prime broker$0.02 – $0.05 / contract$50K+
Crypto · CEXExchange native0 – 10 bpsnone
Crypto · CeDeFiSmart contract + bridgegas + 5 – 50 bpsnone
FX SpotPrime broker0.5 – 2 pips$1M+ credit line

DTC/NSCC membership is unavailable to most fintech startups — clearing-broker dependency introduces counterparty risk that must be explicitly modeled. SPAN initial margin for a 36-agent futures fleet can reach $500K–$5M by gross notional. Variation margin needs a dedicated liquidity buffer of 10–15% of gross notional available as daily cash settlement. Short locate fees on hard-to-borrow names can reach 50%+ annualized — explicit strategy costs, not broker footnotes.

NETMarket connectivity & co-location.

ConnectivityLatencyMonthly costBest for
Co-lo bare metal (same rack)1 – 10 μs$8,000 – $20,000HFT · market making
Co-lo bare metal (cross-connect)10 – 100 μs$3,000 – $8,000Stat arb · futures
Managed extranet (TNS / Colt)500μs – 2ms$2,000 – $10,000Mid-frequency
Cloud near co-lo (AWS / Azure)1 – 5 ms$500 – $2,000Research · swing
Broker DMA (FIX)2 – 10 ms$0 – $500Low-frequency · algo

NYSE co-location at Mahwah (NJ) and NASDAQ at Carteret (NJ) run $5,000–$15,000/month per cabinet plus cross-connect fees. Direct market data — NYSE Integrated Feed (~$3,000/mo), NASDAQ TotalView-ITCH (~$1,500/mo), CME Globex data ($1,500–$6,000/mo by product group) — adds significantly beyond cloud bills. FIX connectivity via an executing broker introduces 1–5ms of additional latency: acceptable for medium-frequency strategies, categorically unacceptable for HFT.

REGCompliance & regulatory infrastructure.

CAT reporting (US equities/options, a broker-dealer obligation) has seen build-out costs reach ~$500M industry-wide, with ~$200M/year ongoing across the ecosystem. Per-firm: $50,000–$200,000 initial setup, $10,000–$50,000/year ongoing. EMIR / MiFID II ARM connectivity for EU-regulated entities runs $30,000–$100,000/year. AML/KYC for crypto — Chainalysis KYT, Elliptic, or equivalent — adds $20,000–$150,000/year. The FIA-compliant kill switch — sub-100ms full-fleet shutdown with hardware-level enforcement — is a $5,000–$20,000 one-time engineering and testing investment that is not optional for any FCM-connected operation.

SUMFull cost stack.

Cost categoryLow / moHigh / moNotes
Compute (Tier 1–3)$5,000$9,000excl. Bloomberg
Market data feeds$3,000$15,000asset class dependent
Exchange connectivity$3,000$20,000DMA vs. managed
Clearing & PB fees$2,000$20,000volume dependent
Margin reserve (capital)$50,000$500,000capital, not OpEx
Trade surveillance (CAT/EMIR)$4,000$17,000amortized annual
AML/KYC (crypto)$2,500$12,500amortized annual
Kill switch + pre-trade$500$2,000amortized
Audit log storage$100$200S3 Glacier
Monthly OpEx total~$20,000~$95,000excl. capital
Annual + capital reserve~$290K~$2.2Mfull institutional stack
The fixed cost base of a full institutional stack is irrational at small scale. What changes the equation is shared infrastructure — where the compliance, connectivity, and data layers are pre-built and already amortized.
Cost stack · the asymmetry
06 — The economics

Break-even & the build vs. buy decision.

Rule of thumb: full-stack annual cost of $350K–$1M, against a 1–2% management fee, implies a break-even between $17.5M and $100M AUM before the infrastructure investment is economically justified. At 1.0% mgmt fee + $1M/yr full stack, you need $100M AUM to clear the bar; drop to 2% + a low-cost stack and you clear at $17.5M. Performance-fee economics shift this materially when Sharpe > 1.0 — reducing break-even AUM by roughly 30–50%.

Cost scenario1.0% mgmt fee1.5% mgmt fee2.0% mgmt fee
Low · $350K / yr$35.0M$23.3M$17.5M
Mid · $650K / yr$65.0M$43.3M$32.5M
High · $1.0M / yr$100.0M$66.7M$50.0M

Architecture matters; AUM matters more. The fixed cost base of a full institutional stack is irrational below a threshold. Build the full stack when strategy requires sub-10ms agent response, the model architecture is unavailable via API, regulation demands on-premise or private-cloud deployment, fleet scale exceeds 50 agents (making API inference economically irrational), or AUM > $50M justifies the fixed base. Use a managed platform when the team is under five engineers, during prototyping (validate alpha before committing infrastructure), for non-latency-critical work (research, reporting, compliance monitoring), or when AUM < $20M.

We built Tier 1 and Tier 2 ourselves and expose it as a managed API layer — identity-resolved market data, normalized clearing-cost models, pre-wired observability. Quant teams should not spend cycles on Kafka rebalancing, GPU memory management, or EMIR plumbing. They should be building strategies.
Nyquist · the build-vs-buy answer

Our infrastructure layer answers one question — "what would it cost a 3-person quant team to replicate this?" — with one number: 18–24 months and $300K+ before writing a single line of alpha code.

07 — Failure modes

Failure modes nobody warns you about.

  1. F1 · Context window drift. Long-running agents accumulate stale context across a session; decisions degrade progressively with no visible error signal. Mitigation: periodic context resets keyed to market-session boundaries, not calendar time.
  2. F2 · Model version skew. During a rolling deployment, agents on different checkpoints produce inconsistent signals on identical input — spurious divergence that looks like genuine disagreement. Mitigation: atomic fleet-level version pinning with a synchronization gate before any output.
  3. F3 · Redis hot-key contention. All 36 agents writing position updates to a shared key at market open causes throughput collapse. A 09:30 write storm is predictable and avoidable. Mitigation: per-agent namespaced keys with a meta-agent aggregating fleet state asynchronously.
  4. F4 · GPU memory leak in inference server. vLLM's KV-cache grows unbounded under sustained load without explicit eviction tuning — OOM after 4–6 hours, with silent p99 inflation beforehand. Mitigation: explicit max_num_seqs bounds, VRAM alerting at 90%, scheduled restarts in low-activity windows.
  5. F5 · Clock skew amplification. 50ms NTP drift across cloud regions makes agents disagree on whether a candle belongs to T or T-1 — correlated wrong-way hedges that look like strategy misbehavior but are infrastructure failures. Mitigation: PTP on co-located hardware, Lamport logical clocks for cloud.
  6. F6 · Margin call cascade. Multiple agents breach limits simultaneously under flash volatility; automatic de-risking orders hit the clearing broker at once; liquidity impact amplifies losses — a margin spiral. Mitigation: a fleet-level gross-notional cap at the meta-agent layer, not per-agent — individual limits are insufficient when 36 agents hit them in the same direction.
08 — Inputs

Inputs & constraints.

Inputs & assumptions

Agent count — 36 concurrent production agents (mixed LLM, rule-based, ML model). Infrastructure baseline — hybrid cloud + co-located Tier 1. LLM models — Llama 3.1 70B (self-hosted via vLLM), GPT-4o (API fallback), Claude 3.5 Sonnet (research agents). Orchestration — Kubernetes 1.29+, Kafka 3.x, Redis 7.x. Observability — Prometheus, Grafana, OpenTelemetry, Loki. Clearing — CME, OCC, DTC/NSCC fee schedules 2025–2026. Connectivity — NYSE Mahwah, NASDAQ Carteret co-lo pricing, May 2026. Compliance — Nasdaq Surveillance, Chainalysis, Notabene. Cloud pricing — AWS us-east-1 on-demand, May 2026. Market coverage — US equities + futures + options + crypto.

Constraints & limitations. Cost estimates vary materially by region, reserved-instance discounts (up to 60%), and utilization. H100 spot availability stays constrained with high preemption; A10G / A100 on-demand is more reliable for production Tier 2. Self-hosted inference requires dedicated MLOps cycles not captured in raw GPU cost. Kubernetes adds operational complexity — for teams under three engineers, managed alternatives (Railway, Modal, Fly.io) may be more practical for Tier 2. Clearing estimates assume US-regulated structure; EU (EMIR), UK (FCA), and crypto-native structures differ. CAT and EMIR obligations apply to registered broker-dealers and FCMs; unregistered entities face different frameworks. Break-even analysis assumes flat fee structures — performance fees change the calculus significantly in favor of building.

The structural takeaway: spinning up 36 agents in a notebook takes an afternoon. Running them in production for a year — synchronized, audited, isolated, observable, and economically rational — takes 18–24 months and the better part of $300K before a single line of strategy code ships. Most of that cost is invisible until you're trying to ship. By then it's a refactor, not a roadmap.
09 — The summary

Key takeaways.

Six rules · architecture before code
  1. Segment agents by speed tier before writing a single line of code. Tier 1/2/3 topology is an architectural commitment, not a deployment optimization. Retrofit cost is a multiple of greenfield — and you may discover you need it the wrong way around.
  2. A single market data bus with sequence numbers is non-negotiable. Independent fetching at agent level is a consistency liability that compounds at fleet scale. One bus, N subscribers, gap detection, replay on miss.
  3. Model clearing and connectivity costs explicitly. At serious scale they exceed compute costs. Ignoring them produces systematically incorrect P&L attribution — your "alpha" disappears into a fee structure you never modelled.
  4. Break-even AUM for a full institutional stack is $17.5M–$100M. Below that, managed platforms with bundled infrastructure are rational; above it, owning the stack becomes a moat.
  5. Kill switch and pre-trade controls are engineering problems, not compliance checkboxes. FIA-compliant sub-100ms fleet shutdown is an infrastructure spec with hardware-level enforcement — not a policy document.
  6. Agent-level observability is the difference between debugging in minutes and debugging in days. p99 latency, structured decision logs, distributed traces — build them before the first agent goes live. Retrofit is far more expensive than greenfield.

The infrastructure problem of 2026 is not "can we deploy LLM agents" — it's "can we deploy them without rebuilding the institutional stack from scratch?" How does your team currently model clearing and connectivity costs against compute infrastructure? We're building a comprehensive cost model for institutional AI agent stacks and would value your real numbers.

If you're designing infrastructure for AI agent fleets in financial contexts — or hitting these failure modes and cost surprises in your current stack — we'd like to compare architecture and cost notes. No sales pitch.
  About Nyquist

Tier 1 + Tier 2 built — exposed as an API.

A bitemporal ontology and a real-time cross-asset state layer feed 36 named agents and a domain SLM — ML where it adds edge, classical methods where they hold, and an interpretability and governance layer throughout. The 18-month, $300K infrastructure phase already amortized, so quant teams build strategies instead of Kafka plumbing.