Reducing the Number of RPCs

Remote procedure calls (RPCs) allow two processes to communicate transparently over a network. Although RPCs are essential to client-server architecture, they can cause significant network overhead. When a message is sent, it is enclosed within an envelope of information that is required for addressing, routing, and network protocol. This extra information and the time required to process it is called functional overhead. For example:

An excessive number of RPCs leaves the server with less time to process internal requests, which affects the server’s performance and scalability. Minimizing the number of RPCs for your application improves response time for clients, and also improves the server’s overall performance.

    To reduce the number of RPCs