C++ modifying the url path

123 views
Skip to first unread message

revathi anbumalar

unread,
Mar 30, 2022, 1:34:05 AM3/30/22
to grp...@googlegroups.com
Hi Grpc Team

I am trying to redirect the traffic from grpc c++ client to server through ingress. I will create a dynamic service when it is requested. Multiple client will handle the service. To differenciate the client and route the traffic through ingress, I am trying to prefix the Path url and once it reach the ingress I will remove the path and redirect to the actual path url. To do this in c++ client, currently I am modifying the protoc generated file dynamically by changing the epath url. Is any other option is there, I feel it is not a correct change

Regards
Revathi 

revathi anbumalar

unread,
Mar 31, 2022, 10:00:39 AM3/31/22
to grp...@googlegroups.com
Hi Grpc Team

Can any one help on this. I don't want to change the generated protoc file. Is any other way to route the traffic through ingress or grpc support any api to prefix the url? 

Regards 
Revathi A

apo...@google.com

unread,
Apr 6, 2022, 2:13:23 PM4/6/22
to grpc.io
I don't fully understand the use case here, but I will point out that there is a GenericStub API (see usage example in https://github.com/grpc/grpc/blob/311648e532b55a924a334844a22993860a1b6323/test/cpp/util/cli_call.cc#L52), in which you can dynamically set the method. That might be useful here.
Reply all
Reply to author
Forward
0 new messages