-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hello,
I don't know, if I have understood Thomas' idea correctly, but IMHO client-server application means that server part (back-end) listens on the server ergo is a daemon which means You no longer have to initiate IMAP connection, login etc on every refresh You make in browser. And the client is the client (browser, desktop client, mobile app, your something script somewhere etc) which speaks to the server using the defined protocol.
Thomas, could You please clarify that part?
Yes, you could achieve this with PHP on some shared hosting servers, but that would mean that at some time the limits will be hit and Your daemon script will be killed (even during some important operation). This can happen at the moment too (eg searching too big mailbox and limits hit). But then the whole client-server architecture would be pointless. It's also a good and fast way to fill the limit of maximum allowed processes.
If we'd go with PHP that would mean we use PHP just as library (not as server) and IMAP client part of the software, like now. Just move more stuff (eg whole templating, sorting and filtering operations maybe etc) to the front-end side and use AJAX (via JS front-end libs) to communicate and that's it. Basically same architecture as current RC but more todayish (we'd use awesome front-end thingies).
Yes, You could run PHP application as a daemon but: 1) the language is not designed for that 2) most of shared hosting providers will kill your scripts after 5 to 10 mins (when max execution time hits). After that You rerun the PHP part on the first request, which means that all the connections to data layer servers (database, redis etc), IMAP servers and other third party servers (authentication & authorization) must be reconnected.
Best regards, Günter Kits
On 17.03.2015 21:29, Victor Benincasa wrote:
Hello Devs,
in other words: a roundcube generation not written in PHP would be replaced
as fast as Horde a few years ago was replaced after the switch to pear and making RPM packaging way too expensive
As an IT admin of some hosting companies, I agree with this. The most widely used setup is with PHP. This is why scripts like Joomla, Wordpress and phpMyAdmin are so popular.
-- Victor Benincasa