https://github.com/ahmetfurkandemir/rest-api-with-redis-and-spring-boot
REST API with Redis and Spring Boot
https://github.com/ahmetfurkandemir/rest-api-with-redis-and-spring-boot
api crud-api redis rest-api spring-boot
Last synced: 6 months ago
JSON representation
REST API with Redis and Spring Boot
- Host: GitHub
- URL: https://github.com/ahmetfurkandemir/rest-api-with-redis-and-spring-boot
- Owner: AhmetFurkanDEMIR
- Created: 2022-08-23T06:38:39.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-23T06:59:47.000Z (about 3 years ago)
- Last Synced: 2025-04-15T21:52:13.273Z (6 months ago)
- Topics: api, crud-api, redis, rest-api, spring-boot
- Language: Java
- Homepage:
- Size: 26 MB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
   
# REST API with Redis and Spring Boot

**What is Redis ?**
Redis is a NoSQL database written in C programming language and designed as key-value. Because it keeps the data in memory and is written in a language close to the hardware, reading and writing is done very quickly.This API I wrote can perform CRUD (Create - Read - Update - Delete) operations on Redis.
```terminal
# Cleaning up Docker images
docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)# Running all images (Redis and Java-Spring images)
docker-compose up
```**RAM test I did on Redis**

I connected to the API I wrote with Spring boot with Python, I opened 4 processes in the Python script and opened 2 threads under each process, that is, I made an endless loop request to the API with 8 threads in total. I started this infinite loop request at 21:55 and ended at 00:00, within 2 hours and 5 minutes I opened 10 million student records in Redis and these 10 million student records took up 3 GB of RAM.