February 2020
Intermediate to advanced
404 pages
8h 42m
English
In Chapter 6, Working with Protocol Buffers and gRPC, where we discussed protocol buffers, we mentioned that a server and client should agree on the same protocol buffer. In the same way, Go Micro expects the service and client to use the same .proto file—in our case, encryption.proto. A client can be another service that is requesting some information.
We can build clients using Go Micro. It includes all the necessary constructs to connect and make RPC calls to a microservice. Our plan is to create a client and ask the service to encrypt and decrypt messages. Those requests will be RPC calls. Let's see the steps for creating and using a Go Micro client, as follows:
Read now
Unlock full access