Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daggerok/spring-streaming-with-kafka
gradle, docker-compose, spring-boot, spring-cloud-stream, kafka, @EnableBinding, Sink, Source, Processor
https://github.com/daggerok/spring-streaming-with-kafka
docker docker-compose kafka
Last synced: 6 days ago
JSON representation
gradle, docker-compose, spring-boot, spring-cloud-stream, kafka, @EnableBinding, Sink, Source, Processor
- Host: GitHub
- URL: https://github.com/daggerok/spring-streaming-with-kafka
- Owner: daggerok
- License: mit
- Created: 2016-08-01T16:55:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T21:04:40.000Z (over 2 years ago)
- Last Synced: 2023-04-05T03:19:12.502Z (over 1 year ago)
- Topics: docker, docker-compose, kafka
- Language: Shell
- Homepage:
- Size: 37.1 MB
- Stars: 4
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Streaming (spring spring-cloud-stream kafka)
Greater -> (messages) -> GreatingHandler -> (uppercased) -> Doubler -> (transformed) -> LogReceiver
```bash
gradle composeUpgradle Greater:bootRun
gradle MessageReceiver:bootRungradle UpperCaser:bootRun
gradle Doubler:bootRun
gradle Logger:bootRungradle composeDown
gradle --stop
```run all together for integration tests
```bash
gradle clean build
```for testing run in order:
- kafka using docker-compose (read below)
- GreaterApplication
- UpperCaserApplication
- DoublerApplication
- LoggerApplication
- LogReceiverApplication (another logger)_run kafka in docker-compose_
```bash
# git clone --depth=1 https://github.com/confluentinc/cp-docker-images.git
# docker-compose -f cp-docker-images/examples/kafka-single-node/docker-compose.yml up -d
# docker-compose -f cp-docker-images/examples/kafka-single-node/docker-compose.yml down -v --rmi local
## or already cloned locally:
# docker-compose -f kafka/kafka-single-node/docker-compose.yml up -d
# docker-compose -f kafka/kafka-single-node/docker-compose.yml down -v --rmi local
## or:
# docker-compose up -d
# docker-compose down -v --rmi local
## or just:
./gradlew composeUp
./gradlew composeDown
```