Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference betweeen Tcp protocol and Remote Procedure Call?

Tags:

java

tcp

rpc

gprs

can anyone please explain which protocol is more scalable and what the difference is between

  1. TCP (TRANSMISSION CONTROL PROTOCOL),and
  2. RPC(REMOTE PROCEDURE CALL).
like image 506
Manjula Avatar asked Dec 17 '22 05:12

Manjula


1 Answers

RPC - Remote Procedure Call basically is a form of inter-process communication that allows one program to directly call procedures in another program either on the same machine or another machine on the network.

For more details see the wikipedia article: Remote procedure call

RPC runs on top of (uses) TCP. TCP allows computers to send arbitrary length data to each other with guaranteed delivery. RPC operates at the same level as POP, SMTP, and other protocols. Those protocols also run on top of TCP.

TCP is a lower level protocol. Since RPC runs on top of TCP your question about scalability is not relevant.

like image 120
hookenz Avatar answered Apr 25 '23 04:04

hookenz