Each microservice's persistent data is private to that service and accessible only via its API. This ensures loose coupling.
Order Service uses PostgreSQL. Catalog Service uses MongoDB. Recommendation Service uses Neo4j. They cannot access each other's DBs directly.
class DatabaseperMicroservice:\n def __init__(self):\n pass\n\n def execute(self):\n print('Executing Database per Microservice')