------------ Microservices are an architectural way of software development where the application is divided into small components (service). It allows the application to break into small parts which helps in solving debugging issues. Thus, it saves from crashing the entire system as you have to just focus on the small component.
- This project divides a single application into 4 individual components(micro-services) namely courseservice, facutlyservice, feeservice, studentservice.
- These 4 micro-services implement CRUD operations on 4 corresponding tables in the MYSQL database.
- Thereby developing and working on those 4 components(services) separately without having to depend on each other.
- Thus implementing Microservices Architecture. Also, this project implements circuit breaker using Hysterix.
-------------------------------------------------------------------------------------------------------
As you can see, there are in total 6 individual spring boot applications, each configured to run on different ports. Four (courseservice, facutlyservice, feeservice, studentservice) of these are individual micro-services that implement CRUD operations on respective tables in MYSQL DB, and information about the rest 2 is given below.
This is a Eureka server application that holds information about all client-service applications. Every Microservice (courseservice, facutlyservice, feeservice, studentservice) will register into the Eureka server and the Eureka server knows all the client applications running on each port and IP address. Eureka Server is also known as Discovery Server.
This is an another individual spring-boot application that communicates with all 4 micro-services that are running on different ports. This is achieved by using Feign-Client.
Note: Make sure that "discoveryservice" is started first always so that the rest of the micro-services can register themselves when they are started.
Start the applications in the following order:
- discoveryservice
- courseservice
- facutlyservice
- feeservice
- studentservice
- StudentFacultyCourseFeeService