DELAPARRA
Index
Color
NL
Category: Core glossary

Stateless

Explained by Updated

What is Stateless?

Stateless: A system that does not retain information about previous interactions. Each request is treated independently. REST APIs are stateless by design. A stateless system keeps no memory of previous requests. Every request carries everything needed to handle it, such as an authentication token and the relevant parameters. Stateless web servers are easy to scale and replace. Any server can handle any request, so you can add servers under load or restart one without users noticing. REST APIs are designed this way.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Stateless

What should you keep in mind with Stateless?

Applications still have state, of course: logged-in sessions, shopping baskets, uploads. The trick is keeping it out of the individual server, in a database, Redis or object storage that all servers share. A server that stores sessions in its own memory or files on its own disk breaks this, and users get logged out when their next request lands on another server.

At a glance

CategoryCore glossary
Explained by
Updated

More Core glossary terms

All terms starting with S

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.