Remote Procedure Calls vs. Local Procedure Calls

rpc
19,472

Solution 1

Read their respective Wikipedia pages:

RPC - https://en.wikipedia.org/wiki/Remote_procedure_call

LPC - https://en.wikipedia.org/wiki/Local_Procedure_Call

Everything is explained there. First put some effort into it and if you get stuck you can still pose a non-trivial questions.

Differences:

  • RPC is slower than LPC since it uses the network to invoke the method.
  • With RPC the procedure call can be executed on a remote machine which can be addressed in several ways.
  • The parameters and return value need to be serializable (to use java terminology).
  • RPC's can fail due to network issues.
  • RPC's need to be set up before using them.
  • The language used to call the remote procedure and the language implementing the remote procedure are not necessarily the same.
  • and more.

Solution 2

In RPC, programs can be executed from a different computer while in LPC, programs are executed by the host computer.

Share:
19,472

Related videos on Youtube

Gimhani
Author by

Gimhani

Updated on September 15, 2022

Comments

  • Gimhani
    Gimhani over 1 year

    What are the differences between RPC (Remote Prpcedure Calls) and LPC (Local Procedure Calls)?

  • Gromski
    Gromski over 8 years
    Ditto on the effort. At least quote some relevant passages from those pages, don't just link to them. This is a comment at best, not an answer.
  • Silver
    Silver over 8 years
    This is also a vague question which cannot be answered in a finite amount of time nor will the answer be useful to anyone. I added some differences as the question asks.
  • Gromski
    Gromski over 8 years
    Agreed. Some things simply cannot and should not be answered.
  • Silver
    Silver over 8 years
    Let's hope the question is edited to be useful. I will modify my answer accordingly.