Questions tagged [vertx3]

Vert.x is a polyglot event-driven application framework for building reactive applications which run on the Java Virtual Machine.

Vert.x is a lightweight, polyglot, event-driven high performance application platform for the JVM that's designed for modern reactive applications.

41 questions
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
8
votes
1 answer

How do I start a Vertx 3 Verticle from a main method?

How do I start a Verx 3 Verticle from a main method? I have figured out how to start it from unit tests and the getting started guide explains how to build a fat jar. But how do I simply start it from a main method for the purpose of debugging,…
Alexander Torstling
  • 18,552
  • 7
  • 62
  • 74
6
votes
1 answer

Limit the number of event loops

In vertx docs they mentioned there is a possibility to limit the number of event loop threads per vertx instance: Instead of a single event loop, each Vertx instance maintains several event loops. By default we choose the number based on the number…
Shay Tsadok
  • 913
  • 1
  • 7
  • 26
5
votes
1 answer

Difference between Vertx and Spring Boot

Vertx and Spring both can be used to build entire REST application with many features like metrics calculation, monitoring via JMX etx. a) What is the difference between Spring Boot and Vertx? b) I stumbled upon an article:…
Dipesh Gupta
  • 787
  • 1
  • 7
  • 20
5
votes
2 answers

vert.x use more than one handler

Is it possible to add 2 handlers for a path? I need to load html contents from a folder and check session values when i access / path. If i place router.route().handler(StaticHandler.create().setWebRoot("webroot")); it will read contents from…
din_oops
  • 698
  • 1
  • 9
  • 27
4
votes
3 answers

Handling multipart form in Vertx

I have got a multipart form with some text fields and some upload files. I need to handle this multipart post request in vertx handler so that all the uploaded files (variable number) should be read in chunks (for memory effeciency purpose). The…
Obaid Maroof
  • 1,523
  • 2
  • 19
  • 40
4
votes
2 answers

How to solve Vertx blocking DNS issue

TL;DR: is it possible to overcome blocking DNS issues with Vertx? Preferably with Vertx HttpClient? I'm trying to use Vertx to scrape some URLs with different hosts. I'm currently using Vertx HttpClient to do so, I've recently encountered an issue…
Gideon
  • 2,211
  • 5
  • 29
  • 47
4
votes
2 answers

Storing a list of values with timestamp in Redis

I'm working with Vertx and Redis and I need to store triplets of (url, words, date). Words is a list of values and not just a long string because when I query for these words I want to work on a list of strings. The date should be updated everytime…
Gideon
  • 2,211
  • 5
  • 29
  • 47
4
votes
2 answers

Cannot communicate using event bus for verticles running on different machines

We were trying to establish communication between verticles using event bus. We tried the simplest ping-pong communication example - public class Sender extends AbstractVerticle { public static void main(String[] args) { …
Abhishek Kedia
  • 867
  • 6
  • 17
4
votes
1 answer

How to pass VertxOptions from command line (like worker threads)

How to pass VertxOptions from command line (like worker threads)? I'm talking about something like this: java -jar fat.jar --workerThreads 40 or vertx run server.js --workerThreads 40 There is no mention of that parameter in manual or API. Is…
Tereska
  • 751
  • 1
  • 7
  • 25
3
votes
1 answer

Chaining Observable & Emitting / Passing Original Emit to Subscribe Call

I have a use case where I'm consuming messages, saving them and then replying success or fail. The mongo insert returns an Observable so I can chain using flatmap. The issue is the insert Observable emits the result of the insert, but I need the…
zylum
  • 63
  • 3
3
votes
2 answers

How to test async vertx eventbus handlers without sending reply

I have two microservices written with java vertx. They communicate via eventbus. First one sends a message and second receives the message. First idea: Only reply to Vertx eventbus messages in unit test. I want to test that message is being…
Anton Ivinskyi
  • 402
  • 5
  • 17
3
votes
1 answer

Write stream into mongoDB in Java

I have a file to store in mongoDB. What I want is to avoid loading the whole file (which could be several MBs in size) instead I want to open the stream and direct it to mongoDB to keep the write operation performant. I dont mind storing the content…
Obaid Maroof
  • 1,523
  • 2
  • 19
  • 40
3
votes
1 answer

How to send a full URL HTTP request in Vertx.io

I'm using vertx.io to make several HTTP requests, the input to the program is a file containing several full URLs. Checking the vertx.io HttpClient it seems like it can only query hosts but not full URLs. For example: it will successfully query…
Gideon
  • 2,211
  • 5
  • 29
  • 47
3
votes
1 answer

Vertx shiro auth from a database

Here I found a simple vertx project that uses apache-shiro for auth. Here the user informations are stored inside src/main/resources/vertx-users.properties file like this: user.tim =…
din_oops
  • 698
  • 1
  • 9
  • 27
1
2 3