AWS' Application Load Balancer has the feature to Route to multiple ports on a single instance
.
Can anyone name a few use cases when you might use this feature?
AWS' Application Load Balancer has the feature to Route to multiple ports on a single instance
.
Can anyone name a few use cases when you might use this feature?
Multiple ports on the same host is critical when using a Docker scheduler such as Amazon EC2 Container Service (ECS), where you don't know beforehand what port #'s will be assigned, on what hosts, and may end up with multiple instances per host.
For smaller applications it allows you to perform a more graceful rolling update as you can launch the new instance before retiring the prior instance, on the same host.
Sometimes where webapps are being served there may be additional API services on the same device using a different port. In this case you could use URL redirection within the load balancer so that default/unrouted HTTPS traffic goes straight through to 443 whilst /api/ goes through to 8443 for example. See here for more examples of what can be achieved with listener rules.