In this tutorial I explain how you can delay tasks in Symfony application using kernel terminate event. Learn how you can improve response time for specific endpoints. You can perform heavy task after http with Symfony event kernel terminate.
Below you will find a link to the repository with final code. The project is dockerized and has Xdebug. So you can easily run it locally and check execution.
#KernelTerminate #DelayTasks #Symfony
In this video I use Symfony 5 with PHP 8 but this tutorial is still relevant for older versions of Symfony framework or PHP.
⭐️ Link to second part of my tutorial about Symfony component Messenger ⭐️
🔗 • Delay heavy tasks in Symfony with componen...
⭐️ Final result you can find here ⭐️
🔗 https://github.com/Cap-Coding/symfony...
⭐️ Support channel on Patreon ⭐️
🔗 / capcoding
⭐️ Resources ⭐️
🔗 Symfony documentation about kernel terminate event https://symfony.com/doc/current/refer...
🔗 Symfony documentation about kernel component https://symfony.com/doc/current/compo...
🔗 Information about PHP function fastcgi_finish_request https://www.php.net/manual/en/functio...
🔗 Book O'Reilly "Head first design patterns"
Amazon: https://amzn.to/2KVHD0D (new edition)
Amazon: https://amzn.to/2NMfTN9
Amazon DE: https://amzn.to/2Xq3TCt
🎥 All Symfony tutorials • Symfony API
Get € 20 on Hetzner Cloud hosting:
💲https://hetzner.cloud/?ref=GyXEuMSuxUBq
Register domain without hassle on GoDaddy
💲https://letyshops.com/r/godaddy-87bec...
⭐️ TABLE OF CONTENT ⭐️
00:00:00 Introduction
00:01:19 How event kernel terminate works
00:03:02 Symfony example for GET endpoint
00:09:27 Symfony example for POST endpoint
00:12:14 Pros and Cons
En esta página del sitio puede ver el video en línea Delay heavy tasks in Symfony with kernel.terminate event to decrease response time de Duración hora minuto segunda en buena calidad , que subió el usuario Cap Coding 06 junio 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,595 veces y le gustó 60 a los espectadores. Disfruta viendo!