If the C++ CGI is invoked for each request, then Java servlets will
greatly outperform C++.

More likely limit will be MySQL.  If he's to be running on a single
disk (a small server) then MySQL will likely become disk-bound *long*
before Java servlets could become processor-bound.

A good incremental development path:

1.  Write the application using Java servlets.
    (shortest development time).

2.  Need more performance?
    Add memory (at $2 per megabyte, an hour of developer's time saved
    can pay for a lot of memory :).
    Probably 256 megabytes is a minimum for a high performance site,
    with more needed if the load is really large.

3.  Need more performance, you've checked and there is enough memory?
    You should be disk-bound at this point, so add a RAID disk subsystem,
    with a minimum of 4 disks, or more if the load is large.

4.  Need more performance, and you're getting processor-bound?
    Add dual or quad processors...

5.  Need still more performance?
    At this point you have a working application in production,
    and you might consider translating the Java code into C++
    for an in-process library loaded into your web server.

Frankly I rather doubt you're going to need to go past (3) for
a web mail application, unless the site gets *really* huge.



-----Original Message-----
From: Nabil Abbas

When you want real speed, forget about interpreted languages.
Personally, I would go for C++.

Emanuel Dejanu wrote:

> I must develop a new web mail application. The problem is that the
> application must be as fast as possible.
> I will use MySQL server to keep user messages and users profiles.
>
> My question is: what is the best language to develop such application? <!--
> in the idea of speed, not easy development -->
> To keep the list as little as possible please tell me between this:
> 1. Java Servlets
> 2. C++ CGI (with MySQL++ classes)
> 3. PHP
> 4. Perl CGI

___________________________________________________________________________
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