concept RPC in category microservice
appears as: RPC

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: