You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First start the docker-compose which contains ZooKeeper, Kafka, and Kafdrop.
8
+
9
+
```bash
10
+
$ docker-compose -f docker-compose.yml up -d
11
+
```
12
+
13
+
Once all the containers are healthy start the application,
14
+
15
+
```bash
16
+
$ ./mvnw spring-boot:run
17
+
```
18
+
19
+
Open the browser `localhost:8080/apidocs`.
20
+
21
+
You can interact with the `random` api to create a random user which then will be sent to Kafka and consumed by the consumer (see `consumer/UserKafkaListener.java` file).
22
+
23
+
To see whether the message has been sent to Kafka, open your browser `http://localhost:8085/topic/com.madadipouya.kafka.use` (Kafdrop environment),
24
+
you should be able to see all messages that sent to `kafka.user` topic.
0 commit comments