My goal is to be able to route traffic from Route53 to my autoscaling group using relatively complex rules. Route 53 must provide DNS, and my EC2 instances must service the request, but I'm open to any other technologies being used in the stack.
Here's an example of the rules I might like to use:
- 1% of traffic with a specific value in the url path should be routed to ASG A
- 0.1% of traffic with this value in the body should be routed to ASG B
- Rest should go to ASG C
What is the best solution for me considering that I want to be able to change the rules without deploying new CF template every time (my entire configuration is in CF)?
The main reason is to be able to run experiments for specific clients. I want to be able to deploy a new feature to production, test it on a specific audience and only then make it generally available. For some clients, I will be able to use query parameters but for some, I will need to scan the request body.
If there is a different solution (without multiple ASGs) or something that I didn't even think about please share your ideas.