How do I make my Web Application stateless yet still do something useful?

后端 未结 5 1313
离开以前
离开以前 2020-12-09 11:04

I\'ve seen this advice...

ideally the web should follow the REST principle and be completely stateless. Therefore a single URL should identify a singl

5条回答
  •  时光说笑
    2020-12-09 12:05

    If you want to do Web forms, that's cool. If you want to do REST that's cool too. But please for the love of everything sacred, please don't attempt to adhere to the principles of REST using Web Forms.

    Just to clarify this point further, I don't believe webforms is a wise choice for REST because the conceptual model that WebForms is based on is one where you abstract away the web. It was built to emulate the VB development model.

    REST embraces HTTP and the distributed nature of web applications. The two approaches are not compatible.

提交回复
热议问题