REST, RPC & Service Calls
8 min read.
See why a timeout does not mean failure, how a blind retry charges twice, how an idempotency key fixes it, and which API changes survive old clients.
Think of it this way: Calling a service is like posting a letter and waiting for a reply. If no reply comes, you cannot tell whether the letter was lost, the answer was lost, or the other person is just slow. Sending the same order again might get you two deliveries, unless you write an order number on it so they can spot the duplicate.
- Client sees
- nothing yet
- Charges made
- 0
A function call returns or throws. A call over a network has a third outcome: nothing comes back.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Safe or breaking API change?
Sort each change by whether old and new clients and servers can keep working together.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Safe
Drop items hereBreaks someone
Drop items hereQuiz
8 questionsWhat does a client know after a request times out?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.