Exercise 3: Working with gRPC

Let’s test our understanding by attempting this challenge.

We'll cover the following

Let’s practice what we’ve learned so far. The solution to this exercise will be provided in the next lesson.

Problem

Create a RESTful service that uses gRPC for data exchange. Define the REST API you are going to support, but use gRPC for the communication between the RESTful server and the gRPC server—in this case, the RESTful server is going to act as a gRPC client to the gRPC server. To execute the RESTful service:

  • Open a new terminal window and execute the rServer.go code using the following commands:

Get hands-on with 1200+ tech skills courses.