Comments (4)
I still do not understand why you require an interceptor ... It was deliberate to abandon interceptor in our design.
from grpc-go.
NP. Let me try to explain better.
In TCP socket, we send bytes:
send(b []byte)
Now that we have protobuf and grpc, we want to send messages instead.
send(msg proto.Message)
The send(msg) API is provided by the framework, and message should be defined by user.
I wonder how can we do it efficiently without letting user define msg/rpc on their own?
from grpc-go.
pls tell me how interceptors can help you address this issue?
We typically provide send(b []byte) to users instead of send(proto.Message)
which provides more flexibility and the framework should not care what
users will to transmit.
If you are thinking about the encoding efficiency (e.g., memory alloc and
string copying), I think it is the work of protobuf should take care of.
And I guess it is doable but it does not do because it will introduce
tremendous complexity regarding memory model.
On Mon, May 11, 2015 at 1:55 PM, Hongchao Deng [email protected]
wrote:
NP. Let me try to explain better.
In TCP socket, we send bytes:
send(b []byte)
Now we have protobuf and grpc, we want to send messages instead.
send(msg proto.Message)
The send(msg) API is provided by the framework, and message should be
defined by user.I wonder how can we do it efficiently without letting user define msg/rpc
on their own?—
Reply to this email directly or view it on GitHub
#187 (comment).
from grpc-go.
I guess calling Invoke(...) directly can fit your needs?
from grpc-go.
Related Issues (20)
- Flaky test: TestServerSideXDS_WithValidAndInvalidSecurityConfiguration HOT 1
- Flaky test package: test/xds HOT 4
- When handle unary grpc requests, it seems End-of-Stream is not neccesary, why? HOT 4
- How to get message size for RPC call HOT 1
- Streaming RPC handlers are left running after client connections closed and server is stopped HOT 3
- XDS Ring Hash inconsistent after client and server restarts HOT 7
- `stats.Handler`'s `HandleRPC` is called with invalid context HOT 12
- when reference the 1.60.1 version from a go module which use bazel to build. got the erros below. HOT 1
- stats.InPayload.RecvTime not accurate HOT 1
- No timeout for connection backoff except RPC timeout? HOT 4
- No timeout for connection backoff except RPC timeout in client-side? HOT 5
- Exported var/type/method missing comment
- net.Conn is nill, when i use grpc.WithContextDialer
- use the google.golang.org/protobuf module instead HOT 2
- stats: peer is not populated for all HandleRPC client callbacks HOT 7
- Wait for ready with "readiness timeout" HOT 16
- How to catch the panic of sendResponse? HOT 5
- Response is not compressed when grpc-accept-encoding header contains spaces between values
- On AWS ALB a gRPC stream CloseSend() without a prior Send() is not received by server HOT 1
- Add new function to grpc ClientConn HOT 2
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 grpc-go.