Search code examples
amazon-web-servicesamazon-route53

Splitting READ and WRITE traffic using Route 53


I have an API which is deployed on GCP (GKE+External LB) and AWS (EKS + ELB). The DNS resolution is via Route 53.

Can Route 53 split the incoming traffic in way where are READ operations (GET) go to GCP and all writes (PUT/POST etc) goes to AWS.

Basically something like :

read.domain.com going to an external ipv4 address on gcp

write.domain.com going to AWS ELB

Thanks.


Solution

  • You can set up read.domain.com to resolve to GCP IPs by just setting up A-records for that. You can use Alias records for write.domain.com to point to your ELB.

    What you can't do is DNS routing based on the HTTPS method (PUT/POST/GET/...), that's another layer of the network stack, DNS has no concept of that. DNS basically does Layer 3 resolution (IP-Addresses) and HTTP is a Layer 5 protocol.