Eclipse Vert.x cheat sheet for reactive and distributed systems

By: Clement Escoffier

Updated: 3/24/2017

Applications using Eclipse Vert.x are fast, responsive, resilient, and elastic. They are event-driven, non-blocking, and can run on top of the Java Virtual Machine while offering many language choices. This cheat sheet, author Clement Escoffier, provides step-by-step details to help you create your apps the way you want to.

This cheat sheet explains how to:

  • Program with Eclipse Vert.x.

  • Understand reactive systems.

  • Create apps with Apache Maven, Gradle, and the Vert.x command line interface.

  • Create, deploy, and configure verticles.

  • Communicate between components with the event bus.

Cheat sheet cover

Access the Eclipse Vert.x cheat sheet now

Create a Vert.x application

2.A Create a Vert.x application with Apache Maven
Command

 

Description

# Linux and MacOS

git clone https://github.com/vert-x3/

vertx-maven-starter.git PROJECT_NAME

cd PROJECT_NAME

./redeploy.sh

# Windows

git clone https://github.com/vert-x3/

vertx-maven-starter.git PROJECT_NAME

cd PROJECT_NAME

redeploy.bat

Generate and Run

It generates the project structure and starts

the application in redeploy mode: your

changes recompile and restart the

application. The stated application

is accessible from http://localhost:8080

mvn package

Package

An executable fat jar is created in the target

directory.

Add the dependency in the pom.xml file

Dependency management

Add the dependency in the pom.xml file

Import the project as a Maven project in your

favorite IDE

IDE support
Figure

Access the Eclipse Vert.x cheat sheet now