Answer the question
In order to leave comments, you need to log in
What is stateless?
Hello, I can't quite understand one of the REST concepts.
"Stateless"
I have information stored in the database for each request: request name, user IP, request date. If I check in the service whether the user made more than 3 requests in the last minute, does this mean that I am violating the Stateless principle?
Answer the question
In order to leave comments, you need to log in
Stateless means that between requests of one user, you do not store state on the server (not taking into account the data in the database). Each time the necessary data must be sent by the client or they must be stored in the database. If the service is deployed on multiple nodes, this will allow processing the request on any node without the additional complexity of transferring the state of this client between nodes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question