Delay heavy tasks in Symfony with kernel.terminate event to decrease response time

Publicado em: 06 Junho 2021
no canal de: Cap Coding
3,595
60

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


Nesta página do site você pode assistir ao vídeo on-line Delay heavy tasks in Symfony with kernel.terminate event to decrease response time duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Cap Coding 06 Junho 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,595 vezes e gostou 60 espectadores. Boa visualização!