RAG
AI in the stackSearch first, then answer from what was found.
Retrieval-augmented generation: find relevant passages in trusted content, put them in the prompt, and have the model answer from them with citations. When results are bad the culprit is usually the search step, not the model.
See also Embedding, Grounding, Hallucination
Rate limit
BackendA cap on how often you may call something.
A restriction on request frequency, signalled by a 429 status. Exists to keep one caller from consuming a shared service. Respect it by backing off rather than retrying immediately.
See also Status code, Retry, Exponential backoff
Region
InfrastructureWhere in the world your machines physically are.
The geographic location of a datacentre. Determines the unavoidable minimum latency for users, and where your data legally resides.
See also Latency, Edge
Rendering
FrontendTurning content into pixels.
The browser converting HTML, CSS and JavaScript into a visible page. Server-side rendering does the first pass on the server so content exists in the HTML immediately rather than after scripts run.
See also HTML, DOM, Payload
REST
BackendAn API style organised around things.
Endpoints named after resources (/users, /orders) with HTTP verbs saying what to do to them. Highly cacheable and easy to inspect. A rich screen may need several calls.
See also GraphQL, RPC, Endpoint
Retry
InfrastructureTrying again after a failure.
Reasonable for 5xx errors and network failures, pointless for 4xx. Must be paired with increasing delays and with idempotency, or it turns a lost response into a duplicate action.
See also Idempotency, Exponential backoff, Status code
Rollback
InfrastructurePutting the previous version back.
The cheapest available response to a bad deploy and the correct first move in most incidents. Restores your code, not your data: deleted rows and sent emails do not come back.
See also Deploy, Migration, Incident
Round trip
FrontendOne journey there and back across the network.
The unit that actually determines perceived speed. Eight sequential round trips is slow no matter how fast the connection, which is why chattiness matters more than bandwidth.
See also Latency, DNS
RPC
BackendCalling a named function on another machine.
An API style where you invoke an action directly rather than modelling resources. With shared types, a contract break becomes a build error, which is why it suits an app talking to its own backend.
See also Server function, REST, API