GRPC Client Server Communication

212 views
Skip to first unread message

karthik karra

unread,
Feb 7, 2022, 1:04:43 AM2/7/22
to grpc.io

Screenshot 2022-02-07 at 11.29.25.png   

Hi All,

Above is the architecture I am trying to achieve. I already have a TCP connection, as shown, between TCP Server and Client. I am trying to communicate GRPC client present in public network using either Django/Flask to GRPC Server present in TCP Client. 

As mentioned I can have multiple clients connected to server. 

I am trying to figure out how the GRPC client communicates to GRPC server. 

One thing is, as GRPC uses TCP, can I use pre-established connection between TCP server and TCP Client for. GRPC communication (OR) are there any other options.

Any suggestions would be helpful.

Thanks.


Yuri Golobokov

unread,
Feb 9, 2022, 1:37:11 PM2/9/22
to grpc.io
Normally gRPC client creates its own TCP connection(s) to communicate with a gRPC server.
I am not aware of an option to reuse some existing TCP connection.
Can you provide more details on problems you are trying to solve? What is the reasoning behind this architecture? Why do you want gRPC server to be on clients?

Sanjay Pujare

unread,
Feb 9, 2022, 2:58:30 PM2/9/22
to Yuri Golobokov, grpc.io
The gRPC-on-gRPC tunnel including the reverse-tunnel use-case is described in this PR https://github.com/grpc/grpc-java/pull/3987 . You may want to look into it.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/4b950aef-059b-4efe-91b8-3f528bcfa86bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages