An open API service indexing awesome lists of open source software.

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

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