amazon web services - AWS: How to route to autoscaling group based on URL pattern? -


our app has independent clusters of boxes running on amazon web services. need send http requests different clusters based on url. example, http://api.mydomain.com/foo should go "foo" cluster, , http://api.mydomain.com/bar should go "bar" cluster.

i don't see in elastic load balancer or route 53 it.

(the obvious thing have separate subdomains, that's difficult app. want stick "api" subdomain because cluster configuration may change in future.)

what's best approach?

that not supported load balancer. using subdomains work if want use existing load balancer.

if need more features, configure own using software load balancer running on top of ec2 instance. not cost effective however.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -