-
Notifications
You must be signed in to change notification settings - Fork 17
RedirectInterceptor
Markus Sabadello edited this page Nov 19, 2015
·
1 revision
This is an interceptor that uses XDI routing to forward XDI messages received by a [messaging target](messaging targets).
The purpose of the RedirectInterceptor is to "redirect" an incoming XDI message to a target different from the [messaging target](messaging targets) that the XDI message is currently being executed against. This redirect target may be local or remote, as determined by an XDI routing process.
Example use cases:
- Logical separation of XDI2 servers without persistence layer ("business servers") from XDI2 servers with persistence layer ("graph servers")
- Various gatekeeping/firewalling/proxying/auditing scenarios, in which an intermediate XDI2 server pre-processes an XDI request before passing it on the actual intended target XDI2 server.
- Load balancing and sharding, by forwarding XDI requests to different XDI2 servers, e.g. based on the type of operation, or based on the (part of a) graph that the operation applies to.
- Configuration of highly specialized XDI2 servers, e.g. for caching or signing purposes.
- xdiAgent: An XDIAgent for XDI routing of XDI messages to their target.
- requireRoute: Whether an excption should be thrown if no valid route is found.
- skipSiblingInterceptors: Whether to skip sibling interceptors.
- skipMessagingTarget: Whether to skip the messaging target.
This work is licensed under a Creative Commons Attribution 4.0 International License.