Setting the file. One moment.
Chapter 04 · Cloudflare Deploy
Subchapter 4.36
references/argo-smart-routing/README.mdMarkdown4 KBView on GitHub
Cloudflare Argo Smart Routing is a performance optimization service that detects real-time network issues and routes web traffic across the most efficient network path. It continuously monitors network conditions and intelligently routes traffic through the fastest, most reliable routes in Cloudflare’s network.
Note on Smart Shield: Argo Smart Routing is being integrated into Cloudflare’s Smart Shield product for enhanced DDoS protection and performance. Existing Argo customers maintain full functionality with gradual migration to Smart Shield features.
curl -X PATCH "https://api.cloudflare.com/client/v4/zones/{zone_id}/argo/smart_routing" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"value": "on"}'import Cloudflare from 'cloudflare';
const client = new Cloudflare({ apiToken: process.env.CLOUDFLARE_API_TOKEN });
const result = await client.argo.smartRouting.edit({
zone_id: 'your-zone-id',
value: 'on',
});
console.log(`Argo enabled: ${result.value}`);| Your Situation | Recommendation |
|---|---|
| Global production app, >1TB/month traffic | ✅ Enable - likely ROI positive |
| Enterprise plan, latency-critical APIs | ✅ Enable - performance matters |
| Regional site, <100GB/month traffic | ⚠️ Evaluate - cost may not justify |
| Development/staging environment | ❌ Disable - use in production only |
| Not yet configured billing | ❌ Configure billing first |
| Your Goal | Start With | Then Read |
|---|---|---|
| Enable Argo for first time | Quick Start above → configuration.md | gotchas.md |
| Use TypeScript/Python SDK | api.md | patterns.md |
| Terraform/IaC setup | configuration.md | - |
| Enable for Spectrum TCP app | patterns.md → Spectrum section | api.md |
| Troubleshoot enablement issue | gotchas.md | api.md |
| Manage billing/usage | patterns.md → Billing section | gotchas.md |