{"id":20638460,"url":"https://github.com/ahmetfurkandemir/rest-api-with-redis-and-spring-boot","last_synced_at":"2025-04-15T21:52:29.148Z","repository":{"id":110787210,"uuid":"527864067","full_name":"AhmetFurkanDEMIR/REST-API-with-Redis-and-Spring-Boot","owner":"AhmetFurkanDEMIR","description":"REST API with Redis and Spring Boot","archived":false,"fork":false,"pushed_at":"2022-08-23T06:59:47.000Z","size":27288,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T21:52:13.273Z","etag":null,"topics":["api","crud-api","redis","rest-api","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AhmetFurkanDEMIR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-23T06:38:39.000Z","updated_at":"2024-12-11T06:13:26.000Z","dependencies_parsed_at":"2023-03-06T21:15:42.396Z","dependency_job_id":null,"html_url":"https://github.com/AhmetFurkanDEMIR/REST-API-with-Redis-and-Spring-Boot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmetFurkanDEMIR%2FREST-API-with-Redis-and-Spring-Boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmetFurkanDEMIR%2FREST-API-with-Redis-and-Spring-Boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmetFurkanDEMIR%2FREST-API-with-Redis-and-Spring-Boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AhmetFurkanDEMIR%2FREST-API-with-Redis-and-Spring-Boot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AhmetFurkanDEMIR","download_url":"https://codeload.github.com/AhmetFurkanDEMIR/REST-API-with-Redis-and-Spring-Boot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249161130,"owners_count":21222469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","crud-api","redis","rest-api","spring-boot"],"created_at":"2024-11-16T15:18:10.446Z","updated_at":"2025-04-15T21:52:29.139Z","avatar_url":"https://github.com/AhmetFurkanDEMIR.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/Java-ED8B00?style=for-the-badge\u0026logo=java\u0026logoColor=white) ![](https://img.shields.io/badge/redis-%23DD0031.svg?\u0026style=for-the-badge\u0026logo=redis\u0026logoColor=white) ![](https://img.shields.io/badge/Spring_Boot-F2F4F9?style=for-the-badge\u0026logo=spring-boot) ![](https://img.shields.io/badge/Docker-2CA5E0?style=for-the-badge\u0026logo=docker\u0026logoColor=white)\r\n\r\n# REST API with Redis and Spring Boot\r\n\r\n![Untitled](https://user-images.githubusercontent.com/54184905/186088124-3f5d44c8-3abe-4ac1-9760-e436df9a5f88.png)\r\n\r\n**What is Redis ?**\r\nRedis 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.\r\n\r\nThis API I wrote can perform CRUD (Create - Read - Update - Delete) operations on Redis.\r\n\r\n```terminal\r\n# Cleaning up Docker images\r\ndocker rm -f $(docker ps -a -q)\r\ndocker volume rm $(docker volume ls -q)\r\n\r\n# Running all images (Redis and Java-Spring images)\r\ndocker-compose up\r\n```\r\n\r\n\r\n**RAM test I did on Redis**\r\n\r\n![Screenshot_2022-08-22_23-55-03](https://user-images.githubusercontent.com/54184905/186089608-fa95f820-c948-4e9e-90b1-46be89adee15.png)\r\n\r\nI 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.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetfurkandemir%2Frest-api-with-redis-and-spring-boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmetfurkandemir%2Frest-api-with-redis-and-spring-boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetfurkandemir%2Frest-api-with-redis-and-spring-boot/lists"}