Back

Hey Laravel Developers

One of the common concerns raised against PHP is that it does not handle concurrency due to its single-threaded nature.

This is true, but as Laravel developers, we can execute concurrent tasks within an ongoing request using the new Concurrency Facade.

Under the hood, this facade executes each task as a separate server process using console commands, which is a workaround for PHP's limitation.

I recommend using this facade only for minor tasks because it is still in beta.

For advanced use cases, you can structure your application to use Queues for concurrency.

image

75

  • No matching results...
  • Searching...

/ 1000