Skullabs/kos

High-level event-consumption API

Closed this issue · 0 comments

miere commented

This is a proposal of a simple wrapper over Vert.x Event Bus. The main idea is not to hide the event bus from the developer but to automate the trivial, but repetitive, task of receiving events using Vert.x.

How it would work

  • There will be an annotation marking a method as an event subscriber
  • The method must accept up to one parameter, which will be the received message payload.

What's not included in this proposal

  • The publisher API.

What's the main goal of this API

  • Reduce all the boilerplate required to listen to EventBus events
  • Provide a consistent API to receive events