QuestionQ44

VerifiedConfiguring managed network services

You are performing a canary test of a new version of an online retailer’s main application, named app-v2, which is configured as a separate backend service from the current version, app-v1. You must send 10% of traffic for the /shop path to app-v2 and the remaining 90% to app-v1.

The app-v2 service supports requests on both /shop/v2 and /shop, whereas the app-v1 service supports requests only on /shop. You need to implement the most efficient solution to achieve this traffic split and path rewrite.

What should you do?

Explanation

Google Cloud URL-map route actions can use weightedBackendServices to split requests for the same matching URL across backend services according to assigned weights. Because both backends can receive /shop only app-v1 requires that path, the correct configuration preserves /shop and assigns app-v1 a weight of 90 and app-v2 a weight of 10. Rewriting the path to /shop/v2 would send an unsupported path to app-v1 traffic.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!