Hi, I'm trying to understand how to convert an application using 
synchronous RPC to asynchronous. My old method for synchronous 
communication was calling RegisterService on all my services, then calling 
Wait() on the server after it was created. The gRPC library would decide 
which Service function to call from that point. 

When I look at the async C++ example, the beginning looks very similar 
where the services are added, and BuildAndStart is called. But instead of 
calling Wait(). HandleRpcs is called as the busy loop. However, it looks 
like HandleRpcs is only handling a single type of service. I don't see any 
examples of adding multiple services anywhere, so I'm not sure how that's 
handled. Does it imply that I would have to make essentially a separate 
ServerImpl class for every type of service?

-- 
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/c00823e4-2e88-4390-9ac6-078277c42697%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to