gRPC with a Golang Server and a Python Client


In this golang article, we are going to learn how to make a simple Golang gRPC server and the Python stub (gRPC client) to use that service. As a bonus, we will learn how to work with the partial update usingĀ Fieldmask.

Overview:

  • Python-based gRPC client makes the corresponding RPC call for its requirement.
  • Golang-based gRPC Server handles the CRUD operations (in our example we are maintaining the Employee details. We can create, read, update and delete the Employee details.)

Note:

In this project the writer is not going to use any kind of databases to store the employee details. To keep this project simple, just used in-memory store on the server side to store the values. Our main focus area is gRPC Server and Client implementation in Golang and Python respectively. (so omitted the database part)