An open API service indexing awesome lists of open source software.

https://github.com/ayushkhodankar/spring-cloud-zuul

Zuul API Gateway Implementation
https://github.com/ayushkhodankar/spring-cloud-zuul

java spring-boot spring-cloud springcloud-config springcloud-demo zuul zuul-api-gateway zuul-gateway

Last synced: 2 months ago
JSON representation

Zuul API Gateway Implementation

Awesome Lists containing this project

README

        

# Zuul - Spring Cloud

Zuul Server is an API Gateway application. It handles all the requests and performs the dynamic routing of microservice applications. It works as a front door for all the requests.

## Contents in the Repository

This repository consists of the implementation of the Zuul API Gateway in Java.

### Modules

1. **gateway-service**
- A module using Spring Cloud Netflix Zuul for running a Spring Boot application that acts as a proxy/gateway in our architecture.

#### Dependency
Add the following dependency in `pom.xml` to enable the Zuul Gateway in the module:
```xml

org.springframework.cloud
spring-cloud-starter-netflix-zuul

```

#### Configuration
Add the following properties in `application.properties`:
```properties
zuul.routes.doctor-service.url=http://localhost:8081/
zuul.routes.diagnosis-service.url=http://localhost:8082/
ribbon.eureka.enabled=false
server.port=8080
```

2. **diagnosis-service**
- An API module that invokes services acknowledged in diagnosis.

#### Configuration
Add the following properties in `application.properties`:
```properties
spring.application.name=diagnosis-service
server.port=8081
```

3. **hospital-service**
- An API module that shows and presents the services provided in the hospital arena.

#### Configuration
Add the following properties in `application.properties`:
```properties
spring.application.name=doctor-service
server.port=8082
```

## Tools and Technologies Used

- **Spring Tool Suite 4**
- **Eclipse 2022-12**
- **Java Version**: 1.8
- **JDK**: 17
- **Zuul Netflix Support/Dependency**