{"id":21973005,"url":"https://github.com/amaljeevs/springboot-redis-k8-poc","last_synced_at":"2026-04-07T20:31:59.136Z","repository":{"id":246050731,"uuid":"819945755","full_name":"Amaljeevs/springboot-redis-k8-poc","owner":"Amaljeevs","description":"Spring boot with Redis for Distributed locking scheduler jobs.","archived":false,"fork":false,"pushed_at":"2024-06-25T14:40:56.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T04:06:56.246Z","etag":null,"topics":["docker","docker-image","dockerfile","kubernetes","kubernetes-cluster","redis","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/Amaljeevs.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,"zenodo":null}},"created_at":"2024-06-25T13:44:35.000Z","updated_at":"2024-06-25T14:40:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"0fe427eb-546e-4aef-aed8-d50d6f97190e","html_url":"https://github.com/Amaljeevs/springboot-redis-k8-poc","commit_stats":null,"previous_names":["amaljeevs/springboot-redis-k8-poc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Amaljeevs/springboot-redis-k8-poc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amaljeevs%2Fspringboot-redis-k8-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amaljeevs%2Fspringboot-redis-k8-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amaljeevs%2Fspringboot-redis-k8-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amaljeevs%2Fspringboot-redis-k8-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amaljeevs","download_url":"https://codeload.github.com/Amaljeevs/springboot-redis-k8-poc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amaljeevs%2Fspringboot-redis-k8-poc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31528337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","docker-image","dockerfile","kubernetes","kubernetes-cluster","redis","spring-boot"],"created_at":"2024-11-29T15:24:14.995Z","updated_at":"2026-04-07T20:31:59.126Z","avatar_url":"https://github.com/Amaljeevs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot with Redis POC\n\n## Overview\n\nThis project demonstrates a Proof of Concept (POC) for using Spring Boot with Redis to implement distributed locking for scheduled jobs across multiple Kubernetes clusters using KIND (Kubernetes in Docker).\n\n\n### Technologies Used\n\n- **Spring Boot:** Java-based framework for building microservices.\n- **Redis:** In-memory data structure store used as a distributed cache and for distributed locking.\n- **Kubernetes:** Container orchestration platform for managing containerized applications.\n- **KIND (Kubernetes in Docker):** Tool for running Kubernetes clusters locally using Docker containers.\n\n## Setup Instructions\n\n### Prerequisites\n\n1. **Install Docker:** Ensure Docker is installed and running on your local machine. Download Docker Desktop from [here](https://www.docker.com/products/docker-desktop).\n\n2. **Install KIND:** Install KIND according to the instructions provided [here](https://kind.sigs.k8s.io/docs/user/quick-start/).\n\n3. **Clone Repository:**\n\n   ```bash\n   git clone https://github.com/Amaljeevs/springboot-redis-k8-poc.git\n   cd repository\n\n## Deployment\n\n1. **Deploy Redis Server :** Create a Kubernetes cluster using KIND to host the Redis server\n\n   ```bash\n   kind create cluster --name redis-cluster\n\nDeploy Redis using a YAML manifest (redis-deployment.yaml)\n\n   ```bash\n   kubectl apply -f redis-deployment.yaml --context kind-redis-cluster\n   ```\n2. **Deploy Spring Boot Application :** Create two Kubernetes clusters using KIND for deploying the Spring Boot application (cluster1 and cluster2)\n\n   ```bash\n   kind create cluster --name cluster1\n   kind create cluster --name cluster2\nBuild and deploy the Spring Boot application to both clusters (cluster1 and cluster2):\n   ```bash\n   mvn clean package\n   docker build -t springboot-redis-k8-poc .\n   docker tag springboot-redis-k8-poc your-docker-hub-username/springboot-redis-k8-poc:latest\n   docker push your-docker-hub-username/springboot-redis-k8-poc:latest\n   kubectl apply -f application-deployment.yaml --context kind-cluster1\n   kubectl apply -f application-deployment.yaml --context kind-cluster2\n   ```\n\n## Conclusion\nThis POC demonstrates how to leverage Redis for distributed locking in a Spring Boot application deployed across multiple Kubernetes clusters using KIND. It ensures that scheduled jobs are effectively coordinated and executed in a distributed environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaljeevs%2Fspringboot-redis-k8-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famaljeevs%2Fspringboot-redis-k8-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaljeevs%2Fspringboot-redis-k8-poc/lists"}