🔌Remote Procedure Call (RPC)
Also known as RPC, Remote Call
You call a function in your code, but it runs on a far machine.
Think of it like
Think of it like calling a friend and asking them to do a sum for you. It feels like doing it yourself.
Example
Emma's checkout calls chargeCard on the payment service. It looks like a normal call, but it goes over the network.
Why it matters
Definition
Common mistake
Key takeaways
- 1Looks like a function. getUser(42).
- 2Runs somewhere else. Across the network.
- 3Built on actions. Not on things, like REST.