Exercise 4: 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 your own gRPC service that implements integer addition and subtraction.

  • In the gServer.go code, incorporate the Add and Subtract functions; the remaining code has been provided for your convenience.

  • In the gClient.go code, incorporate the AddNumbers and SubtractNumbers functions; the remaining code has been provided for your convenience.

To execute the client side, open a new terminal window and run the following commands:

Get hands-on with 1400+ tech skills courses.