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
17
votes
6 answers

Run Vertx in an IDE

Is there any way to run Vertx from within an IDE? I know I can create a server in a file and then call vertx run server.java from the command line, but is there a way to run the server.java file from within an IDE?
j will
  • 3,747
  • 11
  • 41
  • 64
17
votes
5 answers

Clustering and Shared Data in Vert.x

I'm developing in Vert.x (based on Netty and Hazelcast), and I'm trying to share data between two server instances (eache of those instances in different machines, on the same lan). My problem is that I don't know how to configure the vert.x servers…
castarco
  • 1,368
  • 2
  • 17
  • 33
16
votes
1 answer

Spring Webflux vs Vert.x

We need to start working on a microservice with an initial plan to use Vert.x for the same. With the recent Milestone releases of Springboot 2.0 including the Reactive support, we are now also considering Springboot 2.0 as an option, but since this…
piyugupt
  • 404
  • 2
  • 5
  • 14
15
votes
8 answers

Vertx-web: where do I place webroot folder?

This should be an easy one, but it's not been so far. I've been working with vert.x 2 for a bit and switched to vert.x 3 recently. I thought I'd try a simple vertx-web example but can't get past a simple serving up of static files. My server class…
Dave Taubler
  • 1,081
  • 3
  • 12
  • 25
15
votes
4 answers

Verticles and uncaught exceptions

Considering the scenario that one of the verticles throws an uncaught exception. What happens next? If the verticle state is removed from the system is there some mechanism similar to erlang supervisors to restart the verticle? Documentation is…
mhstnsc
  • 848
  • 1
  • 10
  • 24
15
votes
2 answers

vert.x Wait for reply on multiple messages

In vert.x I can send a message to another verticle and "wait asynchronously" for the reply. The problem is: I want to send messages to multiple verticles and make an async handler to be called when all verticles replied. Is this possible or is…
TiagoOliveira
  • 507
  • 6
  • 17
14
votes
2 answers

Stop vertx verticle in Eclipse

I'm following Jenkov's tutorial on vertx. Here I have two files: MyVerticle.java: import io.vertx.core.AbstractVerticle; import io.vertx.core.Future; public class MyVerticle extends AbstractVerticle { @Override public void…
Diep TL
  • 163
  • 1
  • 1
  • 5
13
votes
4 answers

can vert.x event bus replace the need for Kafka?

I am evaluating the vert.x framework to see if I can reduce the Kafka based communications between my microservices developed using spring boot. The question is: Can I replace Kafka with vert.x event bus and spring boot microservices with vert.x…
rrshah
  • 183
  • 1
  • 9
13
votes
3 answers

Vert.x java List parameterization

I ran in to a strange issue with Vert.x futures the other day that doesn't break the code but bothers me still. Future without parameter results in the following warning: Future is a raw type. References to generic type Future should be…
Rauno
  • 616
  • 8
  • 22
12
votes
6 answers

How to correlate log events in distributed Vertx system

while doing logs in the multiple module of vertx, it is a basic requirement that we should be able to correlate all the logs for a single request. as vertx being asynchronous what will be the best place to keep logid, conversationid, eventid. any…
Kishore Tulsiani
  • 1,106
  • 13
  • 29
10
votes
3 answers

Asynchronous (non-blocking) version of synchronized(){}

Is there a good way to implement an asynchronous version of synchronized keyword? Obviously the synchronized() keyword will frequently block the current thread. For example: public static boolean getLockSync(Runnable r) { if (isLocked) { …
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
10
votes
2 answers

vertx - how to read stream from executable program async

I have generator g , once I run it from console , it starts writing to console output(stdout) sleep for x seconds and continue , a stream of data . I would like my program to run g and bind to his output to java vertx application as stream input. I…
yoav.str
  • 1,547
  • 6
  • 33
  • 73
10
votes
1 answer

Is it possible to avoid serialization when using the Vert.x eventbus 'locally' (java, single jvm)?

My case is: single JVM Java only (i don't need to be polyglot) I don't want to pay serialization costs to publish an immutable event on the bus (publishing the reference to the java object would work). I understand the scope of the vert.x event…
10
votes
1 answer

How to open Swagger-ui from vert.x

I want to implement Swagger-UI in Vert.X app. I have listed all routes and I want to see them in swagger-ui like in SpringBoot. I have also manually edited them in swagger-editor. So, how to open localhost:8080/swagger-ui.html from vert.x app and…
xmlParser
  • 1,903
  • 4
  • 19
  • 48
10
votes
1 answer

How to manage connected users over websocket using Vert.x 3?

To convince some people to switch from old school tech, I need to build a chat demo application that manages more than 10K concurrent connections using Java (like Node.Js stuff). I have tested Netty 5.0 which is awesome but requires lot of work to…
merou
  • 109
  • 1
  • 4