It is just a TCP server and will add gRPC service on a different port.
  
Reading the async example, it appears that I can pass a CallData object to 
another thread using a queue (different from cq) and respond from that thread 
and finally get completion event back in the gRPC thread and I can delete the 
CallData object at that time. It should work as ‘cq’ is safe to call from 
multiple threads.
  

  
Thank you.
  

  
  

  
  
>   
> On Oct 2, 2019 at 1:19 PM,  <'Penn (Dapeng) Zhang' via grpc.io 
> (mailto:[email protected])>  wrote:
>   
>   
>   
> Is your existing server a gRPC server, or is just a TCP or HTTP server and 
> you want add another gRPC server and share the port?
>   
>  On Friday, September 20, 2019 at 6:03:22 PM UTC-7, [email protected] wrote: 
>  
> >  Hello,
> >   
> >  We have an existing multithreaded c++ server that works by passing 
> > messages between threads to avoid synchronization. Now if I add an async 
> > gRPC server, how would I pass a gRPC context to the appropriate thread and 
> > complete the call after getting a response?
> >   
> >  It is similar to someone asking how to integrate gRPC async loop with 
> > other event loops, but I have not seen any solution. For example, libevent 
> > has ‘runInEventThread’ method to pass a function to the event thread to 
> > execute.     
>
>
>
>  --
>  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] 
> (mailto:[email protected]).
>  To view this discussion on the web visit   
> https://groups.google.com/d/msgid/grpc-io/1334949c-a7a4-40ce-a670-0c11d53cf496%40googlegroups.com
>  
> (https://groups.google.com/d/msgid/grpc-io/1334949c-a7a4-40ce-a670-0c11d53cf496%40googlegroups.com?utm_medium=email&utm_source=footer).
>              

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/536d0cbc-75f4-4709-95c5-7fb58257a8a5%40iPhone.

Reply via email to