V
V
vism2021-07-21 00:37:31
Laravel
vism, 2021-07-21 00:37:31

What are the benefits of using Laravel Horizon?

It has been out for a long time and several times I wanted to switch to it, but I did not find any pluses.
Now a new project and I'm trying to figure out for myself why it's better.

The only plus is the config in the code and git.

Minuses

  • corresponding DB in radish is polluted
  • failed jobs with a large payload, it's normal not to see what payload was there, when and how many of them. You can’t get them from radishes, because. everything is kept by a clever system of keys
  • if there are jobs with large payloads, the web interface hangs tightly
  • analytics is much easier to collect through job events directly in the database than trying to do it in the web interface

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2021-07-21
@vism

The config in the code, graceful restart and autoscaling outweigh the indicated disadvantages for me, which are really present. You just don't need to make a big payload :) I have
been using Horizon every day on a project with tens and sometimes hundreds of thousands of jobs for a year and have not regretted it. Although the interface is not always convenient, and Redis periodically spoils its base if it is carelessly restarted, and it was necessary to debug the guts. But I also had to suffer with queues in the database - either the workers stop taking jobs, or because of the deadlock, the job is not written to the table at all ...
PS Failed jobs can be written to the database in parallel as standard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question