Talk in English - UK at PHP Developer Days 2018
Track Name:
ROOM CONF-02
View Slides: http://jangregor.gitlab.io/async-processing-slides/
Short URL: https://joind.in/talk/fa374
(QR-Code (opens in new window))
Modern web applications or apis often handle heavy load tasks, requiring intense disk i/o or complex database queries. I will demonstrate how and - more importantly - why such operations should be processed asynchronously. We will be comparing a few messaging/queuing libraries and cover some of the most common pitfalls and obstacles developers face when implementing asynchronous processing and face long running php processes for the first time.
Comments
Comments are closed.
Great talk with good slides.
But I wish there was an example to get feedback to the client after processing a message.
Good talk on ways to offload "heavy processing" to workers outside of the main request.
I would really look into the signal handling mentioned because you can still have message loss if your system gets shutdown accidentally and your worker cannot handle this gracefully. Also using supervisord might be outdated on the current line of production servers running linux. There you can just use systemd to manage your processes without the need of other 'process managers'
Very interesting information about different queue realization and offloading the real work to daemon workers.
One suggestion to improve would be to see the real case where it might help (e.g. cache reload, huge data export/import)