Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33367 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38051 invoked by uid 1010); 21 Nov 2007 15:26:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38035 invoked from network); 21 Nov 2007 15:26:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Nov 2007 15:26:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=nunoplopes@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nunoplopes@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.170.185 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: nunoplopes@gmail.com X-Host-Fingerprint: 64.233.170.185 rn-out-0910.google.com Linux 2.4/2.6 Received: from [64.233.170.185] ([64.233.170.185:19643] helo=rn-out-0102.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/79-07490-14E44474 for ; Wed, 21 Nov 2007 10:26:58 -0500 Received: by rn-out-0102.google.com with SMTP id s28so648961rnb for ; Wed, 21 Nov 2007 07:26:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=p061PfVmdLLGnfT4U5aIVq+I6N3pZsU6xY7PHv9S0tE=; b=Sk21dWXwDbqQKln+/jJkKAo4QK5LHcq/tsa46WGbTKRnBvbHieYF41DHcdkQORbFZECLEk19zPLNqcA0Kka4WXNnTUD01hYPPqvtkuumnAaLRWKKUOn2rrXDs3pVoNh7+W9Bp/aUhDr1DNbhTGRrkyrcKp3r95tEM4fsTVqsHUE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=bJ6n89BXYNZ+0aLLjvzoG2Uf7eHwXK+oTQbOuDLbCSiK6yB2TZEEtyAH/w4TKdxjc91gg8596p6+vireYChjPcXQsBOGWnintm7NJsLBD1GVj9Gx7YCaOj7WMPOA3rh61OB9Yjjsl7jRRBg/pLQVDSyggPYkV4yP4RMkgxGf7U8= Received: by 10.142.139.19 with SMTP id m19mr1999357wfd.1195658810046; Wed, 21 Nov 2007 07:26:50 -0800 (PST) Received: by 10.142.47.19 with HTTP; Wed, 21 Nov 2007 07:26:50 -0800 (PST) Message-ID: <7ca798440711210726v14f5e8b0mc8adccde33df40b7@mail.gmail.com> Date: Wed, 21 Nov 2007 15:26:50 +0000 Sender: nunoplopes@gmail.com To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: cfc24c185bda00b5 Subject: 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. So, do you have any suggestions for which PHP application architecture should I discuss? Like a standard pdo-based app, with files being generated and stored on the server, possibly bypassing php completly on the following request (like livedocs). Use a particular PHP framework (cake, zend, ...)? Any useful case-studies that you may have are also welcome. (Although I participate in the PHP development for a few years, the websites I run have at most 1.5 million page views per month, so performance isn't an issue, hence my lack of experience in scaling PHP apps..) Thanks, Nuno P.S.: Sorry for the off-topic, but I didn't find a better place to ask this.