Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Can I use tasks to do photo manipulation in the background?
  • I'm not sure if I'm approaching this the right way but I have some heavy duty photo manipulation and saving in a registration function that slows it down. I use tasks for some random CRON jobs but was wondering can I write a task and then fire it off using the Cli class to do the manipulation asynchronously?
  • Not directly, and it won't really run async.

    This sounds like a job for a message queue mechanism, where the frontend inserts new assignments into the queue for background workers to pick up and process.

    There are (afaik) two fuel packages floating around that provide a simple queueing mechanism using a database table, for heaver apps with lots of workers I would pick something like ZeroMQ or RabbitMQ.

  • You can also check beanstalkd, may be a lighther option than ZeroMQ and RabbitMQ.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion