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

https://github.com/daggerok/reactive-kafka

Simple Reactive Kafka app by using awesome: reactor-kafka, spring-webflux and spring-boot!
https://github.com/daggerok/reactive-kafka

gradle-kotlin-dsl gradle-plugin-kotlin kafka kotlin-dsl kotlin-plugin reactive reactive-kafka reactor-kafka spring-boot spring-boot-2 spring-kafka spring-webflux webflux

Last synced: 12 months ago
JSON representation

Simple Reactive Kafka app by using awesome: reactor-kafka, spring-webflux and spring-boot!

Awesome Lists containing this project

README

          

# reactive-kafka
Simple Reactive Kafka app by using awesome: `reactor-kafka`, `spring-webflux` and `spring-boot`!

drawing drawing

## Flow

```bash

HTTP POST via console / browser http client -->
--> Produce kafka command via WebFLux REST API -->
--> Process Command into Event via CommandProcessor -->
--> Handle event inside EventProcessor -->
--> Add event to EventStore

```

## Build, run and test

_start kafka and app_

```bash
./gradlew kStart
./gradlew bootRun
```

_test in a parallel in a terminal_

```bash
http :8080/help

http :8080 payload=hello
http :8080 payload=how\ are\ u\?
http :8080 payload='{"data":"nice!"}'

http :8080
http :8080/find/1
```

_shutdown and cleanup_

```bash
./gradlew kStop
./gradlew kCleanData
./gradlew --stop
```

resources:

- [reactor-kafka](https://projectreactor.io/docs/kafka/release/reference/)
- [YouTube: Reactive Kafka](https://www.youtube.com/watch?v=-ioxYn9Vlao)