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

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.