In this section, we will create an example of a microservice that supports the JSON-RPC protocol and has two methods. The microservice will support working as a part of a ring of microservices. We will send a message to one microservice, which will send a message to the next microservice in the ring, and that microservice will send the message further.
We will create a ring example, because if it is implemented incorrectly your microservice will be blocked, because they can't process requests in parallel like reactive services have to do.