Best way to get status when Iron.io task is completed using Laravel 4 queues

375 views Asked by At

I am going to use Laravel 4 queues and integrate them with Iron.io All of that is pretty straight forward, and I dont think I am going to have problems with that.

Thing that interests me is what is the best way to get status once task is completed?

Iron.io is going to do return call to my server to trigger job, and once that job completes I need to notify user about that...

How could I store this responses, and still be aware of job its related to, because there will be number of different job types?

I would like to hear how did you implement this.

Thanks

1

There are 1 answers

1
fideloper On BEST ANSWER

As Joseph pointed out in the comments, you'll need to:

  1. Hopefully have a job quick enough for it to be finished when a user is still in browser
  2. Use some sort of way to PUSH data back to your web browser.

The popular methods are:

  1. Websockets
  2. Server-sent events
  3. Long polling - with ajax