Hi, We also have a similar issue here. Just read this thread, and still looking for a proper solution.
Cheers, Jianping On Thursday, January 7, 2016 at 1:00:00 PM UTC+8, Tim wrote: > > I am interested in solving this too. In my case the client is behind a > firewall and the server is in the cloud. The problem is that the server > also needs to make RPC calls to the client, so they both act as server and > client at the same time. From the client to the server it is easy, the > client just dials the server normally. The other way is problematic because > of the firewall, so the server cannot initiate a connection to the client. > Is it possible for the client to dial a connection to the server and be in > charge of maintaining it (re-establishes it when it breaks, etc) and to use > the socket with a Server on the client side, and the server side socket > with a Client on the server side? What needs to happen for this to work? > Custom dialer? Custom transport? > Ideally I'd like to use a single connection for bi-directional RPC calls, > but if that's not possible, maintaining 2 connections (both started form > the client side) would be fine too for now. > > On Wednesday, November 18, 2015 at 4:33:50 AM UTC-8, George Antoniadis > wrote: >> >> Hey all. >> >> I'm interested in using grpc to have some servers in golang talk to each >> other. >> >> The concept would be to try and have a persistent connection between >> servers and use the same connection for requests on either end. >> 1. From what I understand it is possible for grpc to send requests from >> either side of the connection, is that right? >> >> 2. Is there a pattern/best-practice/or-something-else on how such a >> implementation would be done? >> The easiest way I guess would be that when a server wanted to make a >> request to a server, it checks if the connection with that serer is active >> and if not it connects, but it seems kinda crude. >> >> 3. Finally, is grpc right for a server to server use or am I abusing it? >> >> Thank you very much in advance and I do apologise if this is a bit off >> topic for this group. >> George >> > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/4a95af85-cdb6-40e9-a0a0-36a0abb8816b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
