What does long-lived network-based applications that span multiple organizations means in REST?

ⅰ亾dé卋堺 提交于 2020-08-10 01:52:11

问题


I came across many tutorials to understand each and everything of REST.

My Understanding - REST is an architectural style for network-based applications (I mean service available for a client by the server and both communicate each other based on the network)

is my understanding is wrong?

What exactly long-lived network-based applications that span multiple organizations means in REST according to Roy T Fielding https://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven#comment-742

I am confused with the term long-lived network-based applications.

So if I create an API which follows constraints of REST but not available on the web, but can be accessed within a network (For example, an API to get marks of students in a school but not available in the internet, just available within the school and accessed through HTTP://SERVERIP) - is this cannot be a REST API?


回答1:


is this cannot be a REST API?

No, that's fine.

One of the key ideas is this: that we have an agreed upon standard for the self descriptive messages between the client and server. In the case of the Web, that standard is HTTP. HTTP was (for the most part; see chapter six for some exceptions) designed to satisfy the REST architectural constraints. Because we have that standard, we can point a browser (implemented by Google) at a web server (implemented by Oracle) via a reverse proxy (implemented by the Apache Software Foundation) and it all "just works".

If you take those pieces, and put them onto an isolated network that you control, it still all "just works".

what does long-lived means in layman terms, please...

Roy buried his explanation for that in the comments.

REST is software design on the scale of decades: every detail is intended to promote software longevity and independent evolution.

Pretty much everything on the web understands HTTP/1.1 (1999), which builds upon HTTP/1.0 (1996), which in turn builds on HTTP/0.9 (1991).



来源:https://stackoverflow.com/questions/63325558/what-does-long-lived-network-based-applications-that-span-multiple-organizations

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!