Develop with VertX

This was a post writted for Making Devs Blog. Recently we use the project Vertx for develop a project. Now I’m going to talk about the basic functionality. VertX is a tool-kit for building reactive applications on the JVM. It has many interesting features: Actor model based. It’s polyglot: you can use with Java, Groovy, Ruby, Scala, Ceylon, Javascript, and Kotlin. Verticles For the beginning it’s important know that VertX has a nervous system called Event Bus, where you can write and run Verticles.

Continue reading

Connect Vertx with MongoDB using Groovy

Create a Simple Connection With Vertx, MongoDB and Groovy You have to install VertX 3.3.3, Groovy, and Mongo DB. Create a simple groovy script Include the next imports import io.vertx.groovy.core.Vertx import io.vertx.groovy.ext.mongo.MongoClient Add the configuration for Mongo DB. def config = Vertx.currentContext().config() def uri = config.mongo_uri if (uri == null) { uri = "mongodb://localhost:27017" } def db = config.mongo_db if (db == null) { db = "test"//<---------------database name } def mongoconfig = [ connection_string:uri, db_name:db ] def mongoClient = MongoClient.

Continue reading