June 2017
Beginner to intermediate
274 pages
6h 49m
English
The second way we can interact with our microservice is to create another microservice that depends on it, as shown in the following code example found in the test.py file:

The TestService class periodically exercises the personservice. It also demonstrates how to link one service to another, so that one of them is able to access the other. The key is this line, which creates an RpcProxy instance on the class:
person = RpcProxy('person')
When the service runs, it's able to access the functions of the specified remote service through that object. To run our tests, we need ...
Read now
Unlock full access