Home icon

Dynamically routing requests with Amazon API Gateway routing rules

Compute Blog



AWS API Gateway has introduced dynamic routing rules for custom domain names, enabling more flexible API request routing based on HTTP headers and URL paths.

  • New routing rules allow routing decisions based on HTTP headers, base paths, or combinations of both
  • Supports scenarios like API versioning, A/B testing, and gradual feature rollouts
  • Routing rules have three key properties: Conditions, Actions, and Priority
  • Supports header matching with exact, prefix, suffix, and wildcard conditions
  • Three routing modes: API mappings only, routing rules then API mappings, and routing rules only
  • Provides enhanced observability through access logging with new context variables

This feature allows developers to implement complex routing strategies without modifying API endpoints, offering more control and flexibility in API management.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 3
2025
Amazon API Gateway introduces routing rules for REST APIs
Sep 2
2025
Dynamic routing using Amazon VPC Route Server
Mar 31
2025
Amazon API Gateway now supports dual-stack (IPv4 and IPv6) endpoints
Mar 11
2025
Build an enterprise API management solution using Amazon API Gateway

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.