You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/11/08 00:35:13 UTC

[GitHub] [apisix] DenisMedeiros commented on issue #8271: help request: different paths for each upstream node

DenisMedeiros commented on issue #8271:
URL: https://github.com/apache/apisix/issues/8271#issuecomment-1306426947

   > It's tough to do this, unless you write your own balancer.
   > 
   > By the way, could you explain the reason that you want to do this?
   
   The reason is that we are trying to forward the request to cloud functions, deployed in 2 different datacenters. It's the exaxt same function in the 2 locations but the cloud function platform generates a different/ unique URI - that's why we were trying to find a way to implement this.
   
   For example:
   
   https://us-east1.functions.example.com/api/v1/namespaces/<unique-id>/actions/v1/action"
   https://us-east2.functions.example.com/api/v1/namespaces/<unique-id>/actions/v1/action"
   https://us-east3.functions.example.com/api/v1/namespaces/<unique-id>/actions/v1/action"
   
   As you can see, the only problem is this `unique id` that the cloud function platform generates and we cannot enforce to be the same across the datacenters.
   
   I was wondering if there would be a way to modify a request (using one of those plugins) to replace that `unique id` depending on the selected node by the upstram load balancer. Would this be possible? If not, we will implement an external load balancer then.
   
   Thanks for your help.
   
   
     


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org