pautasso / restalk-lrr

RESTalk Long Running Request

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RESTalk Long Running Operation

RESTalk Long Running Operation Polling with Node.js

A node.js example which will call any slow URL (configurable in the code) and allow clients to observe the progress of the call using the Long Running Operation Polling Conversation pattern described here:

http://restalk-patterns.org/long-running-operation-polling.html

How to use

  1. Configure the getTarget() function with the URL of the slow operation to invoke
  2. node index.js

How to test

The code is preconfigured to use the slow URL from a separate server found inside test/wait.js

About

RESTalk Long Running Request

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%