M
M
Maxim2019-09-25 07:26:01
Spring
Maxim, 2019-09-25 07:26:01

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

3 answer(s)
A
Andrew, 2019-09-25
@deepblack

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

D
Dmitry Shitskov, 2019-09-25
@Zarom

There is nothing shameful if several services use a common directory base.

�
âš¡ Kotobotov âš¡, 2019-09-25
@angrySCV

I recommend using CRDT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question