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
67
votes
4 answers

Refresh access_token via refresh_token in Keycloak

I need to make the user keep login in the system if the user's access_token get expired and user want to keep login. How can I get newly updated access_token with the use of refresh_token on Keycloak? I am using vertx-auth for the auth…
RaiBnod
  • 2,141
  • 2
  • 19
  • 25
56
votes
2 answers

Difference in message-passing model of Akka and Vert.x

Am a Scala programmer and understand Akka from a developer point of view. I have not looked into Akka library's code. Have read about the two types of actors in the Akka model - thread-based and event-based - but not having run Akka at large scale I…
Bharadwaj
  • 1,361
  • 1
  • 9
  • 24
43
votes
4 answers

'setter for mainClassName: String' is deprecated. Deprecated in Java

I have a vert.x web app written in Kotlin and Gradle as the build tool. The web app has been generated with https://start.vertx.io/. In the build.gradle.kts it shows: that mainClassName has been deprecated. the content of the build.gradle.kts…
softshipper
  • 32,463
  • 51
  • 192
  • 400
34
votes
5 answers

How to start Vert.x server from IntelliJ IDEA?

How do I start a simple Vert.x server from inside IntelliJ IDEA? My build.gradle is as below: apply plugin: 'java' version = '3.0.0' repositories { mavenCentral() } dependencies { compile 'io.vertx:vertx-core:3.0.0' } My Vertx-server,…
Jonas
  • 121,568
  • 97
  • 310
  • 388
29
votes
6 answers

Elegant mapping from POJOs to vertx.io's JsonObject?

I am currently working on a vertx.io application and wanted to use the provide mongo api for data storage. I currently have a rather clunky abstraction on top of the stock JsonObject classes where all get and set methods are replaced with things…
grdaneault
  • 830
  • 1
  • 11
  • 21
29
votes
2 answers

Tomcat vs Vert.x

For the past few days I have been reading Vert.x documents. I know that Vert.x is polyglot, single threaded, non-blocking IO, modular architecture, high scalability. Is there any other major differences between tomcat and Vert.x? Also when we…
Ronald Randon
  • 1,141
  • 3
  • 13
  • 19
25
votes
1 answer

What is the difference between Vert.x and Netty?

What is the difference between Vert.x and Netty? Why should one ever prefer Netty over Vert.x? Both of them are event-driven, non-blocking and asynchronous frameworks designed for high-load I/O. Vert.x is based on Multi-Reactor pattern (Node's…
VB_
  • 45,112
  • 42
  • 145
  • 293
24
votes
3 answers

Load balancing sockets on a horizontally scaling WebSocket server?

Every few months when thinking through a personal project that involves sockets I find myself having the question of "How would you properly load balance sockets on a dynamic horizontally scaling WebSocket server?" I understand the theory behind…
spierce7
  • 14,797
  • 13
  • 65
  • 106
23
votes
3 answers

Vert.x 3 and Microservices

Microservices are gaining traction as an software architecture style that will better support continuous delivery, provide a model for rapid deployment and separation of concerns. Vert.x 3 and Vert.x-Apex provide an interesting model for building a…
Wieki
  • 395
  • 2
  • 11
23
votes
4 answers

How to disable the BlockedThreadChecker of Vert.x?

The BlockedThreadChecker causes a lot of stdout when debugging vert.x code. This question relates to vert.x 3.
Jotschi
  • 3,270
  • 3
  • 31
  • 52
22
votes
3 answers

Difference between vert.x and RxJava

We are evaluating reactive programming frameworks for one of our projects. I just went through vert.x tutorials. I checked RxJava presentation a bit. RxJava seemed more close to CompletableFuture. But despite the underlying patterns, both RxJava and…
user3276247
  • 1,046
  • 2
  • 9
  • 24
22
votes
1 answer

How does vert.x achieve superior performance compared to Netty?

The recent TechEmpower performance benchmarks have been showing vert.x on top of Netty, sometimes by a large amount. According to its website, vert.x uses Netty for "much of its network IO". If so, how does it achieve superior performance as…
osman
  • 1,590
  • 1
  • 14
  • 21
19
votes
2 answers

Unable to access request body using getBodyAsJson() in Vert.X 3.0.0

I am using Vert.x 3.0.0-milestone5, to develop a sample web application. Everything is working fine as far as the routing is concerned, but I am not able to access request parameters using routingContext.getBodyAsJson() or …
Rahul Bhooteshwar
  • 1,675
  • 17
  • 31
18
votes
5 answers

What is the difference between future and promise in vertx?

I usually see the use of either promise and future in the start of a vert.x verticle. Is there any specific difference between both? I have read about their differences in Scala language, is it the same in case of Vert.x too? Also when should I…
Shrreya Behll
  • 185
  • 1
  • 10
18
votes
3 answers

Vert.x Event loop - How is this asynchronous?

I'm playing around with Vert.x and quite new to the servers based on event loop as opposed to the thread/connection model. public void start(Future fut) { vertx .createHttpServer() .requestHandler(r -> { …
user378101
  • 649
  • 3
  • 12
  • 19
1
2 3
99 100