Resource-oriented architecture
{{short description|Architectural pattern in software design}}
In software engineering, a resource-oriented architecture (ROA) is a style of software architecture and programming paradigm for supportive designing and developing software in the form of Internetworking of resources with "RESTful" interfaces. These resources are software components (discrete pieces of code and/or data structures) which can be reused for different purposes. ROA design principles and guidelines are used during the phases of software development and system integration.
REST, or Representational State Transfer, describes a series of architectural constraints that exemplify how the web's design emerged. Various concrete implementations of these ideas have been created throughout time, but it has been difficult to discuss the REST architectural style without blurring the lines between actual software and the architectural principles behind it.
In Chapter 5 of his thesis, Roy Fielding documents how the World Wide Web is designed to be constrained by the REST series of limitations. These are still fairly abstract and have been interpreted in various ways in designing new frameworks, systems, and websites. In the past, heated exchanges have been made about whether RPC-style REST architectures are RESTful.Chapter 5 of Fielding's dissertation is [http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm "Representational State Transfer (REST)"].{{Citation |last1=Fielding |first1=Roy T. |last2=Taylor |first2=Richard N. |date=May 2002 |title=Principled Design of the Modern Web Architecture|url=http://www.ics.uci.edu/~taylor/documents/2002-REST-TOIT.pdf |journal=ACM Transactions on Internet Technology |volume=2 |issue=2 |pages=115–150 |doi=10.1145/514183.514185|issn=1533-5399}}
Guidelines for clarification
The Resource Oriented Architecture, as documented by Leonard Richardson and Sam Ruby in their 2007 book RESTful Web Services,{{sfn|Richardson and Ruby|2007}} gives concrete advice on specific technical details. Naming these collections of guidelines "Resource Oriented Architecture" may allow developers to discuss the benefits of an architecture in the context of ROA.
Some guidelines are already common within the larger REST communities such as: that an application should expose many URIs, one for each resource; and that processing cookies representing IDs in a server-side session is not RESTful.
Existing frameworks
Richardson and Ruby also discuss many software frameworks that provide some or many features of the ROA. These include
JBoss RESTEasy,{{Cite web|url=https://resteasy.github.io/|title=RESTEasy - JBoss Community|website=resteasy.github.io}}
Spring,{{Cite web|url=https://spring.io/guides/tutorials/rest/|title=Spring REST Tutorial}}
Apache Wink,{{Cite web|url=http://wink.apache.org/|title=Index|website=wink.apache.org}}
Yii2,{{Cite web|url=https://www.yiiframework.com/|title=Yii Framework|website=Yii Framework}}
Play Framework,{{Cite web|url=https://www.playframework.com/|title=Play Framework - Build Modern & Scalable Web Apps with Java and Scala|website=www.playframework.com}} and API Platform.{{Cite web|url=https://api-platform.com/|title=API Platform - REST and GraphQL framework to build modern API-driven projects in PHP|website=api-platform.com}}
Web infrastructure
While REST is a set of architectural guidelines applicable to various types of computing infrastructures, Resource Oriented Architecture (ROA) is only coupled with the web. This architecture is therefore useful mostly to businesses that consider the web as the computing/publishing platform of choice.
The power of the web seems to mostly reside in its ability to lower the barriers to entry for human users who may not be highly trained in using computing machinery.{{dubious|date=February 2022}} As such, the web widens the market reach for any business that decides to publish some of its content in electronic format.
On the web, such published content is regarded as a web resource.
References
{{reflist}}
Bibliography
- {{cite book
|last1=Richardson
|first1=Leonard
|last2=Ruby
|first2=Sam
|author2-link=Sam Ruby
|title=RESTful Web Services
|date=May 2007
|publisher=O'Reilly Media
|isbn=978-0-596-52926-0
|ref={{sfnRef|Richardson and Ruby|2007}}
|url-access=registration
|url=https://archive.org/details/restfulwebservic00rich_0
}}
- {{Cite book|last1 = Lucchi|first1 = R.|last2 = Millot|first2 = M.|last3 = Elfers|first3 = C.|year = 2008|title = Resource Oriented Architecture and REST|url = http://inspire.jrc.ec.europa.eu/reports/ImplementingRules/network/Resource_orientated_architecture_and_REST.pdf|series = Scientific and Technical Research|location = Luxembourg|publisher = Office for Official Publications of the European Communities|doi = 10.2788/80035|isbn = 978-92-79-09320-3|issn = 1018-5593}}
{{Web interfaces}}