call(back)

REST, WebSocket or Server-Sent Events?

Compare REST over HTTP, WebSocket and Server-Sent Events. Which would you choose for the runtime of an AI agent that takes a request and streams its answer, and why?

Answer out loud in under a minute: a definition, one concrete example, and one pitfall or trade-off.

Hints

Hint 1

Ask who initiates messages, in which direction they flow, and what has to sit between the client and the server.

Asked at

Similar Problems4