Skip to content

This project we will see how Priority order for subscribed users

Notifications You must be signed in to change notification settings

SaraKhild/priority-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Priority Subscribe Users Service


Overview

Using RScoredSortedSetReactive in a Redis-backed application is crucial for efficiently managing and accessing elements based on priority or sorted order. This data structure allows you to assign a score to each element, enabling quick retrieval of items based on their priority. It is particularly useful in scenarios like task scheduling, leaderboard management, or any application requiring ranked or prioritized access to data.

In this project, we will see how to prioritize orders for subscribed users from the prime, standard, and guest categories.


Usages

  • Spring WebFlux
  • Redisson "Redis"
  • Lombok

Architecture of the Project

1-src folder

  • Configration
  • Controller
  • Enum
  • Model
  • Service

2-Maven pom.xml


<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-webflux</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>io.projectreactor</groupId>
			<artifactId>reactor-test</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.redisson</groupId>
			<artifactId>redisson-spring-boot-starter</artifactId>
			<version>3.16.6</version>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<version>1.18.30</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>

Output 🤩
✏️ Users are prioritized based on their subscription level.
Screenshot 1446-01-09 at 12 57 06 PM

Good Luck

About

This project we will see how Priority order for subscribed users

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages