[Top] [Prev] [Next] [Bottom] [Contents]

Deploying Sapphire/Web Projects


4

Introduction

A Web Application can be broken down into a number of different components:

You use Sapphire/Web to create the Application Software portion of this structure. Sapphire/Web can produce a number of different types of application software.

These include:

Application Server Features

For Sapphire/Web Application Servers the follow points apply:

To convert your project from one type of executable to another is very simple. If you have created your project entirely within Sapphire/Web you need only alter a few settings in the Project Options dialog box and re-create your application. It will now be created in the new format.

Sapphire/Web comes with a set of extra programs and DLLs to allow you to create application servers in any of the categories listed above. These supply you with

After this, only the step of "registration" remains. This step is necessary to inform your web server of the existence of the application server. This is done by modifying the Application Servers configuration file with the Application Server Manager Console program.

For an Oracle Web Cartridge the process is similar; you move the .DLL to the proper subdirectory and use the Oracle Web Server Administration application to tell it about this new Web Cartridge.

Session Affinity

If an application server is configured to use Session affinity than you can be sure that a user accessing your application will always contact the same application server during a session. This is useful if you want to keep some kind of state information in the memory of the application server.

Load Balancing

All Web Server Extensions (WSE) provide a form of load balancing to spread the load of users accessing an application. This is achieved by using two scheduling algorithms. The default algorithm is used when an application server is defined to not use session affinity. You can think of this algorithm as an on demand scheduler. When a WSE gets a request to connect to an application server it searches the application server configuration file for the first instance that is running and is not in use and connects that instance. If all running instances are busy a new instance will be started to handle the new request.

If all instances defined in the configuration file are in use and already started than it will connect to the instance with the least number of queued connections. The benefit of this algorithm is that application server instances are launched to handle the current load of users on the application.

Thus if you define five instances in the configuration file and five different users access this application at different times, only one application server will be started. The second scheduling algorithm is the similar to the one above except it ensures that a user of an application always connects to the same instance and always starts a new instance with a new user until the maximum number of instances defined in the configuration file are started. This is needed for session affinity. Note that this algorithm can cause more instances to be started on your server than the one above so make sure you only set the session affinity flag if you are storing information inside of an application server instance. You do not have to use session affinity if you are using the Sapphire/Web State Server.



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.