Recommend this page to a friend! |
Classes of walid laggoune | QPHP | README.md | Download |
|
DownloadQPHPQPHP is a simple, fast work queue server extendable to LUA scripts. Built using PHP & SWOOLE. RUN itFirst, build the image :
Run :
Running port is : 15674 Configsrc/config/.env <br/> - MAX_CONN : https://www.swoole.co.uk/docs/modules/swoole-server/configuration#max_conn - QUEUE_TABEL_SIZE: This table is responsible to store queues payloads. https://www.swoole.co.uk/docs/modules/swoole-table-construct - IGNORE_NO_LISTENERS: 0 or 1 , if 0 the server will not dispatch the queues if there is no >= 1 listener. - BUFFER_OUTPUT_SIZE: https://www.swoole.co.uk/docs/modules/swoole-server/configuration#buffer_output_size - REACTOR_NUM: https://www.swoole.co.uk/docs/modules/swoole-server/configuration#reactor_num - WORKER_NUM: https://www.swoole.co.uk/docs/modules/swoole-server/configuration#worker_num How to use it / examplesSee the examples/ folder ObserversPHP observerapp/Parser/Observer/ParserObserver.php You can write PHP code to handle received queues and parse them before saving them to the storage. Also, you can handle the queue message before sending them to listeners. Extend to LuaYou can write LUA code to handle received queues and parse them before saving them to the storage. Also, you can handle the queue message before sending them to listeners. |