Microservices System Documentation
This document provides an overview of the microservices system consisting of six services developed using Spring Boot 3.2.5 and Java 17. The system includes a Config Server, Service Registry, API Gateway, Student Service, Fee Collection Service, and Receipt Service.
Services Overview
Config Server: Manages all microservices configurations.
Service Registry: Registers all microservices for service discovery.
API Gateway: Routes requests to respective microservices.
Student Service: Registers and manages student data.
Fee Collection Service: Collects fees from students.
Receipt Service: Generates and stores receipts for fee transactions.
Getting Started
Follow these steps to test the microservices:
Start the Config Server.
Start the Service Registry.
Start the API Gateway service.
Start the Student Service, Fee Collection Service, and Receipt Service.
Access Swagger UI for each service:
Student Service: http://localhost:9001/swagger-ui/index.html
Receipt Service: http://localhost:9002/swagger-ui/index.html
Fee Collection Service: http://localhost:9000/swagger-ui/index.html
You can interact with each service using Swagger UI and refer to the respective microservice README files for more details.
Dependencies
spring-cloud-starter-netflix-eureka-server: Service registry for microservices.spring-cloud-starter-netflix-eureka-client: Eureka client for service registration.spring-cloud-starter-config: Configuration management for microservices.spring-boot-starter-webflux: WebFlux support for reactive web development.spring-retry: Retry support for handling service unavailability.spring-boot-starter-data-jpa: JPA support for database operations.h2 database: In-memory database for development.mapstruct: Mapping library for DTO to entity mapping.spring-boot-starter-actuator: Provides production-ready features.HTTPExchange: Communicating with other microservices.Testing
Junit test cases have been written for each microservice to ensure proper functionality and exception handling. Error messages are appropriately displayed in case of service unavailability.
0 likes · 26 views · Sep 30, 2024
School Fee Collection Microservices.