Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sarakhild/redis-performance


https://github.com/sarakhild/redis-performance

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# JMeter Performance Test Results for Three Redis implementations: spring-boot-starter-data-redis, redisson-spring-boot-starter, and spring-boot-starter-data-redis-reactive.


## Overview
This project compares the performance of three different Redis implementations using JMeter: spring-boot-starter-data-redis, redisson-spring-boot-starter, and spring-boot-starter-data-redis-reactive. The tests evaluate the throughput, latency, and resource consumption of each implementation under different load conditions, providing insights into the optimal choice for high-performance, scalable applications.

## Usages
- Data Redis
- Redis Reactive
- Redisson

## Architecture of each the Projects

### 1-src folder
- configration
- controller
- model
- repository
- service
- util

### 2-resources folder
- application.properties
- schema.sql

### 3-Maven pom.xml of Data Redis



```


com.example
redis-reactive
0.0.1-SNAPSHOT


org.springframework.boot
spring-boot-starter-data-redis


org.springframework.boot
spring-boot-starter-webflux


org.projectlombok
lombok
true


org.springframework.boot
spring-boot-starter-data-r2dbc


com.mysql
mysql-connector-j
runtime


io.asyncer
r2dbc-mysql
runtime


org.springframework.boot
spring-boot-starter-test
test


io.projectreactor
reactor-test
test


```

### 4-Maven pom.xml of Redis Reactive



```


org.springframework.boot
spring-boot-starter-data-redis-reactive


org.springframework.boot
spring-boot-starter-webflux


org.projectlombok
lombok
1.18.30
provided


org.springframework.boot
spring-boot-starter-data-r2dbc


com.mysql
mysql-connector-j
runtime


io.asyncer
r2dbc-mysql
runtime


org.springframework.boot
spring-boot-starter-test
test


io.projectreactor
reactor-test
test


```


### 5-Maven pom.xml of Redisson



```


com.example
redis-reactive
0.0.1-SNAPSHOT


org.springframework.boot
spring-boot-starter-webflux


org.redisson
redisson-spring-boot-starter
3.16.6


org.projectlombok
lombok
1.18.30
provided


org.springframework.boot
spring-boot-starter-data-r2dbc


com.mysql
mysql-connector-j
runtime


io.asyncer
r2dbc-mysql
runtime


org.springframework.boot
spring-boot-starter-test
test


io.projectreactor
reactor-test
test


```


###### Output :star_struck:
The `spring-boot-starter-data-redis-reactive` implementation seems to have **the best overall performance**, as it shows **lower average response times** and **higher throughput**.`Redisson` and `spring-boot-starter- data-redis` have **similar performance**.

- Redis:
data-redis

- Redis Reactive:

reactive-redis

- Redisson:

redisson

---

### Good Luck