vertx-eventbus

How can I send RoutingContext object from routing verticle to some other verticle using vertx.eventBus().send() method?

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 14:51:22
问题 From my routing verticle which has route URL, I want to send RoutingContext object to another verticle. I believe we can only use vertx.eventBus().send() to send message from routing verticle to some other action verticle. Can I send RoutingContext object as a message? In router verticle I am doing vertx.eventBus().<RoutingContext>send("address", routingContext) and in consumer verticle I am doing vertx.eventBus().<RoutingContext>consumer("address").handler(message -> { RoutingContext

How can I send RoutingContext object from routing verticle to some other verticle using vertx.eventBus().send() method?

江枫思渺然 提交于 2021-02-11 14:50:30
问题 From my routing verticle which has route URL, I want to send RoutingContext object to another verticle. I believe we can only use vertx.eventBus().send() to send message from routing verticle to some other action verticle. Can I send RoutingContext object as a message? In router verticle I am doing vertx.eventBus().<RoutingContext>send("address", routingContext) and in consumer verticle I am doing vertx.eventBus().<RoutingContext>consumer("address").handler(message -> { RoutingContext

I am mocking the method but in the test when i called the method, debugger going inside the method and expecting something i am not sure why

廉价感情. 提交于 2021-01-29 17:20:52
问题 Here I am mocking it and expecting nothing from the method, but when I send the request body through eventbus request was going inside the method, which I am not expecting. Can anyone help me with this issue? I didn't mocked any JDBC client and in the config file too I am giving empty credentials, since I am mocking it. public class verticle extends AbstractVertcile { private void jdbcCall(JsonArray data, Future<JsonArray> promise) { String first_name = data.getValue(first_name); String last

Behaviour of Vert.x Event-bus when reaching the limit

我们两清 提交于 2020-12-13 03:26:12
问题 I'm missing one piece of understanding of how Event Bus / Hazelcast works. Imagine a case with a consumer and a producer verticles communicating over the clustered EB. The consuming part is doing CPU / memory / IO-intensive calculations. When at some point due to the load the consumer is not able to handle the messages immediately, what is going to happen? Would the messages be queueed inside the ring-buffer and eventually be processed later (considering Netty's SingleThreadEventLoop limits

Behaviour of Vert.x Event-bus when reaching the limit

廉价感情. 提交于 2020-12-13 03:23:32
问题 I'm missing one piece of understanding of how Event Bus / Hazelcast works. Imagine a case with a consumer and a producer verticles communicating over the clustered EB. The consuming part is doing CPU / memory / IO-intensive calculations. When at some point due to the load the consumer is not able to handle the messages immediately, what is going to happen? Would the messages be queueed inside the ring-buffer and eventually be processed later (considering Netty's SingleThreadEventLoop limits