https://github.com/knands42/rating-system
Just playing around with events, ktor and kafka
https://github.com/knands42/rating-system
docker-compose kafka kafka-streams kotlin ktor schema-registry
Last synced: about 2 months ago
JSON representation
Just playing around with events, ktor and kafka
- Host: GitHub
- URL: https://github.com/knands42/rating-system
- Owner: knands42
- Created: 2023-08-18T03:55:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T01:03:08.000Z (over 2 years ago)
- Last Synced: 2025-01-25T05:14:30.773Z (over 1 year ago)
- Topics: docker-compose, kafka, kafka-streams, kotlin, ktor, schema-registry
- Language: Kotlin
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rating-System
Just playing around with events, ktor, kafka and kafka streams.
## How it works
The goal of this project is to create a rating system application.
1- The application make a post request in order to rate a movieId for then publish to a kafka topic.
2- The kafka streams will consume the topic and calculate the average rating for each movieId and publish to another
topic rating-averages.
3- The application will consume the rating-averages using a websocket connection.
> See the com.example.rating.adapter.ktor.plugins.Http and com.example.rating.adapter.ktor.plugins.Websockets in order to
> see the routes
## Credits
This project was based on the [Ktor-Kafka](https://github.com/gAmUssA/ktor-kafka/tree/main)
from [gAmUssA](https://github.com/gAmUssA)