| LSAPI: LiteSpeed Server Application Programming Interface |
|
IntroductionLiteSpeed SAPI is a protocol designed specifically for communication between LiteSpeed web server and third party web application that runs in it own process. LiteSpeed SAPI is designed to be the fastest server API for inter-process communication between LiteSpeed Web Server and third party web application, protocol overhead has been reduced to minimum. Comparing to FastCGI protocol, LiteSpeed SAPI has about 25% speed advantage over FastCGI for simple "Hello World" application. Does not like some server API which allow you to embed your module inside the web server process, LiteSpeed SAPI application run in its own process and talk to web server through a socket connection. The main benefit of doing this is better reliability and security, a buggy application will not able to crash the whole web server or affect other application. Applications can be started with different user IDs (usually called "suEXEC"), file system can be easily secured. An API library written in C is available for building third party web application using LiteSpeed SAPI. The protocol detail will be published later. Currently, we have the following LSAPI modules for third party scripting languages:
|