Frontend and backend framework collaboration
Is there any options to use powerful backend framework with frontend framework on the same server?
Let me be more specific.
For example, in my projects I use Django framework, really like it and want to use it in future projects. But for me it is a best way to use frontend framework to build web-application style portals. For this reason I use ReactJS, because for me it's a really fast! But I don't like NodeJS and don't want to use it in my projects.
But I have problem. For example, in one of our projects we use real time chat. For that we built a ligament NodeJS+SocketIO+Redis. Besides that on backend we have Django+uWSGI+PostgreSQL. And in the base part: Django REST Framework + React.
Is there any way to use frontend JS framework with Django without creating so complicated system?
In my opinion: I need fast scalable solution for frontend, which can connect with Django fast.
In case if you need to provide real time - functions that's possible and you have to use Django, Gevent and SockeIO to implement this, because Django itself aren't asyncronous.
Also you could take a look at WAMP Protocol. Checkout how to add support for WAMP in django with Crossbar.io server in Adding Real-Time to Django Applications article.
链接地址: http://www.djcxy.com/p/78190.html上一篇: 如果将后端和前端项目分开,如何部署?
下一篇: 前端和后端框架协作