Questions tagged [vertx-eventbus]
98 questions
1
vote
1 answer
Vert.x - Clustered Mode - Message buffering
I have no experience with vert.x Just exploring as it looks interesting.
My question is, when we use event-bus in the clustered mode with infinispan or hazelcast, 1 jvm instance sends a message to an address, another jvm instance which is the…

RamPrakash
- 2,218
- 3
- 25
- 54
1
vote
0 answers
How to fix io.vertx.core.impl.NoStackTraceThrowable?
I was making a vertx verticle for Java. When I run it in IntelliJ it seems to start, but when I make a shadowjar and launch it on my Ubuntu server I get this:
INFO: Failed to bind on port: 8000
May 23, 2020 3:23:11 PM…

Alice Shunder
- 11
- 1
- 2
1
vote
1 answer
vertx-lang-kotlin-coroutines test failed
I have been writing a test class:
class TestVerticle {
@BeforeEach
fun deploy_verticle(vertx: Vertx, testContext: VertxTestContext) {
vertx.deployVerticle(Verticle(), testContext.completing())
}
@Test
fun test(vertx: Vertx,…

Babbiddiu
- 11
- 3
1
vote
1 answer
What is the best way to send a collection of objects over the Event Bus in Vertx?
I have a handler that serves HTTP requests at a given endpoint. The handler messages a verticle via the event bus that makes some external paginated REST calls, aggregates the results, and returns the results back to the handler. The result of the…

Daniel Kesner
- 226
- 4
- 16
1
vote
1 answer
Vert.x event bus client doesn't work in Angular 7 outside of a constructor
I try to use the vertx-eventbus-client.js 3.8.3 in my Angular web project. The following works fine:
declare const EventBus: any;`
@Injectable({`
providedIn: 'root'
})
export class DeviceService implements OnInit {
constructor(private…

DJTrust
- 23
- 6
1
vote
2 answers
Vertx - multiple vs single verticle for event processing
Scenario
I receive a message in a specific "address" in Vertx eventbus - the message can be of four types. The handler should process the message and send the result to another eventbus "address", its handler posts it to an external-service api.…

vvra
- 2,832
- 5
- 38
- 82
1
vote
1 answer
Scala compilation error Vert.x response future
I'm trying to replicate a code from https://vertx.io/docs/vertx-core/scala/#_the_event_bus_api but I got a compile error.
override def start(): Unit = {
vertx.eventBus.sendFuture("anAddress", "message 1").onComplete {
case Success(result)…

joao kleiber
- 37
- 1
- 8
1
vote
1 answer
No handlers for address "demo" when using Vert.x Event Bus
I am doing a demo on how to use the Vert.x event bus. However the messages are not sent to the consumer. All I got was
No handlers for address hello
when I invocked the service, Here is the consumer, Here is the exact example I am following, and…

IsaacK
- 1,178
- 1
- 19
- 49
1
vote
0 answers
Openapi router factory and eventbus
We recently shifted our apis to make use of the openapi web contract with the combination of eventbus to send and receive api responses for our clients.
It was working fine until today where we noticed that most of our apis were timing out, the…

user160108
- 930
- 3
- 8
- 38
1
vote
1 answer
How to, in vert.x, define a default codec for a collection?
Assuming I have a class named User, can I register a codec for a collection of Users?
I tried using just this:
eb.registerDefaultCodec(List::class.java, User.UserListCodec())
But it produces this error: Only classes are allowed on the left…

art-solopov
- 4,289
- 3
- 25
- 44
1
vote
1 answer
vert.x eventloop is slow consuming from eventbus
We are polling messages from kafka (using Executor Thread) and put it on vert.x eventbus. eventually the verticles(non-workers) consuming those messages from the eventbus.
we measured that the time it takes to each message to be consumed from vertx…

rayman
- 20,786
- 45
- 148
- 246
0
votes
0 answers
Call vert.x web API from another vert.x Web API
I have one vert.x WEB API exposed at localhost:8080/api/search?id=123 and relative method in java is this
@Override
public void searchUser(ServiceRequest serviceRequest, Handler> eventHandler) {
// Logic
}
I want to…

Rohit Kotak
- 173
- 1
- 17
0
votes
1 answer
How can I serialize and deserialize vert.x JsonObject and JsonArray using google gson
I am using vertx i need to transfer data using eventbus from one verticle to another so in order to fast that process need to serialize and deserialize data to save memory as vertx keeps messages in queue and also performance and time as converting…

chaitas shah
- 13
- 4
0
votes
0 answers
Is there a way to make the messages published by Vert.x event bus consumed by only one replica?
I have a simple Vertx program that runs in a clustered mode with integrated Hazelcast. In this program, the event-bus is used for event propagation. When a request is received on port 18081, an event is published, and this event is consumed and the…

张Del
- 1
0
votes
0 answers
Quarkus EventBus - Set address of ConsumeEvent
In application.properties I set the address name of the EventBus, as follows:
event-bus.channel = persist
In my consumer class, I defined the method consuming the message, with ConsumeEvent annotation:
@ApplicationScoped
@Slf4j
public class…

A M
- 831
- 1
- 14
- 26