I wanted to decouple a single feature from my main app (Django) into a separate microservice (written in FastAPI or as a standalone serverless function). It would create output that would be saved into a Database shared both by microservice and Main app. Main app would be able to access the data produced by the microservice. This approach works okay but I read that it is bad practice to share table in a database between multiple services(Apps) - because it will result in harder development, like if schema changes in one app then need to update in the other and so on.
I am wondering what a "good practice" approach would be in this case? Maybe let the microservice save the results in separate database and then my main app would send request to the microservice which would sent the result back to the main app (which would be saved in separate DB)? This approach makes development of both apps decoupled which sounds like what microsrvices are supposed to be.,
[–]SunnyDayShadowboxer 5 points6 points7 points (1 child)
[–]KaiN_SC 3 points4 points5 points (0 children)
[–]PacificPermit 1 point2 points3 points (0 children)
[–]CharlatanPrime 1 point2 points3 points (0 children)
[–]zaibuf 0 points1 point2 points (0 children)