Client-Server Communication Patterns

Client-server communication: polling, server-sent events, WebSockets and webhooks, chosen by who sends and how often.

  • 10 cards
  • 5 questions
  • About 16 min
  • Beginner to Intermediate
Share

A client that wants new data can ask for it, or the other side can tell it, and the five common patterns differ in who starts and what stays open between messages. The topic opens on a map of all five, then gives each one the same treatment: who starts, the messages in order, what it costs the server, and when it fits. A comparison turns direction and frequency into a choice, and a gotcha shows what happens to a webhook while your endpoint is down, using two real senders that behave differently. Practice applies the choice to four features.

Contents

10 cardsnot started