Questions tagged [vert.x]

Vert.x is an event driven toolkit that runs on the JVM allowing the development of asynchronous web applications in Java, Javascript, Scala, Ruby, Ceylon, Kotlin and Groovy.

Vert.x is a polyglot event driven non-blocking toolkit that runs on the JVM - a run-time with real concurrency and unrivalled performance. Vert.x then exposes the API in , , , , , and . So you choose what language you want to use and you can even mix and match different languages. It can be used to create microservices, and can also be embedded.

Vert.x has also a powerful module system so you can package your Vert.x components into modules for encapsulation and reuse or even publishing them for the community.

Vert.x can be used as your base application stack from the ground up, but also can be embedded as a dependency of an existing application.

The framework also bundle a host of goodies out-of-the-box including a distributed event bus, , , a persistor and many other features so you can write real applications from the set-off. The event bus can be accessed using protocol, and various third party libraries exists to do so for several languages (, , , , , ...). A library called eventbus-client.js can also be used in client Javascript code.

2596 questions
7
votes
1 answer

vertx IllegalArgumentException: No message codec for type - how to create a consumer for a custom type

I have a verticle that creates an event bus consumer as follows: public void start() { vertx.eventBus().consumer(ADDRESS_REQUEST, this::handleRequestMessage); } private void handleRequestMessage(Message msg)…
Orkun
  • 6,998
  • 8
  • 56
  • 103
7
votes
1 answer

Vertx: executeBlocking() vs Future. What's the difference?

Vertx docs suggests to use executeBlocking() method when one needs to call blocking API. On the other hand Vertx also offers a notion of Future which basically do the same thing. But the executeBlocking() method isn't static. It is also not a simple…
Evan
  • 649
  • 1
  • 9
  • 22
7
votes
3 answers

how to set system property in spring boot application

I have a requirement to set system property in spring boot application. I don't want to set it from command line. My concern is what is the best practice to do it. Either from constructor Or inside main method. Below is sample for setting it from…
KRR16
  • 187
  • 2
  • 3
  • 10
7
votes
2 answers

Maven dependency module not found

I have a rather simple project structure in Maven with sub-modules: / -pom.xml -Utils/ -pom.xml In /pom.xml I define properties for all sub-modules, like library versions or plugins configurations:
aiko
  • 423
  • 1
  • 4
  • 11
7
votes
2 answers

How to refactor chain of asynchronous calls in vertx to avoid the callback hell

I have the following code with several asynchronous calls depending on each other (calls can be apis REST, for example) and in the end process all the results. This is my sample code: private void foo1(String uuid, Handler>…
oscar
  • 1,636
  • 6
  • 31
  • 59
7
votes
1 answer

Annotation-based Swagger documentation for Vert.x

Is there any annotation based Swagger Documentation creator available for Vert.x yet ? The rest end points are all managed using routers and as such if there is any way available to generate the Swagger documentation, that would be great. I've gone…
7
votes
0 answers

Log Correlation ID with Vertx

I'd like to add a correlation ID to my logs, so that I can follow calls across different servers. However I am using Vert.x and can not use MDC or ThreadLocal. Any Ideas?
clausmc
  • 300
  • 4
  • 14
7
votes
5 answers

how to parse query argument using vertx?

I wanted to check if we can use getparam to parse start_time and end_time from the below request URL https://[--hostname--]/sample_app/apthroughput/getAllControllers?start_time=&end_time=&label=
nocturnal
  • 395
  • 2
  • 6
  • 15
7
votes
1 answer

Connection error in websocket over amazon ELB

My service resides in a server which has amazon ELB. The client portion communicates with the server by vertx eventbus. While trying to connect the server following logs pops out WebSocket connection to…
7
votes
3 answers

vertX eventBus consumer listens to all addresses

I'd like to write a catch all eventBus consumer. Is this possible? eB = vertx.eventBus(); MessageConsumer consumer = eB.consumer("*"); // What is catch all address ??? consumer.handler(message -> { Log.info("Received: " +…
rupweb
  • 3,052
  • 1
  • 30
  • 57
7
votes
1 answer

Best practice design on vertx. Eventbus or Singleton for repositories

I am using vertx3 I need to use redis in order to set and get values.(Redis might be changed to something else in the future) Iam looking for best practice design for my implementation. I am working on vertx cluster and I need to retrieve a messages…
rayman
  • 20,786
  • 45
  • 148
  • 246
7
votes
2 answers

How I could use an independent log4j instance in my vert.x application?

I'm developing a vert.x application. Specifically, I'm using Java + Eclipse + Maven + Vert.x. I read that JUL is the preferred logging framework and that vertx.log is saved under /tmp (I'm a linux user). Actually, I'd like to use log4j and generate…
redcrow
  • 1,743
  • 3
  • 25
  • 45
7
votes
2 answers

Will Vert.x pose a threat to Node.js's user base due to it's much better performance?

Benchmark Hacker News Discussion Hacker News Discussion 2
prodev42
  • 6,389
  • 8
  • 32
  • 35
6
votes
1 answer

What's the difference between the send and publish methods of Vertx's EventBus?

I'm having my first contact with Vertx's EventBus and I realized there are two ways to submit a message. Used the send or publish method. I ask: What is the practical difference between using these two methods and in what scenario do they use each…
cazuzaneto
  • 175
  • 2
  • 9
6
votes
2 answers

Vert.x: How to wait for a future to complete

Is there a way to wait for a future to complete without blocking the event loop? An example of a use case with querying Mongo: Future dbFut = Future.future(); mongo.findOne("myusers", myQuery, new JsonObject(), res -> { …
mszmurlo
  • 1,250
  • 1
  • 13
  • 28