Handling Traffic

AWS offers Route53 for DNS and related services. ELB optimally distributes load between your EC2 instances.

Route53

Route53 is a DNS Service that provides a reliable and scalable way to route traffic. DNS maps IP to a domain name. Key features:

  • global, highly available DNS
  • domain registration
  • public and private names
  • multiple routing algorithm
  • both IPv4 and IPv6
  • integrated with other AWS cloud Services

To setup:

  1. Login to console
  2. Choose hosted name > DNS resolution strategies
  3. The remaining choices depend on what you are looking to setup

Elastic Load Balancing (ELB)

ELB handles and distributes traffic to your nodes

  • You can route traffic by adding listener, creating rules, and creating target groups.
  • ELB can scale automatically
  • use a single CNAME for all your servers
  • supports HTTP, HTTPS, HTTP/2, and websockets
  • provides load balance metrics, access logs, and health checks
  • support multiple domains with the same load balancer
  • supports path and host-based routing
  • native IPv6 support, AWS WAF, dynamic ports
  • deletion protection and request tracing

To setup ELB,

  1. Login to EC2 console
  2. Click on Load Balancer
  3. Launch application load balancer
  4. Configure Routing
  5. Register targets
  6. Verify operation of the application load balancer