MichaelJ on Nostr: Remote Procedure Call (RPC) is a protocol by which one bit of code can invoke ...
Remote Procedure Call (RPC) is a protocol by which one bit of code can invoke functions on a different program, even if that program is running on a different machine, as if it was just another locally defined function. There are a few flavors of RPC, but gRPC is the most common. It uses a language called protobuf to define the inputs and outputs of each function, then uses that definition to automatically generate client code by which a program can invoke that remote procedure.
TL;DR—I could write code on my laptop that seamlessly uses other code living on a server in a data center hundreds of miles away.
In this scenario, gRPC encodes the messages between my computer and the remote server in binary, and transmits up to several at a time to maintain fast processing speeds.
Published at
2024-10-07 02:01:58Event JSON
{
"id": "0742f315d75cc5c8a0fc38a93444ca57a92200e0355d1c5ec4bc5752019662dd",
"pubkey": "70122128273bdc07af9be7725fa5c4bc0fc146866bec38d44360dc4bc6cc18b9",
"created_at": 1728266518,
"kind": 1,
"tags": [
[
"e",
"aa9ccc0484ff5e2657e19a67d93de461a8625e396c9f83438e46f278fdb9b123",
"",
"root"
],
[
"e",
"1895d8d1d3a699b116eef8feb7df6c0926262e8ec7cb191cd53ddc4498fe32dc"
],
[
"e",
"21f7e12ab36ed38bd1782b43cc0f2736ed19b799e4a94e0259b256c2e71fbd6c",
"",
"reply"
],
[
"p",
"e88a691e98d9987c964521dff60025f60700378a4879180dcbbb4a5027850411"
],
[
"p",
"70122128273bdc07af9be7725fa5c4bc0fc146866bec38d44360dc4bc6cc18b9"
],
[
"p",
"7776c32d4b1d1e8bf2a96babeb43ad9ade157bd363d89b87fb63e6f145558888"
]
],
"content": "Remote Procedure Call (RPC) is a protocol by which one bit of code can invoke functions on a different program, even if that program is running on a different machine, as if it was just another locally defined function. There are a few flavors of RPC, but gRPC is the most common. It uses a language called protobuf to define the inputs and outputs of each function, then uses that definition to automatically generate client code by which a program can invoke that remote procedure.\n\nTL;DR—I could write code on my laptop that seamlessly uses other code living on a server in a data center hundreds of miles away.\n\nIn this scenario, gRPC encodes the messages between my computer and the remote server in binary, and transmits up to several at a time to maintain fast processing speeds.",
"sig": "207e4d10c61deed1d29c9ec293abc31b6edd159f405de1e4ac7d428bd43736dd1a8bc34eff99784d8706898bb4374be53d821f9bafbe5021bba2742c55be6584"
}