So how do SSJS and the LiveWire database access engine stack up against CGI? SSJS is faster and more efficient for web applications, particularly those that access a database. In internal Netscape tests, SSJS was three times faster than Perl CGIs for database access. There are distinct advantages and disadvantages to each approach, as detailed in the following table.
Provides state management capabilities.
Provides built-in database access via the LiveWire Database Service.
Includes the Visual Development Tool (VJS).
Allows code reuse between client and server applications.
Extends functionality using Java (via LiveConnect).
Caches database connections for faster performance.
Runs three times faster than CGI.
Scales better than CGI.
Is very portable -- can be run on any CGI-enabled web serer.
Can be programmed in a variety of languages (C, Java, Perl, and so on).
Requires that the application run in-process with the web server.
Is slow, as a separate process is spawned every time the CGI is executed (which is taxing on the server).
Makes state management difficult to implement.
Makes database access available only via separate libraries.