This API Gateway application acts as a central entry point for routing requests to various microservices in Medisync. Built using Spring Cloud Gateway, it integrates with Eureka Discovery Server for dynamic routing and load balancing.
- Service Discovery: Integrates with Eureka for dynamic service discovery.
- Routing: Routes requests to various microservices based on predefined paths.
- Load Balancing: Distributes requests across available instances of services.
- Logging: Logs routing information for monitoring and debugging purposes.
The routes are configured in the ApiGatewayApplication
class. Here are the default routes:
/servicea/**
-> Routes toservicea
(Test service)/serviceb/**
-> Routes toserviceb
(Test service)/drug-interaction-checker/**
-> Routes todrug-interaction-checker
/disease-prediction-service/**
-> Routes todisease-prediction-service
/ml-backend/**
-> Routes toml-backend