Exemplo n.º 1
0
def compute():
    a = random.randint(1, 20)
    b = random.randint(1, 20)
    result = mservice.call_rpc(2, "add.numbers", a, b)
    print("LOCAL => {} + {} = {}".format(a, b, result))
Exemplo n.º 2
0
def compute2():
    a = random.randint(1, 20)
    b = random.randint(1, 20)
    result = mservice.call_rpc(3, "add.numbers", a, b)
    print("[REMOTE 2] => {} + {} = {}".format(a, b, result))