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:
- Login to console
- Choose hosted name > DNS resolution strategies
- 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,
- Login to EC2 console
- Click on Load Balancer
- Launch application load balancer
- Configure Routing
- Register targets
- Verify operation of the application load balancer