Kafka Project : Kazza Movies
Note
Technical stack used
- Scala
- Apache Kafka
- Conduktor.io
Synopsis
You joined KazaaMovies, a company specializing in movie streaming for individuals. After several years of development, they have just added a social dimension to their streaming offer to their streaming offering, which will provide you with information about user interactions and users and their views, but they have only implemented the first technical part: data retrieval.
The goal
- To make this data usable, which arrives in several Kafka topics.
- All kafka topic will be exposed as a REST API in JSON.
Lists of Store Name
Number of view for each movies, grouped by type of view:
- Stopped at the start of the movie (< 10% of watched movie)
- Since launch
- At the last minute
- At the last five minutes
- Stopped in the middle (< 90% of watched movie)
- Since launch
- At the last minute
- At the last five minutes
- Ended watching (< 90% of watched movie)
- Since launch
- At the last minute
- At the last five minutes
Top 10
- Of movies having best feedback (Score > 5)
- Of movies having bad feedback (Score < 2)
API Routes
GET /movies/:id
Get the number of view and their stats with a given movie ID
GET /stats/ten/best/score
Returns all time 10 best scores movie based on average score, sorted by desc
GET /stats/ten/best/view
Returns all time 10 best views movie based on average view count average, sorted by desc
GET /stats/ten/worst/score
Returns all time 10 worst scores movie based on average score, sorted by asc