gRPC server for micro services how to?

54 views
Skip to first unread message

Greg Keys

unread,
Sep 16, 2018, 8:33:31 PM9/16/18
to grpc.io
I'm brand new to gRPC coming from websockets using crossbar.io

The way we are used to working is basically services and clients all connect to a single router which facilitates communication between services and consumers/clients

Can someone tell me how gRPC web clients talk to multiple backend services via a single connection, is it more like REST where if a client wants to call the auth service is posts to /auth and to get a profile it does a get request to /profile
or do I need to create a single backend service to act as a server/router which other services register to?

Spencer Fang

unread,
Sep 17, 2018, 12:20:32 PM9/17/18
to gk...@mumbacloud.com, grp...@googlegroups.com
Hi Greg,
gRPC micro services are not much different form REST micro services. Each micro service can exist independently inside your site. When a web client tries to access a particular service, what typically happens is traffic would go through a reverse proxy deployed at the edge of your site. The reverse proxy is where the web client has a single connection to, and it is responsible for routing requests to the correct micro service. Some examples of reverse proxies are envoy and nginx. Hope that helps!

--
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 post to this group, send email to grp...@googlegroups.com.
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/00e556a5-5ae4-4403-8657-55c7d106849b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Spencer Fang

Greg Keys

unread,
Sep 17, 2018, 7:16:23 PM9/17/18
to grpc.io
Spencer, That is the best news I have heard all day, wonderful. Thanks for clarifying that for me.
Reply all
Reply to author
Forward
0 new messages