ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Laravel Queues Lesson 3 - Laravel Horizon: setting it up, load balancing & handling logs

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 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 4 หลายเดือนก่อน +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 ?

    •  4 หลายเดือนก่อน +1

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

  • @openvideo5559
    @openvideo5559 4 หลายเดือนก่อน

    i have problem in production on ce2

  • @tealiedie
    @tealiedie 4 หลายเดือนก่อน

    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

    •  4 หลายเดือนก่อน

      Just artisan horizon is fine.

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

  • @jamesayento1321
    @jamesayento1321 6 หลายเดือนก่อน

    could you share the repo for this one?

  • @luismatabrito
    @luismatabrito 4 หลายเดือนก่อน

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

    •  4 หลายเดือนก่อน

      yes

  • @545Crasher
    @545Crasher ปีที่แล้ว +4

    Will be better if you hide dock when make screencast.

  • @JhonathasCavalcante
    @JhonathasCavalcante 10 หลายเดือนก่อน +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?

    •  10 หลายเดือนก่อน

      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 10 หลายเดือนก่อน

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

  • @wribeiro07
    @wribeiro07 ปีที่แล้ว +1

    Are you Brazilian? Great video!

    •  ปีที่แล้ว

      Yes I am!

  • @AlexMcOwkin
    @AlexMcOwkin ปีที่แล้ว

    Please, provide code. thnx =)

  • @mundoprogramado3106
    @mundoprogramado3106 ปีที่แล้ว

    PT, cara.

    •  ปีที่แล้ว

      ?

  • @luckyperson3390
    @luckyperson3390 9 หลายเดือนก่อน

    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?

    •  9 หลายเดือนก่อน +3

      You can just not watch the video. 👍🏻

    • @henrmota
      @henrmota 5 หลายเดือนก่อน

      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?