Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fpapon/kafka-labs
https://github.com/fpapon/kafka-labs
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fpapon/kafka-labs
- Owner: fpapon
- License: apache-2.0
- Created: 2024-07-08T20:02:12.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T09:19:21.000Z (6 months ago)
- Last Synced: 2024-11-07T20:54:41.163Z (about 2 months ago)
- Language: Java
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
image::https://github.com/fpapon/kafka-labs/actions/workflows/maven.yml/badge.svg?branch=main[Github CI]
= Apache Kafka Labs
A labs project to show how to use Kafka Client in a native way without dependency injection framework.
== Pre-requisite
* Java 21+
* Maven 3.8.x+== Build
[source, bash]
----
mvn clean install
----== Run locally
Using the maven exec plugin:
[source, bash]
----
mvn exec:java
----Using a shell script:
[source, bash]
----
./start.sh
----== Build docker image
[source, bash]
----
mvn package jib:dockerBuild -DskipTests
----== Opentelemetry
[source, bash]
----
java -javaagent:./target/opentelemetry/opentelemetry.jar -Dotel.traces.exporter=none -Dotel.logs.exporter=none -Dotel.metrics.exporter=prometheus -Dotel.exporter.prometheus.port=12345 \
----[source, bash]
----
curl http://localhost:12345
----