-
Book Overview & Buying
-
Table Of Contents
Machine Learning in Microservices
By :
During this stage, we need to look at how each function is accessing the database and what tables and even which parts of the database tables are accessed.
The following diagram shows what parts of the database the ABC-Monolith functions access. It is essential to know exactly which tables are accessed by which function and why. This will help us identify database dependencies, in order to later eliminate these dependencies and split the centralized ABC-Monolith database into separate data stores, each data store dedicated to each microservice.
Figure 2.6: ABC-Monolith database access
We are still bound by the microservice autonomy rule. The challenging part in the diagram and this refactoring phase is the shared tables. Sharing a table between two microservices creates coupling that would clearly violate the autonomy rule. On the other hand, creating multiple copies of the table across different microservices will create serious...
Change the font size
Change margin width
Change background colour