mendicant-university/newman — Issue #36: Application router
Author: sandal
Created: 2012-02-27 00:02:25+00:00
State: open
Labels: feature

A lot of complicated issues arise from having only a single linear path to mount applications in. We need either a horizontal mapping at the top level, or a composite application router that could be dropped anywhere within the linear chain.

Top level horizontal routing:

```
request -> router ---> app_a---> response (if matched)
|
---> app_b---> response (if matched)
|
---> app_c---> response (if matched)
```

Composable router application (seems more promising / cleaner, but retains the "one request, at most one response" limitation)

```
request --> (pre apps) -> router_app ---> component_app_a------> (post apps) -> response
| |
---> component_app_b--|
| |
---> component_app_c--|
```