should i cache StreamObserver

31 views
Skip to first unread message

roc

unread,
May 10, 2018, 7:06:40 AM5/10/18
to grpc.io
i have client and server.  i need  send data from data to server and send data from server to client . 
should i cache StreamObserver both in client and server or start a server at client machine.

Penn (Dapeng) Zhang

unread,
May 16, 2018, 1:48:54 PM5/16/18
to grpc.io
I don't see any reason to start a server at client machine. Are you going to use unary calls or bi-directional streaming calls?

Assuming you are using Java, it would be helpful if you read the Client Stub and Server Stub sections in the document https://grpc.io/docs/reference/java/generated-code.html

There are also code examples in
Reply all
Reply to author
Forward
0 new messages