• Stars
    star
    3,546
  • Rank 12,511 (Top 0.3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Vert.x examples

Vert.x 4 examples

This repository contains a range of examples, so you can get up and running easily with Vert.x. 4

Vert.x 3 examples can be found here https://github.com/vert-x3/vertx-examples/tree/3.x

The examples

The examples demonstrate how to use all different bits of Vert.x including Vert.x core, Vert.x-Web and various other services and features.

Most of the examples have been written as verticles. For more information on verticles please consult the Vert.x core manual.

Using verticles allows you to scale and run your code from the command line more easily, but if you prefer the same code in the verticles can also be run embedded. It’s really up to you. Verticles are entirely optional in Vert.x.

Running the examples

Running in your IDE

Most of the Java examples can be run directly in your IDE.

We provide a main() method in most of the example classes which allows you to conveniently run them directly in your IDE.

Just right-click the main method or class in your IDE and run as…​ application (supported by all major IDEs).

Vert.x core examples

The Vert.x core examples contains a wide range of examples using just Vert.x Core.

Vert.x-Web examples

Vert.x-Web is a toolkit for building web applications using Vert.x

The Vert.x-Web examples contains a wide range of examples using Vert.x-Web

Vert.x Web Client examples

Vert.x Web Client that provides an easy-to-use web client for Vert.x.

The Vert.x Web Client examples contains a wide range of examples using the Vert.x Web Client

Vertx Unit examples

Vertx-Unit is a library for writing asynchronous tests. We include some examples of how to use this tool to test your Vert.x (or other asynchronous) applications.

The Vert.x Unit examples shows how to use Vert.x Unit.

Virtual Threads

The virtual-threads-examples module shows how to use Vert.x with virtual threads.

Vert.x JUnit 5 examples

The vertx-junit5 modules allow testing Vert.x asynchronous operations with JUnit 5.

Vert.x Opentracing examples

Vert.x Opentracing examples contains a wide range of examples using Vert.x Opentracing.

Vert.x Zipkin examples

Vert.x Zipkin examples contains a wide range of examples using Vert.x Zipkin.

RxJava examples

Vert.x for RxJava provides most of its APIs as RxJava, so you can use those if you prefer.

RxJava is a great choice when you want to perform complex operations on multiple asynchronous streams of data.

The Vert.x RxJava 2 examples contains a wide range of examples using Vert.x for RxJava 2 The Vert.x RxJava 3 examples contains a wide range of examples using Vert.x for RxJava 3

gRPC examples

The Vert.x gRPC Examples show how you can implement a gRPC service and invoke a gRPC service with Vert.x.

Kotlin examples

The Vert.x Kotlin Examples shows a few examples with Kotlin such a REST application, Kotlin coroutines and usage of KotlinTest.

Mail examples

The Vert.x Mail examples contains a few examples using Vert.x Mail

The mail examples show different ways to create the mail message and send it via tls, ssl etc. The examples either use localhost:25 to send a mail or use host mail.example.com. To actually run the examples you will have to change the mail server and the user credentials in the MailLogin example.

Service Proxy Examples

The Vert.x Service Proxy examples contains an example of service proxy usage. It depicts how a service provider can be implemented and how the published service can be consumed.

Spring Examples

The Vert.x Spring Examples shows how vert.x application can be integrated inside a Spring ecosystem.

Redis example

The Vert.x Redis Example shows how you can interact with Redis using the vert.x Redis client.

Mongo example

The Vert.x Mongo Example shows how you can interact with MongoDB using the vert.x Mongo client.

SQL client example

The Vert.x SQL Client Examples shows how you can interact PostgreSQL or MySQL Databases using the Reactive SQL client.

Kafka example

The Vert.x Kafka Examples shows how you can interact Kafka using the vert.x Kafka client.

MQTT example

The Vert.x MQTT Examples shows how you can write MQTT servers and clients using Vert.x MQTT.

Service Proxy Examples

The Vert.x Service Proxy examples contains an example of service proxy usage. It depicts how a service provider can be implemented and how the published service can be consumed.

JPMS examples

This JPMS examples shows how a simple Java (11) modular application using Vert.x as automatic modules.

HTTP/2 Showcase

This HTTP/2 Showcase application highlights the benefits of HTTP/2 when dealing with latency on the web.

Camel Bridge examples

The Vert.x Camel Bridge Examples show how you can use Apache Camel routes from the event bus.

Micrometer metrics examples

The Vert.x Micrometer metrics examples show how to collect Vert.x metrics with Micrometer and send them to backends such as Prometheus or InfluxDB.

GraphQL examples

The Vert.x Web GraphQL examples contain simple client/server GraphQL applications built with Vert.x Web GraphQL and the GraphQL-Java library.

More Repositories

1

vertx-awesome

A curated list of awesome Vert.x resources, libraries, and other nice things.
2,181
star
2

vertx-web

HTTP web applications for Vert.x
Java
1,111
star
3

vertx-guide-for-java-devs

Vert.x 3 guide for Java developers
Java
548
star
4

vertx-lang-kotlin

Vert.x for Kotlin
Kotlin
295
star
5

wiki

The wiki and issues for the vert-x3 organisation
193
star
6

vertx-mqtt

Vert.x MQTT
Java
184
star
7

advanced-vertx-guide

A gentle guide for advanced Vert.x users
CSS
171
star
8

vertx-rx

Reactive Extensions for Vert.x
Java
147
star
9

vertx-maven-starter

Maven project template for Vert.x
Java
137
star
10

vertx-redis-client

Redis client for Vert.x
Java
130
star
11

vertx-jdbc-client

JDBC support for Vert.x
Java
126
star
12

vertx-lang-scala

Vert.x for Scala
Scala
122
star
13

vertx-stack

Vert.x stack
Java
120
star
14

vertx-virtual-threads-incubator

Vert.x virtual threads incubator
Java
118
star
15

vertx-mysql-postgresql-client

This client is deprecated - use instead
Java
117
star
16

vertx-service-discovery

Some tools one can use for doing microservices with Vert.x
Java
114
star
17

vertx-sync

Java
97
star
18

vertx-gradle-starter

Gradle project template for Vert.x
Java
89
star
19

vertx-kafka-client

Reactive Kafka Client for Vert.x
Java
84
star
20

vertx-grpc

gRPC for Vert.x
Java
78
star
21

vertx-hazelcast

Hazelcast Cluster Manager for Vert.x
Java
78
star
22

vertx-rabbitmq-client

Vert.x RabbitMQ Service
Java
73
star
23

vertx-zookeeper

Zookeeper based cluster manager implementation
Java
73
star
24

vertx-service-proxy

EventBus Proxy generation
Java
67
star
25

vertx-eventbus-bridge-clients

Home for various EventBus Bridge clients
Java
65
star
26

vertx-circuit-breaker

A circuit breaker for Vert.x
Java
63
star
27

vertx-mongo-client

Mongo Client for Eclipse Vert.x
Java
60
star
28

vertx-config

Vert.x Configuration Service
Java
54
star
29

vertx-web-site

Former vertx.io 3.x web-site, now archived. Instead use https://github.com/vertx-web-site/vertx-web-site
HTML
54
star
30

vertx-micrometer-metrics

Vert.x metrics implementation for Micrometer.io
Java
50
star
31

vertx-tcp-eventbus-bridge

Java
49
star
32

vertx-reactive-streams

Java
48
star
33

vertx-starter

Home of the Vert.x Starter
Java
48
star
34

vertx-shell

The shell for Vert.x
Java
38
star
35

issues

37
star
36

vertx-mail-client

Java
35
star
37

vertx-lang-js

Nashorn JavaScript implementation for Vert.x
JavaScript
35
star
38

vertx-ignite

Java
34
star
39

vertx-dropwizard-metrics

Vert.x Metrics
Java
34
star
40

vertx-consul-client

Vert.x Consul Client
Java
33
star
41

vertx-cassandra-client

Cassandra client for Vert.x
Java
33
star
42

vertx-unit

Async polyglot unit testing for Vert.x.
JavaScript
32
star
43

vertx-stomp

STOMP client/server implementation
Java
31
star
44

vertx-sql-common

Common SQL interfaces for Vert.x SQL services
30
star
45

vertx-proton

Java
26
star
46

vertx-docgen

Documentation generation
Java
23
star
47

vertx-bus-bower

JavaScript
21
star
48

vertx-service-factory

Service Factory implementation
Java
21
star
49

vertx-codetrans

Code translator
Java
20
star
50

vertx-openshift-cartridge

Shell
20
star
51

vertx-4-migration-guide

Migration to Vert.x 4 guide
20
star
52

vertx-io_uring-incubator

io_uring transport incubator
19
star
53

vertx-amqp-client

An AMQP client for Vert.x
Java
17
star
54

vertx-sbt-starter

Scala
16
star
55

vertx-camel-bridge

Let Vert.x applications interact with Camel endpoints
Java
15
star
56

vertx-health-check

Java
14
star
57

vertx-scala.g8

Scala
14
star
58

vertx-lang-ruby

Vert.x Ruby support
Ruby
14
star
59

vertx-infinispan

Infinispan Cluster Manager for Vert.x
Java
14
star
60

vertx-lang-groovy

Vert.x Groovy support
Java
13
star
61

vertx-auth

Java
13
star
62

vertx-maven-service-factory

Verticle factory for resolving verticles from Maven at run-time
Java
12
star
63

vertx-lang-ceylon

Vert.x 3 code generator for Ceylon
Java
12
star
64

vertx-dependencies

Defines the versions of the Vert.x components of the Vert.x stack.
12
star
65

vertx-cli-starter

Shell
10
star
66

vertx-jca

Repository for all Vertx-JCA related information, development etc
Java
10
star
67

vertx-sockjs-service-proxy

Vert.x SockJS Service Proxy
Java
10
star
68

vertx-http-service-factory

Java
9
star
69

vertx-hawkular-metrics

Java
9
star
70

vertx-openshift-s2i

Vert.x OpenShift Source To Image
Shell
8
star
71

vertx-lang-python

Java
8
star
72

vertx-parent

The base parent pom for Vert.x projects
8
star
73

vertx-amqp-bridge

Java
8
star
74

conf-schedule

Schedule of various Eclipse Vert.x conferences across the world
Java
8
star
75

vertx-embedded-mongo-db

Java
7
star
76

vertx-jgroups

JGroups based cluster manager implementation
Java
5
star
77

vertx-grpc-java-compiler

gRPC Java Compiler for Vert.x
C++
5
star
78

vertx-bridge-common

Common stuff for Vert.x Eventbus bridges
Java
5
star
79

vertx-5-migration-guide

Migration to Vert.x 5 guide
4
star
80

eclipse-proposal-wip

Proposal for Eclipse Vert.x work in progress
3
star
81

vertx-amqp-service

Java
3
star
82

jenkins-shared-library

Groovy
2
star
83

prez-demos

Demos that I do in Vert.x 3.0 presentations
JavaScript
2
star
84

vertx-ext-parent

Base parent pom for Vert.x extension projects
2
star
85

vertx4-scala.g8

Scala
2
star
86

modular-vertx-guide

Java
2
star
87

vertx-client-services

Service proxies for vertx-mail-client, vertx-mongo-client and vertx-consul-client
Java
1
star
88

vertx-component-discovery

Groovy
1
star
89

vertx-eventbus-link

Java
1
star
90

vertx-eb-wire-protocol

Vert.x event bus wire protocol
1
star
91

vertx-openshift-diy-quickstart

Shell
1
star
92

vertx-perf

Java
1
star