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!
  • НаукаНаука

Комментарии • 25

  • @opensourcedev22
    @opensourcedev22 Год назад

    Thanks, great job showing the overall basics

  • @abdellahbouskine5340
    @abdellahbouskine5340 Год назад

    Excellent content ,thanks a lot

  • @ayazahamed8254
    @ayazahamed8254 Год назад +1

    Very Well Explained.

  • @TheArmanist
    @TheArmanist 3 месяца назад +1

    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 ?

    •  3 месяца назад +1

      Horizon also runs the queues, so you don't need to run artisan queue:work. 👍🏻

  • @545Crasher
    @545Crasher Год назад +4

    Will be better if you hide dock when make screencast.

  • @tealiedie
    @tealiedie 3 месяца назад

    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

    •  3 месяца назад

      Just artisan horizon is fine.

  • @openvideo5559
    @openvideo5559 3 месяца назад

    i have problem in production on ce2

  • @LaercioLopesLL
    @LaercioLopesLL Год назад +1

    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?

    •  Год назад +1

      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. 👍

  • @wribeiro07
    @wribeiro07 Год назад +1

    Are you Brazilian? Great video!

    •  Год назад

      Yes I am!

  • @jamesayento1321
    @jamesayento1321 5 месяцев назад

    could you share the repo for this one?

  • @JhonathasCavalcante
    @JhonathasCavalcante 9 месяцев назад +1

    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?

    •  9 месяцев назад

      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.

    • @JhonathasCavalcante
      @JhonathasCavalcante 9 месяцев назад

      @ 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...

  • @luismatabrito
    @luismatabrito 3 месяца назад

    Can Horizon really work on a multiple server setup with a single redis server ?

    •  3 месяца назад

      yes

  • @AlexMcOwkin
    @AlexMcOwkin Год назад

    Please, provide code. thnx =)

  • @mundoprogramado3106
    @mundoprogramado3106 Год назад

    PT, cara.

    •  Год назад

      ?

  • @luckyperson3390
    @luckyperson3390 8 месяцев назад

    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?

    •  8 месяцев назад +3

      You can just not watch the video. 👍🏻

    • @henrmota
      @henrmota 4 месяца назад

      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?