Re: Writing apps that scale well?
| From: | Benjamin Smith | Date: | Wed, 06 Sep 2006 21:34:01 +0000 |
| Subject: | Re: Writing apps that scale well? | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7229@lists.php.net to get a copy of this message | ||
The clients are often disconnected from the network (notebooks, and the like)
so we do something called a "synch" which otherwise operates much as you
suggest. When we first wrote it, SSL wasn't supported by PHP4 (4.0? 4.1?) so
we rolled our own using mcrypt and a protocol not unlike SMTP.
Works very well, BTW.
-Ben
On Friday 01 September 2006 10:18, Andrei Zmievski wrote:
> 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
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
--
"The best way to predict the future is to invent it."
- XEROX PARC slogan, circa 1978