Re: Own webserver, with PHP plus opcache/similar?

From: Date: Wed, 11 Jun 2014 12:58:19 +0000
Subject: Re: Own webserver, with PHP plus opcache/similar?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-74845@lists.php.net to get a copy of this message
Am 11.06.2014 um 14:03 schrieb Simon Schick <simonsimcity@gmail.com>: > On Wed, Jun 11, 2014 at 2:03 AM, Kevin Ingwersen > <ingwie2000@googlemail.com> wrote: >> >> Hey. >> >> I am not particulary sure if this is the right list to ask this, but I decided I would just >> try (besides, its the only list I subscribed to). >> >> For an application that I run, I have bumped against apache’s edge: WebSocket support. >> But the main application is written in PHP, Yii Framework, so I do not want to move away from this - >> and cant do that very easily either. So I was thinking about writing my own webserver, maybe in >> nodejs or the like, but also take best advantage of PHP. >> >> What I mean is, that I read somewhere, that php-fpm, or something similar?, can stay open >> as a background process and cache scripts, so they are executed faster. >> >> Again, I only skimmed over an article, but sadly do not have access to my browser history >> at th emoment - and will not for a bunch of weeks - so I can not get back there. >> >> What would you recommend for this? I want to max out the speed of my PHP execution time. >> >> Kind regards, >> Ingwie. >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > Hi, Ingwie > > Yesterday, I stumbled over something that might be helpful for your - > maybe not ;) > > I found out, that there are projects on the way out, that let you > store stuff accross requests. I don't know how production-ready these > ideas are, but you can use them. They work in development ;) > > A complete redesigned server in PHP only. Worth a view, I think ... > they borowed much from Java. That's also how I found that one. > http://www.appserver.io/ > > React is a project, that should let PHP work as Node.JS works. > http://reactphp.org/ > > I think this is the reason, why you think of using Node.JS at all, > right? Having one process, that has some resources in memory and that > handles all incoming requests - not an engine that has to be turned on > and turns off after each request. > > Bye > Simon Hey! I have seen Appserver before, it looks pretty interesting indeed, and I found it originally due to the pthreads extension. Yes, I want to use nodejs to drive the very root - to handle incoming requests and to even support Websockets, which are a thing for my new project. :) But thanks for pointing these out, Ill look at them! Kind regards, Ingwie.

« previous php.internals (#74845) next »