bonez
bonez

Reputation: 695

Running gearman on a Heroku Worker

I have a PHP app running on heroku (cedar stack). I'm at the point where I need to start passing jobs off to workers.

I've looked a both RabbitMQ and gearman. It seems like the best / simplest solution for my app would to use gearman.

So I'm guessing the gearman server would run on the main webapp dyno and then the gearman workerapi would run on separate heroku workers, along with the php code that should do the work.

How can I go about doing this with Heroku?

Thanks

Upvotes: 1

Views: 492

Answers (1)

Eric Fode
Eric Fode

Reputation: 3697

Queuing is best done with an addon https://addons.heroku.com/#queues. The link ( devcenter.heroku.com/articles/background-jobs-queueing ) in the comment to your question by ficuscr should provide you with some insight as to how exactly to implement your workers.

Upvotes: 0

Related Questions