Knotx / knotx

Knot.x is a highly-efficient and scalable integration framework designed to build backend APIs
https://knotx.io
Apache License 2.0
126 stars 26 forks source link

Customize request routing outside Knots #297

Closed mariuszkubis closed 7 years ago

mariuszkubis commented 7 years ago

Currently, Knot.X routes every request through Repository Connector and Fragment Splitter ... Fragment Assembler. In some scenarios, we want to be able to skip this path and define another. A new structure should be introduced (e.g. called FlowRoute or Atom) which will contain details on how to process the request. Server will decide which requests should be routed through which Atom.

In the current design, a default Atom would wrap the flow from RepositoryConnector to FragmentAssembler. In the new solution, we will be able to define new Atoms with a custom flow.

Every Atom should define input and output contract.

tomaszmichalak commented 7 years ago

This task was implemented in: https://github.com/Cognifide/knotx/pull/299.