O'Reilly logo
  • NANA AMFO thinks this is interesting:

, servlets are persistent between invocations, which dramatically improves performance relative to CGI-style programs. Servlets are also 100% portable across operating systems and servers, unlike any of the alternatives. Finally, servlets have access to all the APIs of the Java platform, so, for example, it is easy to create a servlet that interacts with a database, using the JDBC API


Cover of Java Enterprise in a Nutshell, Third Edition


Servlets are better than other server-side services because they are 100% portable using JVMs and you can use the JAVA APIs. Performance is relatively better.