{"id":18760835,"url":"https://github.com/sarakhild/resttemplate-integration-microservices","last_synced_at":"2026-05-07T04:45:20.809Z","repository":{"id":227144561,"uuid":"738925677","full_name":"SaraKhild/resttemplate-integration-microservices","owner":"SaraKhild","description":"This project simplify the RestTemplate with Spring Boot","archived":false,"fork":false,"pushed_at":"2024-03-11T22:05:46.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T10:11:37.002Z","etag":null,"topics":["integration","mysql","resttemplate","springboot"],"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/SaraKhild.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-01-04T11:16:34.000Z","updated_at":"2024-03-11T22:11:29.000Z","dependencies_parsed_at":"2025-06-24T10:10:36.388Z","dependency_job_id":"a31c556d-6e4f-48f4-a3e6-65169d045463","html_url":"https://github.com/SaraKhild/resttemplate-integration-microservices","commit_stats":null,"previous_names":["sarakhild/resttemplate-integration-microservices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SaraKhild/resttemplate-integration-microservices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraKhild%2Fresttemplate-integration-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraKhild%2Fresttemplate-integration-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraKhild%2Fresttemplate-integration-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraKhild%2Fresttemplate-integration-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaraKhild","download_url":"https://codeload.github.com/SaraKhild/resttemplate-integration-microservices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaraKhild%2Fresttemplate-integration-microservices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272139106,"owners_count":24880242,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["integration","mysql","resttemplate","springboot"],"created_at":"2024-11-07T18:14:02.008Z","updated_at":"2026-05-07T04:45:15.762Z","avatar_url":"https://github.com/SaraKhild.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microservices Communication using RestTemplate\n\n\u003cbr\u003e\n\n## Overview\nIn synchronous communication, the client sends a request and waits for a response from the service.And one of Synchronous Communication multiple Microservices is RestTemplate.\u003cbr\u003e \u003cbr\u003e\nIn this project, I have implemented department-service, user-service, and integration-service that communicate with these two Microservices. Besides that, I have separated the database for each Microservice.\n \n \u003cbr\u003e\n \n## Usages\n- Spring Boot\n- Lombok\n- RestTemplate\n- MySQL\n    \n\u003cbr\u003e \n\n## Architecture of the Project\n\n ### 1-src folder\n \n  - User\n    - controller\n    - model\n    - dto\n    - objectmapper\n    - service\n    - repository\n    \n  - Department\n    - controller \n    - model \n    - dto\n    - objectmapper\n    - service \n    - repository\n    \n  - Integration\n    - client \n    - controller\n    - model \n   \n### 2-Maven pom.xml\n\n  - User and Department pom.xml:\n\n  ```\n \u003cdependencies\u003e\n          \u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003espring-boot-starter-data-jpa\u003c/artifactId\u003e\n\t\t\u003c/dependency\u003e\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003espring-boot-starter-web\u003c/artifactId\u003e\n\t\t\u003c/dependency\u003e\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003ecom.mysql\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003emysql-connector-j\u003c/artifactId\u003e\n\t\t\t\u003cscope\u003eruntime\u003c/scope\u003e\n\t\t\u003c/dependency\u003e\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.projectlombok\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003elombok\u003c/artifactId\u003e\n\t\t\t\u003coptional\u003etrue\u003c/optional\u003e\n\t\t\u003c/dependency\u003e\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003espring-boot-starter-test\u003c/artifactId\u003e\n\t\t\t\u003cscope\u003etest\u003c/scope\u003e\n          \u003c/dependency\u003e\n\u003c/dependencies\u003e\n  ```\n\n\u003cbr\u003e\n\n  - Integration pom.xml:\n  \n  ```\n\u003cdependencies\u003e\n          \u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003espring-boot-starter-web\u003c/artifactId\u003e\n\t\t\u003c/dependency\u003e\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.projectlombok\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003elombok\u003c/artifactId\u003e\n\t\t\t\u003coptional\u003etrue\u003c/optional\u003e\n\t\t\u003c/dependency\u003e\n\t\t\u003cdependency\u003e\n\t\t\t\u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n\t\t\t\u003cartifactId\u003espring-boot-starter-test\u003c/artifactId\u003e\n\t\t\t\u003cscope\u003etest\u003c/scope\u003e\n          \u003c/dependency\u003e\n\u003c/dependencies\u003e\n  ```\n\n### 3- User Application.properties.yml\n\n```\nspring.jpa.hibernate.ddl-auto=update\nspring.datasource.url=jdbc:mysql://localhost:3312/db\nspring.datasource.username=db\nspring.datasource.password=nFLhPPKOnkW1FA1e\nspring.jpa.show-sql=true\n\nserver.port = 8081\n\n ```\n\n### 3- Department Application.properties.yml\n\n```\nspring.jpa.hibernate.ddl-auto=update\nspring.datasource.url=jdbc:mysql://localhost:3312/db\nspring.datasource.username=db\nspring.datasource.password=nFLhPPKOnkW1FA1e\nspring.jpa.show-sql=true\n\nserver.port = 8080\n\n ```\n### 3- Integration Application.properties.yml\n\n```\nserver.port = 8082\n\n```\n\u003cbr\u003e\n\n###### Output :star_struck:\n\n\u003cimg width=\"602\" alt=\"resttemplateoutput\" src=\"https://github.com/SaraKhild/resttemplate-integration-microservices/assets/67427643/106e3854-37c5-4b6f-a8e3-f792fc8c6e56\"\u003e\n\n---\n\u003cbr\u003e\n\n### Good Luck \u003cimg src=\"https://media.giphy.com/media/hvRJCLFzcasrR4ia7z/giphy.gif\" width=\"30px\"\u003e \n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarakhild%2Fresttemplate-integration-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarakhild%2Fresttemplate-integration-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarakhild%2Fresttemplate-integration-microservices/lists"}