What is a demon? Their practical use? Using php?

Can someone explain to me in a nutshell what a daemon is and how to use them in php?

I know this is a process that runs all the time. But I can not understand what to use it in php application?

Can someone give us some usage examples? Can I use a daemon to reduce memory usage in my application?

As I understand it, a daemon can store data and provide it on demand, so basically I can store most of the data used there, so as not to receive it from mysql for each visitor?

Or am I completely wrong? :)

Thank;)

+3
source share
4 answers

Can someone explain to me in a nutshell what a daemon is and how to use them in php?

cli application or process

, , . , php?

; , , . , , - db

- ? , ?

, drupal cron cron script... , . ? , script.

, , , mysql ?

, - script, JSON XML, script.

0

. PHP . , PHP, , - , , , .

, , PHP , PHP , .

, , .

0

- , . - ( "http-daemon" ) , ( ..). Win- "".

, , . PHP .

0

- , , , , .

MySQL , MySQL Memcached ( ). , Memcached , , , ( ), MySQLd ( , SQL).

SQL-, Memcache (, , , ) MySQL.

0

Source: https://habr.com/ru/post/1773498/


All Articles