19
using Queue Service for batch processing

using Queue Server for batch processing

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: using Queue Server for batch processing

using Queue Servicefor batch processing

Page 2: using Queue Server for batch processing

Job Queue

data source

convert the data into job and sent to queue

1

Page 3: using Queue Server for batch processing

Job Queue

data source

1

convert the data into job and sent to queue

workerworkerworkerworkerworker

2

pull job and consume it

Page 4: using Queue Server for batch processing

Job Queue

data source

1

convert the data into job and sent to queue

workerworkerworkerworkerworker

2

pull job and consume it

Result Queue

3

send result to another queue

Page 5: using Queue Server for batch processing

Job Queue

data source

1

convert the data into job and sent to queue

workerworkerworkerworkerworker

2

pull job and consume it

Result Queue

3

send result to another queue

4

feed back to data

aggregator

pull result

Page 6: using Queue Server for batch processing

Job Queue

data source

1

convert the data into job and sent to queue

workerworkerworkerworkerworker

2

pull job and consume it

Result Queue

3

send result to another queue

4

aggregator

pull result

make report

Page 7: using Queue Server for batch processing

Example for video resolution

Page 8: using Queue Server for batch processing

Job Queue

video table

{id, url, how-to-parse}

1

Page 9: using Queue Server for batch processing

Job Queue1

workerworkerworkerworkerworker

2

pull job and consume it

video table

{id, url, how-to-parse}

Page 10: using Queue Server for batch processing

Job Queue1

workerworkerworkerworkerworker

2

pull job and consume it

Result Queue

3

{id, width, height, codec}

video table

{id, url, how-to-parse}

Page 11: using Queue Server for batch processing

Job Queue1

workerworkerworkerworkerworker

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

Page 12: using Queue Server for batch processing

Example for streaming alive

Page 13: using Queue Server for batch processing

Job Queue

streaming table

{id, url}

1

Page 14: using Queue Server for batch processing

Job Queue1

workerworkerworkerworkerworker

2

pull job and consume it

streaming table

{id, url}

Page 15: using Queue Server for batch processing

Job Queue1

workerworkerworkerworkerworker

2

pull job and consume it

Result Queue

3

{id, is_alive}

streaming table

{id, url}

Page 16: using Queue Server for batch processing

Job Queue1

workerworkerworkerworkerworker

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}

Page 17: using Queue Server for batch processing

Deployment

Page 18: using Queue Server for batch processing

Job Queue

workerworkerworkerworkerworkerResult Queue

aggregator

Everything can deploy locally, But

Page 19: using Queue Server for batch processing

Job Queue

workerworkerworkerworkerworkerResult Queue

aggregator

Deploy Workers on the Cloudlet it more scalable