Using the Request-Acknowledge-Push Pattern to Display Progress of Long Running Tasks

Sign in to queue

Description

Many web sites need to deal with long-running tasks. However long-running tasks don't
play very well with the HTTP request-response paradigm. In this episode we'll
go through a very simple pattern: Request-Acknowledge-Push that enables a
simple, efficient, and scalable way of dealing with long running tasks.

Source code of this episode can be found at: http://azure4fun.blob.core.windows.net/code/CloudPatterns1-RequestAcknowledgePush.zip

You'll need to update both Web Role configuration and Worker Role configuraiton to use your own Service Bus namespace.

And the blog article mentioned in the video is: http://haishibai.blogspot.com/2012/12/dealing-with-long-running-jobs.html

Embed

Download

Download this episode

The Discussion

  • User profile image
    peternl

    great post haishi bai. thanks. most welcome these type of subjects in presentations on channel 9. are you also willing to post the whole solution for download? your referred link to your blog shows detailed code snippets in the mentioned article but being able to play as developer with these implementations in vs2012 would be better in understanding the applied pattern. thx.

  • User profile image
    Haishi.Bai

    @peternl: Thank you for your kind comment. I've added source code link to the post. We'll have more episodes coming very soon, keep tuned Big Smile.

  • User profile image
    PeterNL

    Most welcome. Thanks. Only the added link appears not to work now for download:

    <Error>
    <Code>ResourceNotFound</Code>
    <Message>
    The specified resource does not exist. RequestId:1dae8449-d41f-4cc0-92d3-d7f5366c815f Time:2013-01-19T12:49:28.1287046Z
    </Message>
    </Error>

  • User profile image
    jyl

    I agree  : the link is not working (yet) Smiley

  • User profile image
    Haishi.Bai

    Source code link is fixed.

  • User profile image
    PeterNL

    Promises like: "We'll have more episodes coming very soon"
    are easy to make, but seem hard to deliver.

  • User profile image
    Haishi.Bai

    Hi PeterNL: Thank you for comment. We have a couple of episodes being edited at the moment and we are recording more. This is a new series and there are still some details we need to work out. So we might be slow in releasing the first few episodes.Thank you for your patience, and please keep tuned! And if you and anyone else in the community want to share your experiences you are welcome to contact me at any time.

  • User profile image
    PeterNL

    Your "patients" are asked for a lot of patience !

  • User profile image
    Haishi.Bai

    LOL. Sorry for the typo. Fixed now Blushing

  • User profile image
    iamafreak

    wow, i have been using queues with worker roles to implement the pattern you mentioned, but i never know that we call it Req-Ack-Push pattern. Thanks, now i know a nice fancy term for what i have been using.

    The series - Cloud Pattern looks interesting

Add Your 2 Cents