Home icon

Building Multi-Region Active-Active Architectures with CloudFront VPC origins and Advanced Routing

Networking & Content Delivery Blog



This article demonstrates how to build multi-region active-active architectures using CloudFront VPC origins with three routing strategies and automated failover for improved performance and resilience.

  • CloudFront VPC origins enable direct connectivity to private resources without exposing them to the public internet
  • Geo-based routing directs requests to the nearest backend region based on viewer location
  • Weighted routing provides operational control over traffic distribution across regions for migrations and A/B testing
  • Session affinity routing maintains user requests to the same region for stateful applications and data consistency
  • Origin Groups provide automatic failover with configurable error conditions and timeout thresholds
  • CloudFront KeyValueStore externalizes routing configurations for real-time updates without function redeployment
  • CloudFront Functions implement routing logic at edge locations with custom logging for observability
  • Real-time access logs and CloudWatch alarms enable monitoring of routing decisions, failover events, and function errors

This architecture reduces origin latency, enables flexible traffic management, and maintains session consistency while providing automated failover protection during regional events.



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

Aug 20
2026
Amazon CloudFront now supports Origin Access Control (OAC) for Amazon S3 Multi-Region Access Points
Jan 31
2023
Reduce latency for end-users with multi-region APIs with CloudFront
Sep 1
2026
Amazon Connect Global Resiliency now supports cross-region routing of contacts across two active AWS regions
Aug 27
2026
Enabling a new AWS Region for financial services enterprises

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.