Skip to content

Sample app using a Circuit Breaker to fail over Watson Assistant requests to a secondary region

License

Notifications You must be signed in to change notification settings

robinbobbitt/multi-region-watson-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multi-region-watson-assistant

This sample app demonstrates how to use the circuit breaker pattern to fail over Watson Assistant requests from one region to another.

See Building a multi-region IBM Watson Assistant application for details.

Running the app

  1. Install dependencies

    npm install
    
  2. Update config.json with proper values for your Watson Assistant instance

  3. Start the application

    npm start
    
  4. Send messages to Watson Assistant via a POST request

    curl -X POST \
      http://localhost:3000/message \
      -H 'Content-Type: application/json' \
      -d '{
        "text": "hello",
        "context": {}
    }'
    
  5. For subsequent requests, use the context from the previous response.

About

Sample app using a Circuit Breaker to fail over Watson Assistant requests to a secondary region

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published