You are developing an application that is going to make use of Docker containers.
Traffic needs to be routed based on demand to the application.
Dynamic host port mapping would be used for the docker containers.
Which of the following two options would you use for the distribution of traffic to the Docker containers?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer - A & B.
The AWS Documentation mentions the following.
Application Load Balancers offer several features that make them attractive for use with Amazon ECS services.
Application Load Balancers allow containers to use dynamic host port mapping (so that multiple tasks from the same service are allowed per container instance).
Application Load Balancers support path-based routing and priority rules (so that multiple services can use the same listener port on a single Application Load Balancer).
Network Load Balancers do support dynamic host port mapping.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/load-balancer-types.html#nlbOptions D is invalid since the Application Load balancer is ideal when you have the requirement for path-based routing.
Option C is incorrect since this is used for DNS Routing.
For more information on Service Load Balancing, please refer to the below URL-
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.htmlTo distribute traffic to Docker containers using dynamic port mapping, you would need to use an AWS Load Balancer. Load Balancers are a service provided by AWS that automatically distributes incoming traffic across multiple targets, such as EC2 instances or containers.
There are three types of Load Balancers available on AWS:
Application Load Balancer (ALB): Used for HTTP and HTTPS traffic, it routes traffic based on application-level content (such as URL paths or hostnames). It is designed to handle traffic for microservices-based architectures and is often used for web applications, APIs, and containers.
Network Load Balancer (NLB): Used for TCP, UDP, and TLS traffic, it routes traffic based on IP protocol data. It is designed to handle traffic for applications that require extremely high performance and static IP addresses, such as gaming or streaming.
Classic Load Balancer (CLB): Used for HTTP, HTTPS, TCP, and SSL traffic, it is a legacy service that is still supported but has been mostly replaced by the newer ALB and NLB services.
In this case, since you are using Docker containers with dynamic port mapping, the best option would be to use an Application Load Balancer (ALB). The ALB can dynamically route traffic to different containers based on the port mappings specified in the container definitions.
AWS Route 53 is a DNS service that can be used to route traffic to different resources based on DNS records. However, it is not designed for load balancing and cannot dynamically route traffic based on port mappings like an ALB can.
Therefore, the correct answer to the question is A. AWS Application Load Balancer.