Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33374 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68282 invoked by uid 1010); 21 Nov 2007 23:37:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68266 invoked from network); 21 Nov 2007 23:37:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Nov 2007 23:37:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=nlopess@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=nlopess@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.55.154.24 as permitted sender) X-PHP-List-Original-Sender: nlopess@php.net X-Host-Fingerprint: 212.55.154.24 relay4.ptmail.sapo.pt Linux 2.4/2.6 Received: from [212.55.154.24] ([212.55.154.24:38043] helo=sapo.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/F0-58669-221C4474 for ; Wed, 21 Nov 2007 18:37:07 -0500 Received: (qmail 18724 invoked from network); 21 Nov 2007 23:36:59 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.207) by relay4 with SMTP; 21 Nov 2007 23:36:59 -0000 Received: (qmail 5774 invoked from network); 21 Nov 2007 23:36:59 -0000 X-AntiVirus: PTMail-AV 0.3-0.91.1 X-Virus-Status: Clean (0.00729 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[82.155.77.123]) (envelope-sender ) by mta12 (qmail-ldap-1.03) with SMTP for ; 21 Nov 2007 23:36:59 -0000 Message-ID: <004001c82c97$63173bd0$4101a8c0@pc07653> To: "Lukas Kahwe Smith" , "PHP Developers Mailing List" References: <7ca798440711210726v14f5e8b0mc8adccde33df40b7@mail.gmail.com> Date: Wed, 21 Nov 2007 23:36:49 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Subject: Re: [PHP-DEV] web applications architectures comparison From: nlopess@php.net ("Nuno Lopes") >> Hi, >> >> I was assigned a class work in the university to compare web >> applications architectures, mainly PHP vs >> Java+Hibernate+Struts/Stripes. I'll need to provide some benchmarks >> for some typical web apps. >> >> Well, I'm a bit afraid that Java may win, because of the usage of >> Hibernate, which caches sql stuff in memory. The first request is >> usually very slow (10 seconds or more), but following requests are >> much faster. > > I would not be afraid of that. The question people have to solve is not > one of performance but one of scalability and maintainability. Java tends > to force people into this frame of mind to rely on one monolithic piece > if software to solve all of their problems. This means a simple project > ends up being way more complex from day one. Moreover if their single > monolithic software fails them, they have a problem. This is the key > point that Rasmus keeps saying .. what you want is a layered approach > that allows you to solve your real world problems as they appear. > > So if Java beats PHP in serving a half way complex page from a single > server in # of requests per second I am still not impressed. The question > is how long did it take to setup that server. How long will it take until > it becomes too expensive to keep adding to this one server? What will you > do for failover? etc .. Although I agree with you, my project is mainly about performance of different web apps architectures. Anyway, thanks for your point of view. I might use it to convince my professor (who doesn't like PHP..) :) Thanks, Nuno