Home > Back-end > Micro service data sources, more questions, please help
Micro service data sources, more questions, please help
Time:12-19
Micro service users are using the mysql user information table. Including id, name... Such information. But business is essentially a service, such as record table is id, work1, work2... UserId, this userId is which Mysql user information table.
Then the problem come..
When business queries, such as 1000, each has a different userId, how will this article 1000 to the userId to find the corresponding information such as name.
CodePudding user response:
Completes the cache, there are 1000, you directly use the in query out then Java cycle spell
CodePudding user response:
By id is going to different databases to store user information, there must be general rules, do you know which library id can calculate which table