Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kafka cli info and link to build items #215

Merged
merged 4 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions content/en/docs/08.0/82_kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ mvn io.quarkus:quarkus-maven-plugin:{{% param "quarkusVersion" %}}:create \
-DprojectVersion=1.0.0
```

{{% alert color="warning" title="Quarkus DEV-UI in producer" %}}
As we do not include resteasy in your producer the producer does not have a ui at all and is not able to serve the dev-ui. If you want to use the quarkus dev-ui in your producer you have to add the following dependency to your `pom.xml`:
```
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-vertx-http</artifactId>
</dependency>
```
{{% /alert %}}


Next, create the SensorMeasurement in both project.

```java
Expand Down Expand Up @@ -152,16 +163,11 @@ mp.messaging.outgoing.data.value.serializer=io.quarkus.kafka.client.serializatio

We define the connector which we are going to use to communicate, the topic in which the data will be sent to and the serializer for the value.

To check if your producer is producing data correctly, you can use the kafka container with its console utilities! Inside the kafka container you can use the script `bin/kafka-console-consumer.sh` with the parameters `--bootstrap-server localhost:9092 --topic data --from-beginning` to read the messages inside the `data` topic.

{{% details title="Hint" %}}

To check if your producer is producing data correctly, you can use basic tooling available in your kafka container or use the quarkus dev-ui (remember to add the `quarkus-vertx-http` dependency in your producer). You need to find the name of your kafka container using `docker ps`. Be aware that this will only work if you are using the kafka stack and not the dev-services.
```s
docker exec -it docker_kafka_1 bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic data --from-beginning
```

{{% /details %}}


### {{% param sectionnumber %}}.4: Consuming messages

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/10.0/102_business-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Your dependency block in the deplyoment `pom.xml` should look like this:
</dependency>
<dependency>
<groupId>ch.puzzle</groupId>
<artifactId>quarkus-extension-appinfo</artifactId>
<artifactId>techlab-extension-appinfo</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
Binary file modified content/en/slides/slides.pdf
Binary file not shown.