Vert.x - Event-loop

Java Conceptuel Diagram


This page is about th event loop in Vertx.

Vert.x calls handlers by using a thread known as an event loop.


The event loop is created with a Vertx object.

  • Every event loop is attached to a thread.
  • By default Vert.x attaches 2 event loops per CPU core thread.
  • Same thread processing: The direct consequence of 2 event loops per CPU is that a regular verticle always processes events on the same thread, so there is no need to use thread coordination mechanisms to manipulate a verticle state (e.g, Java class fields).

Discover More
Card Puncher Data Processing
Data Processing - Reactive Stream Processing

Reactive Streams is the standard/specification for reactive data processing (ie observer, asynchronous processing) The characteristics are: functional programming fashion non-blocking backpressure...
Java Conceptuel Diagram
Java - Vert.X Framework

Vert.x is not a framework but a toolkit: the core library defines the fundamental APIs for writing asynchronous networked applications, and then you can pick the useful modules for your application (e.g.,...
Java Conceptuel Diagram
Vert.x - Blocking Code

This page is blocking code in Vert.x that will block the event loop. By default, blocking code is executed on the Vert.x worker pool. promise can be composed, the database start first, then the...

Share this page:
Follow us:
Task Runner