https://github.com/knands42/twitter-bot-event-driven-pattern
Application that uses the event driven pattern
https://github.com/knands42/twitter-bot-event-driven-pattern
docker docker-compose kafka spring-boot spring-cloud
Last synced: about 2 months ago
JSON representation
Application that uses the event driven pattern
- Host: GitHub
- URL: https://github.com/knands42/twitter-bot-event-driven-pattern
- Owner: knands42
- Created: 2022-01-27T22:39:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-13T04:09:13.000Z (over 4 years ago)
- Last Synced: 2025-02-24T03:18:01.444Z (over 1 year ago)
- Topics: docker, docker-compose, kafka, spring-boot, spring-cloud
- Language: Kotlin
- Homepage:
- Size: 608 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EventDriven Application
The goal of this project is to build an event driven application.
## Used technologies
- Kotlin
- Spring Boot
- Kafka
- Kafka Streams
- Spring Cloud
- Elasticsearch
## Execute the application
To start the application, first you need the dependencies.
```bash
cd docker-compose
docker-compose -f common.yaml -f kafka_cluster.yaml -f services.yaml up --build --force-recreate
```
Now you can execute the application.
```bash
mvn spring-boot:run
```
To help see what's going on inside kafka cluster, I recommend using kafkacat.
But first let's create an alias for the command. Inside your shell, insert the following line:
```bash
alias kcat="docker run --tty --network=host confluentinc/cp-kafkacat kafkacat"
```
After that reset your shell and you should be ready to run the command.
```bash
kcat -L -b localhost:19092
```
```bash
kcat -C -b localhost:29092 -t twitter-topic
```