Skip to content

gsush/microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Microservice Project setup

Architecture of the microservice for code checkout main branch A small demo is attached

ezyZip.mp4

There are two db here one is questiondb and quizdb. questiondb contains all the questions along with the all the details. and quizdb is only accessing the questiondb with id for three methonds getscore,generate quiz and get question. here also question service is running. image

for db setup pgadmin4 is being used with two db as shown below image

Need to insert the data into the table with the following example

INSERT INTO Question (id, category, difficultyLevel, option1, option2, option3, option4, question_title, right_answer) VALUES (1, 'Java', 'Easy', '8 bits', '16 bits', '32 bits', '64 bits', 'What is the size of int in Java?', '32 bits'); and quiz db has ids as image

image

Euraka server(running on port 8761) is being used for discovery and register to service registery so that each microservice is aware of the other and can check there image instances of eureka server which are up image

quiz to question calling b/w microservice --> here the quiz service(running of port 8090) is asking to question serive the question and this is being done by openfeign image

load balancing two instances of same microservice --> two instance of question serivce is running on port 8080 and 8081 and load balancing is being done by spring cloud. image

api gateway --> running of port 8765 image

About

microservices working

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published