Check out the tutorial's video on YouTube:
docker-compose up -d
./mvnw spring-boot:run
Tags have been used to snapshot the project at certain points in time.
To checkout a branch run the following:
git checkout ${TAG_NAME}
Here are the available tags:
Branch name | Description |
---|---|
tutorial |
The unplished end-result of the tutorial. |
Here are the commands used to interact with Kafka in the tutorial:
docker exec broker \
kafka-topics --bootstrap-server broker:9092 \
--create \
--topic "customer.visit"
docker exec --interactive --tty broker \
kafka-console-consumer --bootstrap-server broker:9092 \
--topic "customer.visit" \
--from-beginning
docker exec --interactive --tty broker \
kafka-console-producer --bootstrap-server broker:9092 \
--topic "customer.visit"
In order to use Jackson and the module for Java8 DateTimes, use the following dependencies:
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>