A demo that ingests user behavior logs, ranks product popularity in near real time, and serves personalized product lists through a web UI and admin dashboard.
Overview
This stack implements real-time product recommendations built around Apache Flink stream jobs. Event logs describe views, favorites, and purchases; Flink tasks write browsing history, interest scores, user and product profiles, raw logs, and sliding-window hot rankings into HBase and Redis.
When a shopper requests recommendations, the engine reorders the hot list using profile data, then enriches each item with related products from collaborative filtering and tag-based similarity. The storefront shows three columns—popularity, collaborative filtering, and profile-based picks—and an operator view plots live metrics such as the hot list and recent log volume.
Deployment centers on Docker Compose for Kafka, HBase, Redis, MySQL, Flink, and a Spring Boot web tier, with helper scripts to compile modules, start six Flink jobs, seed Kafka test traffic, and launch the site. You can point configuration at your own Kafka, HBase, Redis, and MySQL instead of the bundled compose stack.
Scheduled jobs outside Flink read history tables to maintain item–item similarity scores used for the extra related-product columns on the recommendation page.
Key features
- Six Flink streaming jobs for logs and profiles
- Hot rankings cached in Redis time windows
- User and product portraits in HBase
- Collaborative filtering and tag similarity
- Kafka ingestion of browse and purchase events
- Spring Boot recommendation and admin pages
- Docker Compose bootstrap for dependencies
- Dashboard metrics from Flink aggregates
Use cases
- Learning Flink recommendation patterns
- Prototyping e-commerce personalization
- Demonstrating stream plus serving architecture
- Testing collaborative and content-based blends
- Ops dashboards over live recommendation data