https://github.com/sarakhild/product-visitors
This project for see top 3 products that visited by customer and updated every 3 seconds
https://github.com/sarakhild/product-visitors
cache r2dbc-mysql redis redisson spring-webflux
Last synced: about 1 month ago
JSON representation
This project for see top 3 products that visited by customer and updated every 3 seconds
- Host: GitHub
- URL: https://github.com/sarakhild/product-visitors
- Owner: SaraKhild
- Created: 2024-06-05T10:52:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-15T10:52:28.000Z (over 1 year ago)
- Last Synced: 2025-06-13T17:48:56.228Z (4 months ago)
- Topics: cache, r2dbc-mysql, redis, redisson, spring-webflux
- Language: Java
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Visit Products
## Overview
In this project, we will see how to return the top 3 products visited by customers and update the list every 3 seconds. To achieve this, we use RScoredSortedSetReactive for efficiently managing and accessing products based on their visit scores. Additionally, we utilize Sinks.Many to enable real-time updates, ensuring that the top products are refreshed and delivered to users seamlessly.
## Usages
- Spring WebFlux
- Redisson "Redis"
- Spring Data R2DBC
- Lombok
## Architecture of the Project
### 1-src folder
- Configration
- Controller
- Model
- Repository
- Service
### 2-Maven pom.xml
```
org.springframework.boot
spring-boot-starter-data-r2dbc
io.asyncer
r2dbc-mysql
runtime
org.springframework.boot
spring-boot-starter-webflux
org.redisson
redisson-spring-boot-starter
3.16.6
com.mysql
mysql-connector-j
runtime
org.projectlombok
lombok
true
org.springframework.boot
spring-boot-starter-test
test
io.projectreactor
reactor-test
test
```
###### Output :star_struck:
https://github.com/SaraKhild/product-visitors/assets/67427643/8720166f-3341-455c-a8f2-a5b3f3bd325c