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

Improve Knots usage decision #213

Closed tomaszmichalak closed 5 years ago

tomaszmichalak commented 7 years ago

Overview

Knot.x provides extension points like Knots and Adapters. They allow to provide custom features - which are not a part of core platform. This enforce Knot.x to support better Knot usage decision for particular template / snippets.

Examples

Secured content

We have a site which serves both public and secured content. This content is mixed together so we want to provide custom snippet which will check permissions for secured content. Knot Routing mechanism is not enough to handle all cases.

We expect to call Permission Knot only for pages with secured content. For public content Permission Knot should not be called at all.

Form pages

We have a site with two forms. First form is simple subscription form and does not require any data to render. Second from is connected with user profile so we need to fetch user profile from services while page rendering.

We expect to call Action Knot, Service Knot and Handlebars Knot for fragment with user profile form. We expect to call Action Knot for fragment with simple subscription form. https://github.com/Cognifide/knotx/issues/186

tomaszmichalak commented 5 years ago

This is fixed in Knot.x 2.0 here: https://github.com/Knotx/knotx-server-http.