Have an interesting task when we don't want to have a full rollout of a new feature.
We'd like to route only the percentage of traffic (based on a path parameter) to the new endpoint.
We'd like to calculate the percentage based on a 'specialPathParam':
So, if we want to route 50% to the new endpoint:
if there're 2 requests
one request with 'specialPathParamOne' should go to the new endpoint
and another one with 'specialPathParamTwo' should go to the old one.
Trying to find a way to implement it in VCL somehow...
Any tips and tricks here?
Thanks a lot!
Please sign in to leave a comment.