Re: Writing apps that scale well?
| From: | Andrei Zmievski | Date: | Fri, 01 Sep 2006 17:18:02 +0000 |
| Subject: | Re: Writing apps that scale well? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7199@lists.php.net to get a copy of this message | ||
I am not sure how your system is architected but one thing worth looking at is having a standalone daemon that handles data and can respond to requests from your client apps. So rather than having client apps load up the dataset each time, they issue requests via some mechanism (depends on whether you do it locally or over the network) and receive the results.
-Andrei
On Sep 1, 2006, at 12:22 AM, Benjamin Smith wrote:
I've been using PHP-GTK1 for years now in a commercial environment, with good success. I have hundreds of people using my PHP-GTK application. Looking to PHP5/GTK2, I'd like to essentially re-write or heavily refactor our core application. There are lots of changes between 1 and 2, (it's not a minor upgrade) so if we were to simply change the libraries, it would simply bomb. Can anybody recommend some literature I could study up on how to write top-quality client-side apps that scale well? I've done well with PHP/Apache, but the client side is very different. As an understanding of scope, the PHP-GTK application consists of about 35,000 lines of code written over the past few years. An average dataset consists of about 2,500 files totalling around 200 MB of data. So, our software application is currently handling well in excess of 10x the amount of data originally intended, and growing fast. In order to keep things working, we've had to do some very painful switchovers, the last being to an indexed filesystem to improve performance and reduce errors. It's a huge pile of functions, organized by naming conventions, with some OOP, and while it works well, I think we could improve its structure in the next iteration to minimize development time. I'm familiar with application frameworks (such as Horde) written in PHP for Apache, but is there something similar for how to layout / write a php-gtk application? -Ben PS: I'm not using Glade because of it's lack of fine-grained control. -- "The best way to predict the future is to invent it." - XEROX PARC slogan, circa 197 -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php