{"id":24030597,"url":"https://github.com/ankitrajput0096/springcloud_api_gateway_with_eureka","last_synced_at":"2026-04-29T23:03:57.962Z","repository":{"id":127705899,"uuid":"282787656","full_name":"ankitrajput0096/SpringCloud_API_Gateway_with_Eureka","owner":"ankitrajput0096","description":"Dockerized Spring Boot application for Server side load balancing and routing using Spring Cloud API Gateway and Eureka.","archived":false,"fork":false,"pushed_at":"2020-08-22T21:07:39.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T03:45:38.594Z","etag":null,"topics":["docker","docker-compose","eureka-cluster","maven","spring-boot-2","spring-cloud-gateway"],"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/ankitrajput0096.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":"2020-07-27T03:45:24.000Z","updated_at":"2020-08-22T21:07:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"502ea85c-6c70-4c0d-9efc-4aa7bd2c769f","html_url":"https://github.com/ankitrajput0096/SpringCloud_API_Gateway_with_Eureka","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ankitrajput0096/SpringCloud_API_Gateway_with_Eureka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrajput0096%2FSpringCloud_API_Gateway_with_Eureka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrajput0096%2FSpringCloud_API_Gateway_with_Eureka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrajput0096%2FSpringCloud_API_Gateway_with_Eureka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrajput0096%2FSpringCloud_API_Gateway_with_Eureka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankitrajput0096","download_url":"https://codeload.github.com/ankitrajput0096/SpringCloud_API_Gateway_with_Eureka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankitrajput0096%2FSpringCloud_API_Gateway_with_Eureka/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32447312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: 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-compose","eureka-cluster","maven","spring-boot-2","spring-cloud-gateway"],"created_at":"2025-01-08T17:45:22.362Z","updated_at":"2026-04-29T23:03:57.948Z","avatar_url":"https://github.com/ankitrajput0096.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server Side Load Balancing and Routing using Spring Cloud API Gateway and Eureka\n\nDockerized Spring Boot application for Server side load balancing and routing using Spring Cloud API Gateway and Eureka.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development purposes. See running for notes on how to run the project on a system.\n\n### Prerequisites\n\n1. Clone the project to your local environment:\n    ```\n    git clone https://github.com/ankitrajput0096/SpringCloud_API_Gateway_with_Eureka\n    ```\n\n2. You need Docker to be installed:\n\n    #### Windows:\n    https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe\n    \n    #### Mac:\n    https://download.docker.com/mac/stable/Docker.dmg\n    \n    #### Ubuntu:\n    https://docs.docker.com/install/linux/docker-ce/ubuntu/\n\n### Installing\n\nOnce you have docker installed on your environment, install the project dependencies via:\n\nBuild docker Image:\n\n```\ndocker-compose build\n```\n\n## Running\n\nStart docker:\n\n```\ndocker-compose up\n```\nOr\n\n\nStart docker with scaled up services:\n\n```\ndocker-compose up --scale clientone=3 --scale clienttwo=3\n\n```\n### NOTE:\nCan scale up clientone and clienttwo services to max instances of 5.\nIf you want to scale even higher, then increase the port range in `docker-compose` file.\n\nYour Spring Cloud API Gateway server should be now running on http://localhost:8000, ClientOne server should be now running on http://localhost:8080-8085 and ClientTwo server should be now running on http://localhost:8086-90 and Eureka server cluster should be now running on http://localhost:9001, http://localhost:9002, http://localhost:9003 \n\n## Get an access to all exposed API's with Postman\n\n1. Install Postman (https://www.getpostman.com)\n2. Import Postman collection from the `SpringCloud_API_Gateway_Eureka_SpringBoot.postman_collection.json` file\n3. Enjoy !!\n\n#### NOTE : To see server side load balancing observe terminal logs of `docker-compose`. When trying to hit same endpoint multiple times parallely. \n\n## Architecture design of Spring Cloud API Gateway\n![](images/spring_cloud_architecture.png)\n\n## Built With\n\n* [Spring Boot](https://spring.io/projects/spring-boot) - Spring Boot 2\n* [Maven](https://maven.apache.org/) - Dependency Management\n* [Docker](https://www.docker.com/) - For containerization of application\n* [Spring Cloud Gateway](https://spring.io/projects/spring-cloud-gateway) - For API Gateway, Routing and Filtering using Spring Cloud Gateway\n* [Eureka](https://spring.io/guides/gs/service-registration-and-discovery/) - For Eureka admin and client\n\n## Contributing\n\nIf you have any improvement suggestions please create a pull request and I'll review it.\n\n\n## Authors\n\n* **Ankit Rajput** - *Initial work* - [Github](https://github.com/ankitrajput0096)\n\n## License\n\nThis project is licensed under the MIT License\n\n## Acknowledgments\n\n* Big thanks to Pivotal for Spring Boot framework, love it!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitrajput0096%2Fspringcloud_api_gateway_with_eureka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankitrajput0096%2Fspringcloud_api_gateway_with_eureka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankitrajput0096%2Fspringcloud_api_gateway_with_eureka/lists"}