1 Star 0 Fork 1

Batman/vertx-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.adoc 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
Christoph Görn 提交于 2017-10-09 09:05 . just this one typo

Vert.x Kafka Client examples

Here you will find examples demonstrating the usage of the Vert.x Kafka Client.

Monitoring dashboard

The monitoring dashboard examples shows the usage of both the producer and consumer APIs of the Kafka client.

The MetricsVerticle.java uses the Kafka producer API to produce metrics in Json format.

The DashboardVerticle.java uses the Kafka consumer API to consume the metrics and send them to a monitoring dashboard using the Event Bus.

The MainVerticle.java is the main program you should start as it starts a Kafka broker and then configures the DashboardVerticle and the MetricsVerticle with their consumer and producer config.

Run the MainVerticle main method and then open your browser at http://localhost:8080/

In real usage the Kafka broker would probably be managed externally and the DashboardVerticle / MetricsVerticle executed separately with their own configuration.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/icecream/vertx-examples.git
git@gitee.com:icecream/vertx-examples.git
icecream
vertx-examples
vertx-examples
master

搜索帮助