[英]How to design micro-services in the below scenario :-
I have to design an application using micro services architecture using Java-Spring boot which has the below use cases :- 我必须使用Java-Spring启动使用微服务架构设计应用程序,该应用程序具有以下用例:-
Queries :- 查询:
Request you all to be as specific as possible in the solution. 要求大家在解决方案中尽可能具体。
Answer1: As per your Requirement you can create following micro services 答1:根据您的要求,您可以创建以下微服务
Answer2: In User Courses table you can store User info as well as course info(both Id's) 答案2: 在“用户课程”表中,您可以存储用户信息以及课程信息(包括ID)
Answer 3: You can use mysql or mongodb or combination of this depends on your requirement. 答案3: 您可以使用mysql或mongodb,也可以结合使用这取决于您的要求。 If you will create 5 schema or will take 5 different database it would be good.
如果您要创建5个架构或采用5个不同的数据库,那就太好了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.