FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » php daemon
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: php daemon [message #179642 is a reply to message #179640] Thu, 15 November 2012 15:09 Go to previous messageGo to previous message
Goran is currently offline  Goran
Messages: 38
Registered: January 2011
Karma:
Member
On 15.11.2012 14:46, Jerry Stuckle wrote:
> On 11/15/2012 8:08 AM, Goran wrote:
>> On 14.11.2012 11:51, Jerry Stuckle wrote:
>>> You're the one who claimed life's a kludge, so yours must be. Mine
>>> isn't.
>>
>> As I can see, you tend to overcomplicate things, that's why I believe
>> your life is a mess.
>>
>
> Nope, you're the one who had to put together a kludge instead of using a
> more appropriate language.

I guess you are the kind of person which prefer to buy a car instead of
paying for single taxi drive.

>>> Yes, it is a common pattern for people who don't know better.
>>
>> Maybe it's time for you to start defining what's wrong with my example
>> (after so much bs talk). Define kludge.
>>
>
> You have to keep stopping and starting it, for one thing. And in your
> loop you need to sleep() for a while.

Every daemon needs loop, sleep is completely optional in every language
(it's just an example). Whats wrong with restarting? It's not your job,
it's supervisord's job. Even regular daemons need autorestarting for
failover sometimes.

> And you confuse the "stateless nature of the web" with daemons - they
> have nothing to do with each other.

You took it out of context, how appropriate...

PHP is scripting language primarily made for web - not designed to deal
with long running applications. Therefor, it's memory management is not
so precise - it's optimized for performance, not for memory usage.
Therefore, it's ideal for "stateless nature of the web", because there
is no need to carry state among http requests.

Although, it's suboptimal for daemons, with a little help of supervisord
it can be efficient enough.

> Or maybe you don't understand what a daemon is, or how a *real* daemon
> works.

You know what? My dad eat daemons for breakfast!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Benefits of the 3-Tier Architecture
Next Topic: Bad database design can cause unnecessary coding
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 02:15:07 GMT 2024

Total time taken to generate the page: 0.03806 seconds