What are the benefits of a stateless web application?

后端 未结 2 1860
遇见更好的自我
遇见更好的自我 2021-01-30 10:56

It seems some web architects aim to have a stateless web application. Does that mean basically not storing user sessions? Or is there more to it?

If it is just the use

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 11:45

    From a developer's perspective, statelessness can help make an application more maintainable and easier to work with. If I know a website I'm working on is stateless, I need not worry about things being correctly initialized in the session before loading a particular page.

    From a user's perspective, statelessness allows resources to be linkable. If a page is stateless, then when I link a friend to that page, I know that they'll see what I'm seeing.

    From the scaling and performance perspective, see tsters answer.

提交回复
热议问题