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.
# 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.