Repaso
Español
Backend & APIsIntermediateAPI-19

Which REST constraint means each request carries all information needed to process it?

Options

  1. Uniform interface
  2. Statelessness (Correct option)
  3. Cacheability
  4. Layered system

Answer

Statelessness

Why

Stateless: the server does not remember anything about the client between requests. Each request brings everything needed, e.g. an auth token.

Benefit: any server instance can handle any request, so you can add servers behind a load balancer easily.

User data still lives in the database; 'stateless' refers to the server process memory.

Remember

Stateless = every request is self-contained.

Key terms

Practice this question in Repaso