Skip to content

This project we will see how integration the api to store their informations in redis and benefit from them

Notifications You must be signed in to change notification settings

SaraKhild/city-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

City Service


Overview

RMapReactive is a reactive variant of the Redisson framework's map interface, providing asynchronous and non-blocking operations for handling key-value pairs in Redis. It offers efficient and scalable methods for storing and retrieving data, making it ideal for real-time applications.

In this project, we will see how to integrate the city api to store their information in redis and benefit from it using RMapReactive to ensure efficient and scalable data management.


Usages

  • Spring WebFlux
  • WebClient
  • Redisson "Redis"
  • Lombok

Architecture of the Project

1-src folder

  • Client
  • Configration
  • Controller
  • Model
  • Service

2-Maven pom.xml


<dependencies>
		<dependency>
			<groupId>org.redisson</groupId>
			<artifactId>redisson</artifactId>
			<version>3.20.0</version>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-webflux</artifactId>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<optional>true</optional>
		</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>
	</dependencies>

Output 🤩
✏️ As you can see first photo, the time of fetch city information by zip code take some whole UNLIKE second photo take 7 millie second when it come from redis.
Screenshot 1446-01-09 at 11 10 44 AM Screenshot 1446-01-09 at 11 11 46 AM

Good Luck

About

This project we will see how integration the api to store their informations in redis and benefit from them

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages