Answer the question
In order to leave comments, you need to log in
How to bind data in microservice?
Suppose there are 2 microservices, for example "A" and "B", they have their own databases. But we have a need for a table "T" for use in both A and B. The table "T" is essentially something in the form of a reference book, logically it cannot be attributed to either "A" or "B". How to deal with the table, how to choose where to take it, or what to do with it?
Answer the question
In order to leave comments, you need to log in
Make another microservice (with a simple API), let the rest access it for data.
If you do not want to produce microservices, then it is not clear why you are using a microservice architecture.
After all, several dozens of different microservices in one project is quite normal (there are many projects where there are hundreds of them).
You write that there are only two of them o_O
There is nothing shameful if several services use a common directory base.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question