Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g-khan/synchronized-communication-between-microservices
Microservice-To-Microservice Synchronous Communication with Service Discovery
https://github.com/g-khan/synchronized-communication-between-microservices
communication eureka-client feign-client java-11 kotlin microservices microservices-architecture spring-boot synchronous
Last synced: 4 months ago
JSON representation
Microservice-To-Microservice Synchronous Communication with Service Discovery
- Host: GitHub
- URL: https://github.com/g-khan/synchronized-communication-between-microservices
- Owner: G-khan
- Created: 2021-01-09T14:55:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-18T20:03:35.000Z (about 4 years ago)
- Last Synced: 2024-09-30T13:02:52.175Z (4 months ago)
- Topics: communication, eureka-client, feign-client, java-11, kotlin, microservices, microservices-architecture, spring-boot, synchronous
- Language: Java
- Homepage:
- Size: 64.5 KB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Simple Synchronous Communication Example with Service Discovery
Demo project for Microservice Synchronous communication using Kotlin, Spring Boot, Service Discovery Eureka, Eureka Client & FeignClient
![enter image description here](https://cdn-images-1.medium.com/max/800/1*BB3G8KmqWn5W3m3A7KtKOg.png)
## Requirements
1. Java - 1.11.x
2. Gradle- 3.x.x
3. Clone the [Service Discovery click it.](https://github.com/G-khan/spring-eureka-server-kotlin)**Step 1: Running the Service Discovery**
Open the service discovery path then,
Type the following command in your terminal to run the service discovery./gradlew bootRun
**Step 2: Running the Payment Service**
Open the this project path then payment-service folder,
Run the project with gradle:./gradlew bootRun
**Step 3: Running the Payment Service**
Open the this project path then banking-service folder,
Run the project with gradle:./gradlew bootRun
Check the link of eureka-server for seeing the registered services: http://localhost:8761/
## Rest APIs
The app defines following for APIs.
POST http://localhost:8081/api/v1/payment
{
"paymentType":"credit card",
"bankId":"123213213213213321"
}