Concept of Stateless REST

  • Note if the REST is Stateful then there has to be handshake between two parties which again takes extra steps and can cause a delay in communication.
  • The REST architecture is designed in such a way that the client state is not maintained on the server. This is known as statelessness. The context is provided by the client to the server using which the server processes the client’s request. The session on the server is identified by the session identifier sent by the client.
  • The concept we mostly use is of JWT here, the time until which the JWT is valid is mentioned inside the token itself

Leave a Comment