Deployment architecture
Web script framework is designed in such a way that it can be hosted in different environments not limited to just the Alfresco repository server.
Web Script Runtime plays a key role in providing encapsulation of execution environment of the web script and provides different implementations to execute web scripts. The most common way to access the web script is through HTTP/HTTPS requests and Servlet Runtime is the most commonly used Web Script Runtime that is responsible for executing web scripts accessed through HTTP requests.
Web Script Runtime makes it easy to execute RESTful Alfresco web scripts in various ways such as execution in JSF components, portlets using their own way to invoke the Alfresco web scripts.
The typical deployment architecture would be to have all the data web scripts hosted in the Alfresco repository server. The frontend clients using the backend repository can use presentation web scripts to build up the frontend user interface and presentation...