
Java Servlets: Advantages(1/4)
Efficient
With traditional CGI: for e ach request a new OS process is started
Java VM, servlet container, and a particular s ervlet started only once:
each request handled by a Java thread
Lightweight Java threads instead of heavyweight OS processes
With CGI: if N simultaneous requests than the code is loaded N times
With servlets: N threads but only one copy of code in the memory
Optimization possibilites with servlets: caching, keeping database
connections open, etc.
answer from CGI: Fast-CGI (http:// www .fas tcgi .com)
(51/95)
Komentarze do niniejszej Instrukcji