Vert.x examples is a collection of code samples demonstrating how to build applications with Vert.x, a reactive toolkit for the Java Virtual Machine.
The repository addresses the challenge of learning Vert.x by providing working examples across its ecosystem. Most examples are structured as verticles, which are Vert.x's unit of deployment that simplifies scaling and command-line execution, though verticles are optional and the same code can run embedded. Examples cover Vert.x core functionality, web applications via Vert.x-Web, HTTP clients, service discovery, testing with JUnit 5, distributed tracing with Zipkin, gRPC services, RxJava integration, Kotlin coroutines, virtual threads, and mail operations. Many Java examples include a main method for direct execution in an IDE.
Developers learning Vert.x or evaluating it for a new project should use these examples to understand the framework's patterns and capabilities. The collection is particularly useful for those building reactive, asynchronous applications on the JVM or exploring how Vert.x integrates with complementary technologies like RxJava, gRPC, or Kotlin. The examples span from basic core operations to advanced patterns, making them suitable for both newcomers and those exploring specific Vert.x modules.
The project maintains examples for multiple major versions of Vert.x, with separate branches preserving examples for earlier releases. The repository includes examples across a broad range of Vert.x modules and integrations, indicating sustained effort to keep the ecosystem's learning materials comprehensive. Development activity spans core framework patterns, web toolkit usage, client implementations, and emerging features like virtual threads support.