Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44073 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9288 invoked from network); 27 May 2009 02:55:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2009 02:55:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=oorza2k5@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=oorza2k5@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.157 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: oorza2k5@gmail.com X-Host-Fingerprint: 72.14.220.157 fg-out-1718.google.com Received: from [72.14.220.157] ([72.14.220.157:51844] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/70-06613-CBBAC1A4 for ; Tue, 26 May 2009 22:55:57 -0400 Received: by fg-out-1718.google.com with SMTP id 16so1283188fgg.0 for ; Tue, 26 May 2009 19:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=aMn92UOQ4UHFxq/Mj0I2IZhKRAIMfEz4J85/dP/KEIU=; b=OMRDYa6oHfepkTT1tGYmLCGNSq6VX+XHpj9PyOCllVCfuSKsw1lr8Xjt8crKkbbb0P FgH13UX5LbSdEyessUZkVx/gHGISIokBOZFRQ+/cCY/BVzqlP1fltbTmYoPiufiawUlN GlyfenPFUWtAzcoNTpKaZtoZAopnrIHQOv/WM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=r0Zcx8Y/ct3mn5qNeFX1XvLPqV7mzysZkcZP49eKycOmPFjalRgv4hO9eAZrQO5KUE JDDHYlste5MkLiz+QZXmyLvp7yABQKHJL31cOKAStUkqmR+wqc4Aj9QMKHTvQaw7+7hP GXbXwaG2ObGvOXynf3cOUglpm8NmVnF4RLgyM= MIME-Version: 1.0 Received: by 10.239.164.9 with SMTP id r9mr651459hbd.38.1243392953918; Tue, 26 May 2009 19:55:53 -0700 (PDT) In-Reply-To: <826683.74097.qm@web110405.mail.gq1.yahoo.com> References: <826683.74097.qm@web110405.mail.gq1.yahoo.com> Date: Tue, 26 May 2009 22:55:53 -0400 Message-ID: <68de37340905261955r51175134n4a1c6881cd3a76b9@mail.gmail.com> To: tRace DOliveira Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=001485f2716055a508046adbfb81 Subject: Re: [PHP-DEV] PHP scalability problem From: oorza2k5@gmail.com (Eddie Drapkin) --001485f2716055a508046adbfb81 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 1) PHP is Rarely The Bottleneck: http://talks.php.net/show/drupal08/ 2) Invest in an opcode cache 3) DB I/O is always the most restrictive part of your application, read the mysql performance blog (a lot applies for postgres too) 4) If you're serious about scalability, ditch apache and use a better webserver 5) You're describing what ajax does in a lot of cases 6) Have you deployed flatfile cache / apc / memcached? If so, how? 7) Do you regularly run siege tests on new server stacks and profile each piece's impact on performance? 8) Do you profile your code every time you change some piece of logic? Scalability is an enormous mountain to climb and there's only so much you can offload on to the client. Chances are there's more room for improvement at any stage in your development than there is potentiality for client-side processing. On Tue, May 26, 2009 at 10:46 PM, tRace DOliveira wrote: > PHP is a server side scripting language, so that means that the server will > have to do the bulk of the processing if not most. > I was thinking about shifting the processing to the client. Kinda like how > java does it. I don't know really know how java does it but it would be > interesting if it could be done for PHP also. > Thank you, > Leonard D'Oliveira > > > --001485f2716055a508046adbfb81--