惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
GbyAI
GbyAI
博客园 - Franky
宝玉的分享
宝玉的分享
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
人人都是产品经理
人人都是产品经理
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
有赞技术团队
有赞技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
F
Full Disclosure
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Vercel News
Vercel News
博客园 - 【当耐特】
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Schneier on Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Project Zero
Project Zero
量子位
M
MIT News - Artificial intelligence
Stack Overflow Blog
Stack Overflow Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
美团技术团队
Attack and Defense Labs
Attack and Defense Labs
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Troy Hunt's Blog
Google Online Security Blog
Google Online Security Blog
罗磊的独立博客
P
Proofpoint News Feed
Schneier on Security
Schneier on Security
Spread Privacy
Spread Privacy
S
SegmentFault 最新的问题
L
LINUX DO - 最新话题
Simon Willison's Weblog
Simon Willison's Weblog
爱范儿
爱范儿
博客园 - 聂微东
A
About on SuperTechFans
PCI Perspectives
PCI Perspectives
D
Docker

Fastly Blog

Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Fastly Six Common Live Streaming Mistakes (And How to Avoid Them) How Fastly and Skyfire Enable Trusted Agentic Commerce at the Edge Bot Defense is Table Stakes. Machine Traffic Requires a Business Strategy AI Traffic Grew 6.5x Faster Than Human Traffic This Year Python SDK Beta: How the Language of AI Runs Faster and Safer with Fastly Give AI Agents the Markdown They Actually Want How to Configure Local Logging for an On-Prem Next-Gen WAF Agent Accountability Without Control Is Breaking Security Leadership Fastly Joins the Agentic AI Foundation (AAIF) to Guide Edge AI Interoperability The E-commerce Industry in the AI Era: Has the Agentic Flood Hit? No Margin for Error: What the FIFA World Cup Teaches Us About Performance at the Edge Why iGaming Infrastructure is Breaking and What Comes Next
Fastly
Shane Burgess · 2026-06-30 · via Fastly Blog

Modern applications don't live at a single origin. You've got API servers, static assets, auth services, media pipelines, each needing traffic to route correctly. Getting there meant complex configuration: multiple domains, custom VCL, compute code sitting in front of your origin, or the use of service chaining.

Request Routing can simplify this for you.

One Domain, Multiple Services

With Request Routing, you define path-based rules on any domain in our Domain Management system, and we send each request to the right service automatically, no custom code required.

Host your marketing pages on a static CDN, your API on a containerized backend, and your media files on object storage, all under one domain. Route /api/* to your app server, /assets/* to S3, /auth/* to your identity provider, clean, fast, and entirely declarative.

Use Cases

  • Microservices Orchestration: Route different API versions to specific legacy or modern services.

  • Geographic Localization: Direct users from specific countries to localized origin servers to reduce latency.

  • A/B Testing & Canary Deploys: Use header-based matching to route a percentage of traffic to staging or beta services.

How It Works

Route configurations live under the Domains top-level navigation in your dashboard. You can create sophisticated rules using three primary condition types. Our first release will only support headers, but the other condition types are coming soon. 

  • Header: Match based on HTTP headers like API versions or User-Agents.

  • Geo: Route traffic based on the user's geographic location, such as country codes.

  • IP: Filter and route based on specific IP addresses or ranges.

For this release, you can check whether a header value starts_with, ends_with, equals, or contains a given string. Every path can define multiple rules, and each rule has an associated action. The action determines what happens when/if a condition is matched. For the initial release we're providing a 'service' action that takes a Service ID as its value (we have plans for other action types, coming soon).Every path requires a default action, a fallback route for when no rules match.

Here's a simple example of routing traffic based on the User-Agent request header:

Route configuration:
  Path: /example
    Rule:
      Condition: header User-Agent starts_with "Mozilla/5.0"
      Action: route to service-A
    Rule:
      Condition: header User-Agent starts_with "Mozilla/4.0"
      Action: route to service-B
    Default: route to service-C

The system evaluates requests to /example top-to-bottom. The first matching rule wins; anything that does not match any condition falls through to the default.

The Draft-to-Deploy Workflow

Request Routing ensures safety and increases developer velocity by following a streamlined "Draft-to-Deploy" workflow:

  1. Draft: When you start an edit, we automatically create a draft by cloning your active configuration.

  2. Configure: Add paths and define rules. Each route configuration supports up to 10,000 paths, 20 rules per path, and 5 conditions per rule.

  3. Preview: Use the Structured Diff API endpoint or UI to review exactly what changes you made before going live.

  4. Activate: Deploy your changes to the edge with a single call. Strict validation ensures every path has a fallback rule.

  5. Rollback: We store the last five active versions, allowing for near-instant rollbacks to a known-good state.

Get Started

Request Routing is available now on all plans. Head to your dashboard to create your first configuration, or read the documentation for rule syntax, wildcard matching, and advanced options.

Building something interesting with it? Share it on the Fastly community or drop us a line at Fastly Support.