Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the protocol of RPC

Shulou Source: shulou.com Published: 2022-05-31 19:28:30 09月19日 Update

This article will explain in detail what the RPC protocol is. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

RPC-- remote procedure call protocol is a protocol that requests services from remote computer programs over the network without knowing the underlying network technology. The RPC protocol assumes the existence of certain transport protocols, such as TCP or UDP, to carry information data between communication programs. In the OSI network communication model, RPC spans the transport layer and the application layer. RPC makes it easier to develop applications, including web-based distributed multiprograms.

RPC adopts client / server mode. The requester is a client and the service provider is a server. First, the client invocation process sends a call message with process parameters to the service process, and then waits for the reply message. On the server side, the process stays asleep until the calling message arrives. When a call message arrives, the server gets the process parameters, calculates the result, sends the reply message, and then waits for the next call message. Finally, the client invokes the process to receive the reply message, obtains the process result, and then calls execution to continue.

The whole architecture of Hadoop is built on RPC (org.apache.hadoop.ipc).

Main communication interfaces:

ClientProtocol:

Is the interface between the client (FileSystem) and NameNode.

DataNodeProtocol:

It is the interface between DataNode and NameNode.

DFSClient:

Is an object that calls the NameNode interface directly.

User code calls the DFSClient object through DistributedFileSystem to deal with NameNode.

This is the end of this article on "what is the protocol of RPC". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Information processes services programs clients communications interfaces servers networks clients that is articles parameters clients objects more results transmission applications replies Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Technology macOS Redmi Shulou Information