IntermediateAbout 15 min

    REST, RPC & Service Calls

    Read the full article on Substack

    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.

    A remote callClientServer
    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.

    1/13

    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

    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 here

    Breaks someone

    Drop items here
    6 pieces left to place

    Quiz

    8 questions
    Question 1 of 8
    Score: 0

    What does a client know after a request times out?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going