https://github.com/jabrena/spring-boot-kafka-poc
https://github.com/jabrena/spring-boot-kafka-poc
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jabrena/spring-boot-kafka-poc
- Owner: jabrena
- License: apache-2.0
- Created: 2019-09-05T15:03:43.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-21T16:08:52.000Z (over 1 year ago)
- Last Synced: 2025-02-13T20:23:14.256Z (3 months ago)
- Language: Java
- Size: 148 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Boot Kafka POC
[](https://github.com/jabrena/spring-boot-kafka-poc/actions/workflows/build.yaml)
## How to build?
```
mvn clean package
docker compose up --builddocker compose logs producer --follow
docker compose logs consumer --follow
http://localhost:8080/swagger-ui/index.html
curl --json '{"message": "hello world"}' http://localhost:8080/api/v1/messagescurl -X POST http://localhost:8080/api/v1/messages \
-H 'Content-Type: application/json' \
-d '{"message": "hello world"}'```
# References
- https://kafka.apache.org/documentation/
- https://docs.spring.io/spring-kafka/reference/html/
- https://www.testcontainers.org/modules/kafka/
- https://springdoc.org/v2/# Something to read for the future
- https://codersee.com/how-to-set-up-kafka-without-zookeeper-using-docker-compose/