Skip to main content

ADR 002: Vert.x 4 for asynchronous operations

Status: accepted

Context​

Asynchronous work handled with conventional thread management is complex and at times inefficient. Vert.x 4 was considered to simplify it and to scale better.

Decision​

Vert.x 4 is used for every asynchronous and reactive operation.

  • Scalability. Designed for reactive applications, with efficient use of resources under high concurrency.
  • Simplicity. A reactive programming model that is simpler than managing threads by hand.
  • Integration. Works with Quarkus.

Consequences​

Benefits

  • Better performance and scalability.
  • Simpler code for asynchronous operations.
  • Better use of resources in a cloud environment.

Costs

  • A learning curve on the reactive paradigm.
  • Existing code has to be refactored to the reactive model.

Alternatives considered​

  • Completable futures in Java 21. Easier to adopt, but less capable under highly concurrent workloads.