The twitchtv/twirp RPC framework affords many of the benefits of GRPC, including building models with protocolbuffers (https://developers.google.com/protocol-buffers), and allows for communication over HTTP 1.1. It can also communicate using JSON, so it's possible to use the curl command to communicate with a twirp RPC service. This recipe will implement the same greeter as the GRPC section before it. This service takes a greeting and a name and returns the sentence<greeting> <name>!. In addition, the server can specify whether to exclaim!or not..
This recipe won't explore the other features of twitchtv/twirp, and will focus primarily on basic client-server communication. For more information on what is supported, visit their GitHub page (https://github.com/twitchtv/twirp).
Getting ready
After completing the initial setup steps mentioned in the Technical requirements section at the beginning of...