concept RPC in category microservice

appears as: RPC
Microservices Security in Action

This is an excerpt from Manning's book Microservices Security in Action.

public void updateInventory(OrderEntity order) {
UpdateReply updateResponse;
try {
updateResponse =
inventoryBlockingStub.updateInventory(orderBuilder.build());
} catch (StatusRuntimeException e) {
    logger.log(Level.WARNING, "RPC failed: {0}", e.getStatus());
    return;
  }
}

RPC stands for remote procedure call. As its name implies, RPC is a protocol whereby a program can execute a function that’s running on a remote host/computer on the network. RPC typically involves generating method stubs at the client side that make it look like a local function invocation, as the following example shows, but it’s actually remote:

Figure I.1 When communicating over RPC, the client and server both use stubs to interface with each other.