Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The router allows request to be forwarded to one or more external services (these could be mediators or an actual HIE component). It describes where to forward the request and the who has access to that request. A route can be marked as primary there are more than one routes to which a request is forwardeddoes this by allowing the user to configure a number of channels. Each channel matches a certain path and contains a number of routes on which to forward requests. Request may be forwarded to multiple routes however there can only be one primary route. The primary route is a the route where the whose response is expected to be relayed returned back to the service request that is requester making use of the OpenHIM.

Channel will be able to be added, removed and updated dynamically as the application is running.

A custom router will have to be developed that can route according to these rules. The router can be build using the node.js functions provides to make HTTP request and responses can be relayed using the .pipe() function.

...