Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django+MongoDB vs Node.js+MongoDB

I have up and running a website with sync services that built using Python(Django)+MySQL. For a long time I'm looking to the Node.js and MongoDB side. I'm close to make a decision to move to MongoDB part of the system that hosts data from user's desktop clients and used by sync service to sync data between clients.

I'd like to keep the rest of the system running on Django+MySQL.

My question is should I rewrite sync service on Node.js or keep it running on Django? Is there any advantages for Node.js with MongoDB against Django?

like image 852
Vladimir Prudnikov Avatar asked Oct 25 '12 11:10

Vladimir Prudnikov


People also ask

Is Django or NodeJS better?

NodeJS is not as secured as Django and requires manual operations in the system to manage security flaws. It offers better performance, as there is a built-in house template system facilitating the execution of a required task quickly.

Is it good to use MongoDB with Django?

Django, the most popular Python web framework, is an ideal tool to build secure and easy-to-maintain applications using MongoDB. Using MongoDB with Django is advantageous because: Every second, more and more unstructured data is generated from various sources like chats, real-time streams, feeds, and surveys.

What is the difference between Django and MongoDB?

Generally speaking, Django has a wrapper for every relational database it supports, but Mongo is a non-relational database, so you need some external help. You need the MongoEngine Python package in order to utilize MongoDB. Other options are Ming, MongoKit, django-mongodb and django-nonrel.

Can Django replace node JS?

Both have vast scalability and performance. Django is preferred for building scalable apps in limited time and if you require high performance, you must use Node. js framework. Being clear what type of web development you would like to build, makes it easier for you to select one.


1 Answers

If you're looking for performance, Node.js should have a better performance against Django. But Node.js runs async, you should prepare the code for that, if you need everything sync and up, maybe Django is the best choice, because you already have it running.

But if you choose Node.js, make something that make the fact of beeing async is no problem for you and your data consistency, like message queues.

Check this out, it has the pros and cons of each one

switch python to node.js

tornado, django and node.js benchmark

like image 83
Rodrigo Oliveira Avatar answered Oct 05 '22 18:10

Rodrigo Oliveira