by tgdrew
1 replies
Let me start off by saying that I have a loathing towards Java. Recently I've been dabbling in Java Servlets and JSPs and I've found that they are so much more efficient than CGI scripts. What are your thoughts on JSPs and servlets vs CGI's?
#cgi #dead #scripts
  • Profile picture of the author nthmarketing
    CGI
    mod_CGI
    FastCGI latest and greatest

    When JSP Servlet is requested it loads into memory and cached then when more requests are done it is handled by different threads with CGI a new process is opened for each request. JSP runs inside the web server and CGI run external of the web server creating more overhead. JSP when compiled can be moved easily between servers where CGI can be platform and server dependent.

    Difference between Java Servlets and JSP is the response speed since it's already compiled and JSP needs to run through an interpreter that generates the code.

    So after all that overall Java Servlets are my preference however if you don[t know Java then FastCGI is the alternative.

    One more point remember that CGI can be written in Java

    My 2 cents,
    Fred
    {{ DiscussionBoard.errors[4199791].message }}

Trending Topics