{"id":13753789,"url":"https://github.com/microservices-practical/microservices-v9","last_synced_at":"2025-10-26T07:31:29.679Z","repository":{"id":91065288,"uuid":"96390954","full_name":"microservices-practical/microservices-v9","owner":"microservices-practical","description":"Learn Microservices with Spring Boot - v9","archived":false,"fork":false,"pushed_at":"2018-03-18T09:02:45.000Z","size":938,"stargazers_count":41,"open_issues_count":2,"forks_count":34,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-31T16:53:37.430Z","etag":null,"topics":["cucumber","eureka","gamification","gateway","microservice","rabbitmq","service-registry","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/microservices-practical.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}},"created_at":"2017-07-06T05:17:27.000Z","updated_at":"2024-10-29T00:11:59.000Z","dependencies_parsed_at":"2024-01-17T15:03:04.301Z","dependency_job_id":"2c5f3e59-11a6-4925-b6df-ba7172d13c69","html_url":"https://github.com/microservices-practical/microservices-v9","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/microservices-practical%2Fmicroservices-v9","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microservices-practical%2Fmicroservices-v9/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microservices-practical%2Fmicroservices-v9/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microservices-practical%2Fmicroservices-v9/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microservices-practical","download_url":"https://codeload.github.com/microservices-practical/microservices-v9/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238284886,"owners_count":19446747,"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":["cucumber","eureka","gamification","gateway","microservice","rabbitmq","service-registry","spring-boot"],"created_at":"2024-08-03T09:01:29.568Z","updated_at":"2025-10-26T07:31:24.284Z","avatar_url":"https://github.com/microservices-practical.png","language":"Java","readme":"# Learn Microservices with Spring Boot - v9\n\nThis project contains the version 9 of the application that is developed under the scope of the book *Learn Microservices with Spring Boot*. You can get a copy of the book on [Amazon](http://amzn.to/2FSB2ME) or [Apress](http://www.apress.com/book/9781484231647).\n\nThe book shows you how to evolve a simple Spring Boot application to become a full Microservices Architecture, using Spring Cloud Eureka, Ribbon, Zuul and Hystrix to implement Service Discovery, Load Balancing, the API Gateway pattern and a Circuit Breaker. Besides, you'll learn how to implement End-to-End tests with Cucumber, an Event-Driven system and the best practices when building Microservices.\n\n## Idea\n\nThese projects, included in [Microservices-Practical repositories](https://github.com/microservices-practical), illustrate how to start an application from scratch and then evolve it to become a full microservices environment.\n\nThis version introduces end to end testing with Cucumber JVM.\n\n## Contents\n\nThe repository contains six folders, one for each component of the system:\n\n* **social-multiplication** is one of the backend services. It has a REST API to get and provide results to simple multiplications. When an attempt is sent, it triggers an *event*.\n* **gamification** is the second backend service. It provides a REST API to get game stats and reacts to the event sent by the multiplication service, updating the figures.\n* **service-registry** is the Eureka Server, which is contacted by backend services and the gateway.\n* **gateway** is the Routing Service, implemented with Zuul. It connects with Eureka for service discovery, and performs load balancing with Ribbon.\n* **ui** contains the static files of the frontend application. It's configured to be started with Jetty.\n* **tests_e2e** contains the end to end test cases, developed with Cucumber (Gherkin notation)\n\n## How to execute the application\n\nThese are the instructions:\n\n* **UI**. Download and install [Jetty](http://www.eclipse.org/jetty/download.html). From the command line, execute `java -jar [JETTY_HOME]/jetty-[VERSION]/start.jar` (replace the values between brackets accordingly). You also need Java.\n* **RabbitMQ**. Download and install [RabbitMQ](https://www.rabbitmq.com/download.html). We use it as Event bus. When you have installed it, you need to run the RabbitMQ server (as a service or as a process, whatever you prefer).\n* **Multiplication, Gamification, Service Registry and Gateway**. You need to start all these services using the command line. Navigate to each folder and execute for every one of them: `./mvnw spring-boot:run`. If you want to try load balancing you can execute more than one instance of the Multiplication or Gamification service. To do that, override the port number to avoid clashing: `./mvnw spring-boot:run -Drun.arguments=\"--server.port=A_FREE_PORT]\"`\n\n![Application - version 8](resources/logical_view_v8.png)\n\n## Do you want to know more?\n\nIf you want more details about the different application parts and how to get there from scratch, you can buy the book on [Apress](http://www.apress.com/book/9781484231647) or [Amazon](http://amzn.to/2FSB2ME).\n","funding_links":[],"categories":["spring-boot"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicroservices-practical%2Fmicroservices-v9","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicroservices-practical%2Fmicroservices-v9","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicroservices-practical%2Fmicroservices-v9/lists"}