Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

387
Views
PHP is single-threaded , How job and queue works in laravel?

I had an interview yesterday, He asked me a question. PHP is a single-threaded language then how jobs and queues work in laravel behind the scenes?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Single-threaded doesn't mean you can't launch multiple instances of the program, it means the program cannot execute multiple parts of itself simultaneously.

With this consideration in mind, you'll easily understand that when you are running the queue with php artisan queue:work, a new worker (a PHP process) starts and executes every new jobs pushed to the queue.

This worker runs alongside any other programs, single-threaded or not.

over 4 years ago · Santiago Trujillo Report

0

In Laravel queues are run as independently with PHP CLI using php artisan queue:work and has no relation with threading ...

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!