-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Routing operation exposed via Event Bus #13
Comments
Additional references here: https://vertx.io/blog/vert-x-web-api-service-introduction/ |
Analysis
This makes the encapsulation of the service logic easy to achieve. The class that implements the interface is exposed via Event Bus, and its methods correspond with operations defined in the Open API spec configuration. This allows you to create an interface in the form of:
ScalabilityEach service implementation is exposed with a dedicated Verticle. This allows us to define more instances of the same service that listen on a specific address (Vert.x provides load balancing ootb). Use casesWith this approach we need to serialize all request (think about streams) data and send it via Event Bus. It fits well REST API interfaces but make it more complicated when we define more complex endpoints. So the current implementation (with io.knotx.server.api.handler.RoutingHandlerFactory) is valid and allows to define Handlers in the form of chain. ProblemsWe need to make sure that we do not register routing handlers when ExampleThe example interface should be a part of https://github.com/Knotx/knotx-example-project. |
…ervices Routing operation exposed via Event Bus
@tomaszmichalak should this issue be closed by now? |
Vert.x API Contract allows to define operations that are consumed by event bus handlers. This functionality comes from https://vertx.io/docs/vertx-web-api-service/java/. This issue is about defining and implementing this new functionality.
The text was updated successfully, but these errors were encountered: