Architecture overview
The architecture of the Genero Application Server uses dispatchers and proxies for optimal reliability, performance and integration in Web servers.
The role of the dispatcher is to forward each new incoming request to the appropriate proxy (uaproxy or gwsproxy). The dispatcher handles the GAS configuration and keeps a persistent session table of all proxies it has started. In case of failure, the web server restarts the dispatcher, which uses the session table to reconnect to the proxies (and therefore to the applications).
Components
- Web Server
- GAS Dispatchers
- VMProxies
- DVMs
- Database Server
How it works: the high-level overview
-
In order to request an application, the end-user enters a URI that specifies which application to launch (based upon the GAS configuration file and application configuration files). For example, the alias to serve up the Genero web client demo application via a web server would be
http://mywebserver/gas/ua/r/gwc-demo
. In development environments, it is possible to exclude the Web server. For more information, see Architecture for Development (Standalone GAS).Note: The GAS supports the redirection of the start of an application or service to a delegation service to perform some controls to authenticate a user before granting access and starting an application. For more information see How to implement delegation. -
The Web server routes the request to the GAS dispatcher. GAS dispatchers refer to the connectors in charge of dispatching a GAS request to the appropriate proxy. There are different GAS dispatchers, each designed for a specific Web server. For example, the fastcgidispatch.exe is for use with FASTCGI-compliant Web servers such as Apache Tomcat®, while the isapidispatch.dll is for the Microsoft® Information Internet Services (IIS) Web Server.
-
The GAS dispatcher starts the VMProxy to handle the request. Each session requesting an application results in a VMProxy starting up; as a result, you will likely see multiple proxies running concurrently. The type of proxy started (uaproxy or gwsproxy) will depend on the application being requested. The dispatcher will route to the correct proxy and track the session and proxy information in a persistent session table. The presence of this information in the session table ensures that if a dispatcher is killed or restarted, the information needed to return to the proxy and running application is still present. For more information on the responsibilities of the GAS dispatcher, see GAS Dispatcher responsibilities.
-
The VMProxy then launches the DVM for the requested application. It handles any child DVMs, keeps the DVM connections up, and handles the requests and responses appropriate for the type of proxy. For more information on the VMProxy responsibilities, see VMProxy responsibilities.
-
The DVM interacts with the database server, as needed.