An open API service indexing awesome lists of open source software.

https://github.com/jponge/demo-vertx-gate-streaming

Vert.x and Kafka streaming based on gate activations
https://github.com/jponge/demo-vertx-gate-streaming

Last synced: about 1 year ago
JSON representation

Vert.x and Kafka streaming based on gate activations

Awesome Lists containing this project

README

          

# Vert.x and Kafka gate activations demo

![Screenshot](screenshot.png)

## Scenario

Each gate simulates people passing by.

Events are streamed to Kafka, and 2 verticles observe the events:

* 1 generates total counters of activations for each gate, and
* 1 computes throughput for each gate over periods of 5 seconds.

## Simple way to run

Start Kafka and ZooKeeper:

$ docker-compose up

Then start the application:

$ ./gradlew vertxRun

Then open [http://localhost:8080/](http://localhost:8080/).