Comments (8)
grpc-transcode
is for transcoding between regular HTTP requests and gRPC, so it is expected that the upstream response is returned in JSON.
It sounds like you are not looking for any transcoding but to have APISIX proxy for your request to gRPC upstream service, is that correct?
from apisix.
grpc-transcode
is for transcoding between regular HTTP requests and gRPC, so it is expected that the upstream response is returned in JSON.It sounds like you are not looking for any transcoding but to have APISIX proxy for your request to gRPC upstream service, is that correct?
At present, I am using APISIX to proxy my upstreams, and the client uses JSON as the HTTP body. Currently, grpc-transcode is enabled, so the client's input and output are both in JSON format. Now the client wants to use protobuf as the input and output, but I don't know how to configure it. I have tried some solutions, but none have been successful; using HTTP+PB requests, the upstream can receive and process them, but APISIX always returns JSON to the client. What I want is a route configuration that can return protobuf. Thanks
from apisix.
APISIX always returns JSON to the client. What I want is a route configuration that can return protobuf.
I'm not aware if APISIX can do this. @shreemaan-abhishek thoughts?
from apisix.
no there is no such feature. do you mean to say that upstream returns PB but APISIX modifies it to JSON?
from apisix.
no there is no such feature. do you mean to say that upstream returns PB but APISIX modifies it to JSON?
No. All PB. No JSON. Do you know how to config APISIX route? Send PB and receive PB. Thank you.
from apisix.
No. All PB. No JSON.
I meant to ask, does the upstream return JSON even when not using APISIX?
from apisix.
No. All PB. No JSON.
I meant to ask, does the upstream return JSON even when not using APISIX?
upstream return pb, protocol is grpc
from apisix.
@snowleopard331, can you prepare a github gist/repo with a self contained example to reproduce this issue? I will take a look at this when I am free.
from apisix.
Related Issues (20)
- bug: Apisix file-logger 写入无锁,大并发情况下日志混乱串行 HOT 2
- help request: This is normal system behavior Openid-connect
- bug: yml conf could not use $env to set plugin properties HOT 2
- help request: APISIX oidc /logout not working in Firefox (unless running in private mode)
- bug: after using core.request.set_header to set the header, ctx.var still caches the old value
- bug: build script occurs error when use make undeps command
- bug: memory leak version 3.8.0
- help request: rate limit all requests per route with `limit-conn` and `limit-req` HOT 2
- help request: APISIX in K8s cannot resolve hostname in /etc/hosts HOT 4
- help request: log all request headers by http_logger HOT 7
- help request: Apisix ETCD going into Crash loop back off HOT 10
- feat: support environment variables in config-default.yaml HOT 3
- help request: What is the best way to dynamically route a cluster by token in customer plugin? HOT 3
- help request: proxy rewrite rule does not work HOT 2
- why the promethues metrics apisix_shared_dict_free_space_bytes{name="worker-events"} 0 HOT 2
- feat: As a user, I want to expand the weight in kubernetes service discovery
- bug: The command "apisix reload" sometimes causes the plugin's sock file to disappear HOT 2
- help request: want to know how to support sslv3 in apisix HOT 2
- help request: How to expose custom Prometheus metric with custom plugin
- The client secret for oidc plugin cannot be configured as environment variable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apisix.