Skip to content

Latest commit

 

History

History

jquery

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

JQuery Example

This example exposes a simple service at the route http://localhost:3000/flakeyService. For every request the service receives, the response time is increased. The service returns a 423 (Locked) error if the response time is above 1000ms. This example also has a web frontend at http://localhost:3000/ for interacting with the service.

  1. Navigate to the examples/jquery/ directory
$ cd examples/jquery/	
  1. Start the server.
$ npm install
$ npm start
  1. Browse to the web frontend at http://localhost:3000 and click the Flaky Service button repeatedly to interact with the service. Notice the response time increases with every interaction. Once the response time is greater than the timeout setting, the fallback action is triggered.