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))
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))