INFRASTRUCTURE STACK — CLOUDFLARE

CLOUDFLARE.
EDGE TO EDGE.

Cloudflare is the entire infrastructure layer of 2nth.ai. Not just DNS — Workers, Pages, D1, KV, R2, AI, Zero Trust, Queues, and Durable Objects. Every product, explained for operators who build on it.

330+
Edge locations
0ms
Cold start (Workers)
10+
Products we use
1
Vendor for infra
Build — Compute

COMPUTE

The full Cloudflare compute stack — from serverless functions to stateful objects, workflow engines, and browser automation. All running at the edge, globally distributed.

EXPLAINER COMING
COMPUTE
WORKERS & PAGES
Serverless functions + full-stack deployment

Every 2nth.ai API endpoint is a Worker. Auth, billing, agents, webhooks — deployed globally, zero cold starts. Pages deploys 2nth.ai, skills, demo, agents from GitHub.

V8 isolates0ms cold startPagesFunctionGitHub CI
EXPLAINER COMING
COMPUTE
OBSERVABILITY
Logs, metrics, traces for Workers

Workers Logpush, Tail Workers, and Analytics Engine. Stream request logs to R2 or third-party tools. Trace every invocation across your worker graph.

Tail WorkersLogpushAnalytics Engine
EXPLAINER COMING
COMPUTE
WORKERS FOR PLATFORMS
Multi-tenant serverless for SaaS

Run customer-provided code in isolated Workers per tenant. Build platforms where each user or client gets their own sandboxed execution environment.

Multi-tenantDynamic dispatchIsolation
EXPLAINER LIVE
COMPUTE — BETA
CONTAINERS
Docker containers at the Cloudflare edge

Run any Docker image on-demand, controlled by Workers and Durable Objects. Full Linux environment, 6 instance sizes, auto-sleep billing — no container cluster to manage.

DockerDurable ObjectsAuto-sleep14 sections
Read the explainer →
EXPLAINER COMING
COMPUTE
DURABLE OBJECTS
Stateful edge compute with strong consistency

Single-threaded objects with global unique ID. Strongly consistent state at the edge — real-time collaboration, WebSocket hubs, per-user state machines.

StatefulWebSocketsConsistencyUnique ID
EXPLAINER COMING
COMPUTE
QUEUES
Message queuing between Workers

Background jobs, event processing, async pipelines. Queue a task in one Worker, consume it in another. Guaranteed at-least-once delivery with automatic retry and dead-letter support.

AsyncRetryDead letterBatching
EXPLAINER COMING
COMPUTE
WORKFLOWS
Durable multi-step execution engine

Long-running, resumable workflows built on Durable Objects. Define multi-step processes — AI pipelines, onboarding flows, approval chains — that survive failures and retries.

Durable stepsResumableAI pipelines
EXPLAINER COMING
COMPUTE
BROWSER RENDERING
Headless Chrome at the edge

Full Puppeteer-compatible browser running in a Worker. Screenshot any URL, scrape dynamic content, generate PDFs, test UI flows — all serverless, no infrastructure.

PuppeteerScreenshotsPDFScraping
BETA — COMING
COMPUTE — BETA
VPC
Private networking for Workers & services

Connect Workers to private resources — databases, internal APIs — via a Cloudflare-managed VPC. No public IP exposure, no firewall rules needed.

BetaPrivate IPTunnelmTLS
EXPLAINER COMING
COMPUTE
EMAIL SERVICE
Send and receive email from Workers

Route inbound email to Workers, send transactional email via the API. SPF, DKIM, DMARC all handled. Use with Email Routing to build full email workflows without an ESP.

SendReceiveRoutingDKIM
EXPLAINER COMING
COMPUTE
WORKERS PLANS
Free → Paid → Enterprise pricing model

Free: 100K requests/day. Workers Paid ($5/mo): 10M requests, unlimited scripts, Queues, Durable Objects, Workflows. Enterprise: custom SLA, dedicated support, higher limits.

Free tier$5/mo PaidEnterprise
Category — AI

AI

Run AI models, manage inference pipelines, and build vector search — all within the Cloudflare network, billed by token not by uptime.

EXPLAINER COMING
AI
WORKERS AI
AI model inference at the edge

LLaMA 3, Whisper, Stable Diffusion, BAAI embeddings — callable from any Worker. No GPU provisioning, no model hosting. AI as a function call, billed per token.

LLaMA 3EmbeddingsWhisperStable Diffusion
EXPLAINER COMING
AI
AI GATEWAY
Proxy, cache, and observe all AI calls

Single endpoint for OpenAI, Anthropic, Workers AI, Replicate, and more. Caches identical prompts, logs all requests, rate limits, and falls back across providers.

Multi-providerCachingLoggingRate limiting
EXPLAINER COMING
AI
VECTORIZE
Vector database for RAG and semantic search

Store, index, and query embedding vectors at scale. Pair with Workers AI embeddings for retrieval-augmented generation. Native to the Workers runtime — no external calls.

EmbeddingsRAGSemantic searchHNSW
Category — Storage & Databases

STORAGE & DATABASES

Relational, key-value, and object storage — all living at the edge, co-located with compute, zero separate connection overhead.

EXPLAINER COMING
STORAGE — RELATIONAL
D1
SQLite at the edge, fully replicated

2nth.ai's primary database. Users, tokens, contracts, projects, activity logs — all in D1. Queried directly from Workers with zero network hop. Wrangler-managed migrations.

SQLiteMigrationsWranglerReplicated
EXPLAINER COMING
STORAGE — KEY-VALUE
KV
Low-latency global key-value store

Session tokens, magic link JWTs, rate limiting counters — stored in KV. Microsecond reads from anywhere on the Cloudflare network. Built-in TTL, no server needed.

TTLGlobal readsSessionsEventual
EXPLAINER COMING
STORAGE — OBJECT
R2
S3-compatible object storage, zero egress fees

Assets, uploads, generated files. Any S3-compatible SDK works. No egress fees — unlike AWS S3, you pay only for storage and operations, never for bandwidth out.

S3 APIZero egressPublic bucketsCORS
Category — Media

MEDIA

Image optimisation and video streaming — globally cached, resized on the fly, no CDN configuration required.

EXPLAINER COMING
MEDIA
IMAGES
Resize, optimise, and serve images at the edge

Store images in Cloudflare Images or use Image Resizing via URL params. WebP/AVIF auto-conversion, responsive variants, on-the-fly transforms — all cached globally.

WebPAVIFResizeVariants
EXPLAINER COMING
MEDIA
STREAM
Video upload, encoding, and delivery

Upload any video — Cloudflare encodes it for adaptive bitrate playback. Embed with a signed URL, set expiry, restrict to domains. No egress costs for video delivery.

HLSDASHSigned URLsNo egress
Category — Security & Networking

SECURITY & NETWORKING

Zero Trust access control, DNS, and DDoS protection — the perimeter layer that everything else sits behind.

EXPLAINER LIVE
SECURITY
ZERO TRUST
Never trust, always verify

Access, Tunnel, WARP, Gateway, Browser Isolation. Replaces VPN with identity-aware access. Every connection verified — regardless of network location.

AccessTunnelWARPGatewaymTLS
Read the explainer →
EXPLAINER COMING
NETWORKING
DNS
The world's fastest authoritative DNS

All 2nth.ai and imbila.ai DNS runs on Cloudflare. Sub-millisecond resolution, DNSSEC, proxied records for DDoS protection and origin hiding, API-managed records.

AuthoritativeDNSSECAPIProxied
2nth.ai usage map

HOW WE USE IT

Every Cloudflare product 2nth.ai runs on today — and why.

ProductUsed forWhy Cloudflare
Workers & PagesAll 2nth.ai properties — API functions, static sites, preview deploysZero cold starts, GitHub CI, free tier, same deploy unit
Durable ObjectsPer-agent state, real-time session coordinationStrongly consistent edge state — no separate state server
QueuesAsync job processing — email sends, webhook fanoutGuaranteed delivery, retry, dead-letter, no separate broker
WorkflowsMulti-step agent pipelines, onboarding flows (planned)Durable steps that survive failures without external orchestrator
D1Users, tokens, contracts, projects, activity logs, costsSQLite native, no connection pool, wrangler migrations
KVSessions, magic link JWTs, rate limiting countersMicrosecond global reads, built-in TTL, no server needed
R2Asset uploads, generated files (planned)Zero egress vs S3, same S3 API, no bandwidth cost
ContainersPython toolchains, document parsing, heavy ML preprocessingAny language/runtime, auto-sleep billing, no cluster management
Workers AIBrief analysis, context enrichment, embeddingsNo GPU provisioning, billed per token, stays on Cloudflare network
AI GatewayProxy + cache for Anthropic/OpenAI calls (planned)Unified logging, caching, fallback across providers
Zero TrustAdmin route protection, team access, future client portalsIdentity-aware access without VPN, any IdP
DNS2nth.ai, imbila.ai, b2bs.co.za zonesFastest authoritative DNS, proxied records, full API control