Hi alvin,

I am familiar with both FastCGI and servlet technology, servlets add an
extra layer of functionality on top of FastCGI-like technology.

FASTCGI provides a socket-based connection from a web server to a persistent
daemon.  The web server forwards HTTP requests to the daemon via FastCGI and
FastCGI returns the HTTP response from the daemon to the web server.  The
protocol implement by FastCGI daemons is an enhanced version of the CGI
protocol.  One advantage of FastCGI is that is doesn' take much to convert
an existing CGI application to a FastCGI application and FastCGI is much
faster and more efficient than CGI.

Some servlet engines, like Apache JServ (http://java.apache.org), are based
on a technology similar to FastCGI (a web server tals to a daemon via a
socket connection) except that the daemons implement the Java Servlet API so
that the daemon can load and run Java Servlets.   The Servlet API provides
some extra base functionality to Servlets, for instance, a mechanism for
state management.

BTW, FastCGI daemons are not multithreaded (at least the freeware version
isn't).  You'll probably get better performance from a servlet engine.
OTOH, I think that FastCGI will work on some platforms where Servlet engines
are not yet available(like BSDI BSD).

hope that helps,
ted stockwell

> -----Original Message-----
> From: #ONG YEW SOON# [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 17, 1999 9:40 PM
> To:   [EMAIL PROTECTED]
> Subject:      Difference between FastCGI and Java Servlets.
> Importance:   High
>
> Dear all,
>
>         I am a newbie to servlets and fastcgi. I was wondering what is the
> difference between them. After reading a couple of web-sites, it seems to
> me
> that both has the advantage of reduction in server resources through
> multi-threading.
>
>         Besides, the FastCGI only requires a server plug-in and is also
> back-compatible with CGI.
>
> Please, can anyone clear my doubts on this. Thank you.
>
> cheers
> alvin
> Don't Worry.... Be Happy!!!  ;-)
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to