Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Messaging Service that works like Guava's EventBus [closed]

Tags:

java

guava

Currently we are searching for a in-JVM messaging solution that provides the same slick API as the newly introduced Guava EventBus does. EventBus provides almost all necessary features but we are missing persistence and the ability to restrict handlers to a certain rate. We do not need the enterprise functionality that projects like ActiveMQ or HornetQ provide. Although the ability to run multiple nodes of our application is maybe an option later on. I would be really grateful for any pointers in the right direction.

Another possibility would be to extend the Guava EventBus with a HornetQEventBus (similiar to the ASyncEventBus) or implementing our own facade for JMS. Barebones JMS just feels a bit bloated for our purposes and I personally find the EventBus API a really good fit for our use case.

like image 818
Andreas Mohrhard Avatar asked Nov 15 '11 15:11

Andreas Mohrhard


2 Answers

Personally, I'd advise going ahead and extending EventBus, if you can. (I'm not sure we expose EventHandler and some of the other components you'd need, though. =/)

I recall that there had been some discussion among the Guava team on a Guava "throttling" API; I'm not sure how far along that got, whether there are any plans to release it, or whether it could be mixed nicely with EventBus.

like image 62
Louis Wasserman Avatar answered Oct 21 '22 03:10

Louis Wasserman


Well at present it is not possible to override the dispatch method of the EventBus there is a ongoing debate on the same and you can find it here

like image 43
Sudarshan Avatar answered Oct 21 '22 04:10

Sudarshan