Laravel Queues Lesson 3 - Laravel Horizon: setting it up, load balancing & handling logs
HTML-код
- Опубликовано: 11 июл 2024
- 👨💻 Learn Test-Driven Development with Laravel!
tddwithlaravel.com
Sign up to 30 Days of Laravel 👉🏻 30daysoflaravel.com
👨💻 Sign up to my newsletter and receive PHP, JS and Laravel news in a weekly-basis:
subscribe.mateusguimaraes.com
🎉 Party up:
/ mateusjatenee
/ mateusjatenee
/ mateusguimaraes
Thanks for watching! Наука
Thanks, great job showing the overall basics
Excellent content ,thanks a lot
Very Well Explained.
Thanks for the video, so the Horizon is only for monitoring the queue or it's also processing, i.e. if I install and run the Horizon then I don't need to have another supervisor config to process the queues i.e. artisan queue:work ?
Horizon also runs the queues, so you don't need to run artisan queue:work. 👍🏻
Will be better if you hide dock when make screencast.
I'm having issues with horizon and queues on linux server.
Do I have to run artisan queue:work with supervisor along with artisan horizon? or just artisan horizon is fine?
I don't know but it looks like jobs aren't getting picked up by queued jobs. it suddenly stopped for no reason. tried restarting the server as well but to no avail
Just artisan horizon is fine.
i have problem in production on ce2
Mateus, tenho 4 servidores para atender todas as filas, mas cada servidor tem prioridades diferentes, ambos compartilham o memso servidor redis, como o horizon identifica cada um? Digamos que tenho de 'supervisor-1' à 'supervisor-4' como o horizon vai saber qual é qual?
O Horizon vai assinalar identificadores diferentes para cada servidor. Se todos estiverem conectados à mesma instância do Redis, você vai conseguir vê-los na página inicial. 👍
Are you Brazilian? Great video!
Yes I am!
could you share the repo for this one?
Uma duvida meio besta, existe a possibilidade de processar duas vezes o mesmo job considerando um cenario com dois containeres executando o horizon conectados no mesmo servidor Redis? Ou o horizon consegue tratar isso nativamente e processar somente uma vez?
Essa pergunta é interessantíssima!
Esse problema não ocorre - e se ocorresse, ocorreria com um único servidor também, pois o Horizon levanta vários processos diferentes.
Quando um worker decide pegar um job, ele faz isso através do Redis - tira o job de uma lista e joga pra outra (reserved). Esse comando é atômico, então não existe a possibilidade de 2 workers pegarem o mesmo job.
@ show de bola, já tinha feito alguns testes pra ver se esse comportamento ocorreria, mas em ambiente local fica difícil simular como se fosse um ambiente real, com múltiplos jobs chegando e sendo processados ao mesmo tempo, de qualquer forma, parabéns pelo conteúdo e obrigado pela resposta...
Can Horizon really work on a multiple server setup with a single redis server ?
yes
Please, provide code. thnx =)
PT, cara.
?
You are not paid for doing that? You're actually getting paid when your channel is monetized. Also, who asked you to make these contents?
You can just not watch the video. 👍🏻
You have to start somewhere. Also, he is just explaining concepts, and explaining concepts just helps him consolidate his knowledge!!! Why do people have to do everything just for money?