Message brokersolves to
Lightweight message broker = event-bus?
Message broker can be a good solution for requirements doing in-
JVM (Java Virtual Machine) communication as of:
- Subscribing your
event-listenerfor some specific
eventsmerely to interested
- Strongly decoupling the
- Considering privacy issues (no simple broadcast) …
In the article refcodes-eventbus: Observer + Publish–subscribe = Message broker I describe the
refcodes-eventbusaccompanied with a plain simple example on how to use it.
refcodes-eventbus artifact makes use of the
refcodes-matcher framework for defining the
criteria on when to deliver an
event to an
event-listener. It also sets on top of the
refcodes-observer framework regarding issues around the
Observer pattern …
Beyond the realms of your JVM …
RPC(remote procedure call) framework would extend the
refcodes-eventbusbeyond the borders of a single
RPC, see also the article on refcodes-remoting: Face-to-face lightweight remote method calls!