Horizon: How to use horizon with lumen?

Created on 6 Sep 2017  路  7Comments  路  Source: laravel/horizon

How to use horizon to manage queues in a current project written with lumen? I will have to make a laravel project and point the redis server port to the lumen server?

Most helpful comment

@taylorotwell @themsaid please help me solve the following puzzle:

Question:

  • is Lumen going to be discontinued?

Assertions that lead to that conclusion:

  • Horizon process queues
  • Queues are generally used for speeding up performance and process long running tasks in the background
  • Performance is a common concern when building/deploying APIs and micro-services
  • Lumen is intended to be used to implement Stunningly fast APIs and micro-services
  • Horizon brings tools and visibility to help manage queues
  • Horizon does not support Lumen - the Stunningly fast micro-framework - that is intended for usage to build high traffic APIs/micro-services - where even 10% increase in performance over Laravel really matters

All 7 comments

So will there be no Lumen support ? I tried to hack it in there but its missing to much:
config_path() //easily fixable in bootstrap/app.php
Call to undefined method Laravel\Lumen\Application::routesAreCached() //also relatively easy to fix by commenting out the if call in the support librarie used
Call to undefined method Laravel\Lumen\RoutingRouter::prefix()
....

At the last one i stopped since it seemed not to end...

Hi, i just migrated all the project to Laravel, it's really easy (about one~two hours of work). Can't live more without horizon :)

@taylorotwell @themsaid please help me solve the following puzzle:

Question:

  • is Lumen going to be discontinued?

Assertions that lead to that conclusion:

  • Horizon process queues
  • Queues are generally used for speeding up performance and process long running tasks in the background
  • Performance is a common concern when building/deploying APIs and micro-services
  • Lumen is intended to be used to implement Stunningly fast APIs and micro-services
  • Horizon brings tools and visibility to help manage queues
  • Horizon does not support Lumen - the Stunningly fast micro-framework - that is intended for usage to build high traffic APIs/micro-services - where even 10% increase in performance over Laravel really matters

Hey @driesvints,
I've noticed that Horizon 2.1.0 has been released.
Is Lumen support completely discarded by Laravel team? :-(
Any recommended workaround for using Horizon with Lumen?

Hello @jfoliveira,

Horizon and Telescope both have an API, so you could have a logger in Lumen that connects to the instances that have Horizon/Telescope running.

Can I use Laravel Horizon like this >

  • In my project, queue works with Lumen + Redis on a server
  • Laravel Horizon running on another server
  • Now connect that Laravel Horizon to the Redis on my project server

If so, is there any example or suggestions to achieve that?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

francislavoie picture francislavoie  路  5Comments

tillkruss picture tillkruss  路  6Comments

mahdiahmadi73 picture mahdiahmadi73  路  3Comments

sojeda picture sojeda  路  5Comments

lasselehtinen picture lasselehtinen  路  3Comments