Upgrade to Pro — share decks privately, control downloads, hide ads and more …

using Queue Service to batch processing

using Queue Service to batch processing

Ching Yi Chan

October 08, 2013
Tweet

More Decks by Ching Yi Chan

Other Decks in How-to & DIY

Transcript

  1. Job Queue data source 1 convert the data into job

    and sent to queue worker worker worker worker worker 2 pull job and consume it
  2. Job Queue data source 1 convert the data into job

    and sent to queue worker worker worker worker worker 2 pull job and consume it Result Queue 3 send result to another queue
  3. Job Queue data source 1 convert the data into job

    and sent to queue worker worker worker worker worker 2 pull job and consume it Result Queue 3 send result to another queue 4 feed back to data aggregator pull result
  4. Job Queue data source 1 convert the data into job

    and sent to queue worker worker worker worker worker 2 pull job and consume it Result Queue 3 send result to another queue 4 aggregator pull result make report
  5. Job Queue 1 worker worker worker worker worker 2 pull

    job and consume it video table {id, url, how-to-parse}
  6. Job Queue 1 worker worker worker worker worker 2 pull

    job and consume it Result Queue 3 {id, width, height, codec} video table {id, url, how-to-parse}
  7. Job Queue 1 worker worker worker worker worker 2 pull

    job and consume it Result Queue 3 update video where id=? set width=?, height=?, codec=? video table {id, url, how-to-parse} {id, width, height, codec} 4 aggregator pull result
  8. Job Queue 1 worker worker worker worker worker 2 pull

    job and consume it streaming table {id, url}
  9. Job Queue 1 worker worker worker worker worker 2 pull

    job and consume it Result Queue 3 {id, is_alive} streaming table {id, url}
  10. Job Queue 1 worker worker worker worker worker 2 pull

    job and consume it Result Queue 3 update streaming_status where id=? set status=? 4 aggregator pull result streaming table {id, url} {id, is_alive}
  11. Job Queue worker worker worker worker worker Result Queue aggregator

    Deploy Workers on the Cloud let it more scalable