I am planning to use microservice architecture in my project with node- express and this term is new for me.
I researched about it and I came to know that each independent module can be considered as a microservice having a separate database, currently, my project has the same database to all over the module consider below diagram:
Current Architecture:
All the modules(student, school, faculties) share the same DB and always we need one module table data into another module.
Now the problem starts like so we must have the separate DB can't we make three virtual different DB in one DB?
OK if I create three separate DB so can I map one's microservice DB into another microservice for fetching and inserting data and the execution speed will still be boost(as I read that doing separate ms with DB boost your execution speed) as compared to current scenario where I am sharing the same DB and fetching data across the tables in all module?
One question also I have that the big product like OLA, Netflix, Twitter how they are dealing with the microservices if they have different DB and when they want to map the one microservice DB into another microservice?
Please help me out.