Menu
ben powell
  • home
  • portfolio
  • about
  • archive
  • contact
ben powell

Request – Acknowledge – Poll as a service design pattern

Posted on April 10, 2013January 13, 2014 by Ben Powell

Request/Acknowledge is a service design pattern wherein clients receive an acknowledgement as an immediate response while the original request is processed in the background. The acknowledgement typically contains a token for identifying the background task which can in turn be used to query the processing status of the task. This pattern is employed to reduce temporal coupling which is especially critical for requests requiring a long processing times. Instead of having the client wait for the final response a pull method for querying the status of the task or a push method for notifying the client is implemented. Similarly, the event-based asynchronous pattern in OOP shares the goal of reducing wasted wait time. Request/Acknowledge/Poll is a variation of this pattern wherein a method is provided for the client to query for the status of the task being processed. The other variation is Request/Acknowledge/Callback wherein a client is notified of task status immediately via callback mechanism. The callback variation ensures that the client receives task status information as it is generated but can be a burden to implement because the client must support the callback mechanism. Furthermore, it places the additional burden of tracking and invoking callbacks upon the server. The poll variation is simpler to implement and keeps the client in control of retrieving status information as it is needed.

Request/Acknowledge/Poll with ASP.NET WebAPI and NServiceBus – Lev Gorodinski

Share this:

  • Twitter
  • Tumblr
  • Facebook
  • LinkedIn
  • Email
  • Reddit
  • Print
  • Pinterest
  • Pocket

Related

  • asp.net
  • nservicebus
  • polling
  • webapi
  • Feel free to leave constructive comments that aren't spam! Cancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    About

    Ben Powell was an ASP.NET developer, blogger and traveler who kept this blog until 2015. There will me no more posts and this website is now memorialized.

    Blog Stats

    • 51,378 hits

    Archives

    Categories

    Tags

    .net (19) angularjs (14) api (15) apps (14) argentina (14) asp.net (45) backpacking (71) bootstrap (11) c (12) cool (12) css (11) database (9) design (39) development (43) framework (14) germany (15) github (13) Good Reads (13) google (20) guatemala (10) guide (14) html5 (10) ideas (16) ios (11) javascript (84) jquery (17) json (10) maps (9) mexico (15) microsoft (15) mobile (16) mvc (30) open source (10) photos (36) ravendb (9) reblog (13) rest (15) security (14) spa (12) startups (30) tool (10) twitter (10) video (15) web api (12) windows (10)
    ©2019 ben powell | WordPress Theme by Superb Themes
    loading Cancel
    Post was not sent - check your email addresses!
    Email check failed, please try again
    Sorry, your blog cannot share posts by email.