An open API service indexing awesome lists of open source software.

https://github.com/jabrena/spring-boot-kafka-poc


https://github.com/jabrena/spring-boot-kafka-poc

Last synced: 24 days ago
JSON representation

Awesome Lists containing this project

README

        

# Spring Boot Kafka POC

[![CI Builds](https://github.com/jabrena/spring-boot-kafka-poc/actions/workflows/build.yaml/badge.svg)](https://github.com/jabrena/spring-boot-kafka-poc/actions/workflows/build.yaml)

## How to build?

```
mvn clean package
docker compose up --build

docker 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/messages

curl -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/