UI and server
Where the screen meets the server.
Words
All learned. See them in History.
-
Cursor pagination
Each page asks for the items after the last one you already have, using a cursor such as that item's id.
-
Debounce
Wait until something has stopped happening for a short time, then act once.
-
Offset pagination
Each page skips a number of rows and takes the next few, so page 3 with 20 per page means skip 40, take 20.
-
Optimistic update
The screen shows the result of your action right away, before the server has confirmed it.
-
Polling
The page asks the server "anything new?" again and again on a timer, for example every 5 seconds.
-
Rate-limit message (429)
What the user sees when the server says "too many requests, slow down" (HTTP status 429).
-
Request timeout
The longest time the page or the server will wait for an answer before giving up.
-
Retry with backoff
When a request fails for a reason that may pass, try again, but wait longer before each new try (for example 1 s, 2 s, then 4 s).
-
Server-sent events (SSE)
The page opens one connection that stays open, and the server pushes a message down it each time something happens.
-
Throttle
Let something run at most once per time interval, however often it is triggered.
-
WebSocket
One connection between the page and the server that stays open and carries messages in both directions at any time.