shivakumarpeketi / microservices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project is based on Microservice architecture.

Technoly Used

Spring Boot and Spring Cloud

Language JAVA

MySQL and MSSQL database

If you prefer video then there is separate YouTube video for each component of this project.

Services

  1. About microservice architecture with example
  2. Developing Spring Boot Application from scrach
  3. student microservice using MySQL database
  4. course microservice using MS-SQL database
  5. API Gateway- Spring Cloud Gateway
  6. Eureka Server
  7. Calling one microservice from another microservice using application name - RestTemplate
  8. Calling one microservice from another microservice using application name - WebClient
  9. Circuit Breaker - Resilience4j
  10. Spring Cloud sleuth
  11. Spring Cloud Zipkin
  12. Spring Cloud Config Server
  13. Spring Cloud Config client
  14. RefreshScope to load configuration properties value from Config Server

How to start this project

  1. Install JAVA, Maven, MySQL database, MS-SQL database : If you do not want to use database then you have to remove JPA and respective DB dependency from student and course microservice's pom.xml file
  2. Download complete code from this repository and then import in your desired code editor (Eclipse or IntelliJ IDEA)
  3. After installing database create user and databse to be used in student and course microservice. Refer this video to create user and database in MySQL. and this video to create user and database in MS-SQL.
  4. Make sure you have created correct databse and given proper role to user as per shown in video.

Runing project

  1. First of all run Eureka registry server (After successful running you can see Eureka dashboard at URL http://localhost:8083/ )
  2. Then Spring Gateway
  3. Then Config server
  4. Then student microservice and
  5. Then course microservice
  6. After all services running successful you should be able to see all above services registered on Eureka at URL : http://localhost:8083/
  7. Then Open Postman and hit Rest API endpoints discussed in Video.

Thanks.

About


Languages

Language:Java 100.0%