Accessing Models and ORM across various Django instances [Microservice Architecture]

不问归期 提交于 2019-12-20 05:23:12

问题


I've a Django Rest Project backed by Postgres Database.

Now each app under this project has to decoupled and to be moved into different server.

But in the current views there are places where i've to import models from another app and perform operations through ORM. Keeping this in mind, how can i access the models from different apps (which will be running as separate django instance on different servers) and also perform Queries on them. ?

来源:https://stackoverflow.com/questions/51035005/accessing-models-and-orm-across-various-django-instances-microservice-architect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!