Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxjdev/example-simple-spring-kafka-producer-consumer
Kafka creation and configuration example with producer and consumer
https://github.com/maxjdev/example-simple-spring-kafka-producer-consumer
docker-compose kafka spring-boot spring-for-kafka spring-web zookeeper
Last synced: 6 days ago
JSON representation
Kafka creation and configuration example with producer and consumer
- Host: GitHub
- URL: https://github.com/maxjdev/example-simple-spring-kafka-producer-consumer
- Owner: maxjdev
- Created: 2024-08-04T19:25:35.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T01:09:49.000Z (5 months ago)
- Last Synced: 2024-11-09T03:19:10.693Z (2 months ago)
- Topics: docker-compose, kafka, spring-boot, spring-for-kafka, spring-web, zookeeper
- Language: Java
- Homepage:
- Size: 242 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pub/Sub with Spring and Kafka
![ilustração da arquitetura base do kafka](img/kafka.png)
## Technologies
- [Spring Boot](https://spring.io/projects/spring-boot)
- [Spring MVC](https://docs.spring.io/spring-framework/reference/web/webmvc.html)
- [Spring for Kafka](https://docs.spring.io/spring-kafka/reference/html/)
- [Kafka](https://kafka.apache.org)
- [Zookeeper](https://zookeeper.apache.org/)
- [Docker Compose](https://docs.docker.com/compose/)## Test
- Clone the repository
- With docker and docker-compose installed, navigate to the project directory, open your terminal and type the following command:```bash
docker-compose up
```- Start the application
- Send the request passing name in the path that will be the message received sysout:```bash
curl -X GET http://localhost:8080/kafka/hello/maxjdev
```- Message received:
```
Consumer message: Hello maxjdev
```