Monitor Event Bus

559 views
Skip to first unread message

André Pinto

unread,
Nov 16, 2013, 7:36:46 AM11/16/13
to ve...@googlegroups.com
Is there any way (or even mod) to monitor the messages being sent over the Event Bus? This would be a great help when debugging message passing.

Thanks.

Leng Sheng Hong

unread,
Nov 16, 2013, 10:23:12 AM11/16/13
to ve...@googlegroups.com
I use mod shell to test my app, just start ur app with -cluster and start mod shell as -cluster as well. Then try debugging by sending using command bus -r msg which will wait for the reply from the eventbus sender.

André Pinto

unread,
Nov 16, 2013, 10:53:24 AM11/16/13
to ve...@googlegroups.com
Thanks Leng, that is quite convenient.

However, I was looking for something more focused on monitoring/logging all the messages passing through the event bus between any two verticles, and not really a REPL to interact with verticles and the event bus.

I've tried to use AspectJ LTW to advice DefaultEventBus.sendOrPub(), but I wasn't able to make it work with vert.x.

Mumuney Abdlquadri

unread,
Nov 18, 2013, 3:12:08 AM11/18/13
to ve...@googlegroups.com
https://github.com/kuujo/vertigo
> --
> You received this message because you are subscribed to the Google Groups
> "vert.x" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vertx+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

André Pinto

unread,
Nov 18, 2013, 3:45:00 AM11/18/13
to ve...@googlegroups.com

Thanks but I don't see how vertigo would be able to do this (log all the messages being sent to the event bus). I'm actually using vertigo and trying to debug it. That's why I need this feature in the first place.

I guess IntelliJ's logged breakpoints will have to do for now (or editing the relevant vert.x methods).

You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/XVqcX5h61fU/unsubscribe.
To unsubscribe from this group and all of its topics, send an email to vertx+un...@googlegroups.com.

Daryl Teo

unread,
Nov 18, 2013, 4:49:45 AM11/18/13
to ve...@googlegroups.com
I believe this idea was posted in the past but nothing came of it. There are a couple of issues with this. Not all "eventbus messages" are sent over socket, as the registered handlers in question could actually be in the same server. Vert.x as it stands does not provide a way to retrieve a log of messages sent, nor can it replay the messages to a "catch all". There might also be conceptual issues with what data you get on different instances of vertx in a cluster environment (do you get data sent/received by that instance or for all instances?)

Assuming that the data being sent is legit, do you not only require validation on the receiving end?

Daryl
Reply all
Reply to author
Forward
0 new messages