Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Can a proxy and associated shared flows deployed to multiple environments ?

Dear Team,

One quick question

We have a high performance API proxy A which is consumed by two consumers . We are thinking of creating environment specific to these two consumers and deploy proxy accordingly. So the proxy A need to be deployed to both the environment as per requirement. Is this possible ?. I am getting an error saying "New deployment will not receive any traffic for basepath /hello-world, as this basepath is already claimed by proxy hello-world in environment eval." 

Offcourse there are other ways to build the environment but just asking if its possible to deploy a proxy to two different environments. 

Reason: Depending on the consumer traffic then respective pods serving traffic for the APIs in that environment scales up and down

Kind Regards

Arijit

Solved Solved
0 4 613
1 ACCEPTED SOLUTION

1. Can you elaborate on the TPS? 

2. Your existing configuration must have the environments in the same environment group, so this error is expected as you don't have a unique way to reach this second deployment - either the host or the API proxy base bath must be unique. ie each environment should be in separate groups.

3. By using the same environment group, this requires having separate API proxies with separate base paths. The approach seems like more an anti-pattern as this further complicates your API products, Analytics, etc.

View solution in original post

4 REPLIES 4