Which one is better? Considering following:
- Realtime Updates on client [ For Eg. a Contact is updated ]
- Database Schema could change as per new requirements.
- Database might need to be sharded in future.
- REST API for clients.
- Less[No] Vulneribilities.
- Easily Integratable with other systems like hubspot.
- Scheduling and Queue Management.
- Better Coding experience.
- Distributed System.
- Millions of requests per minute.
Top comments (6)
Once I was assigned to design a realtime online exam website and I decided to use Node.js and MongoDB for 2 reasons: 1- Node.js works perfectly with Socket.io (for realtime connections and updates) 2- MongoDB is not an RDMBS which makes it really fast for realtime connections and its schema can change pretty easily. MongoDB doesn't have a strict schema actually, you can even have different columns for each record (Not encouraged though).
I think your situation is somehow similar to mine back then. So I hope this helps you.
I would almost always pick Django with Postgres first but your realtime updates requirement makes NodeJS the better choice. For large scale projects I find Python + Django a much more pleasant coding experience. NodeJS, though, makes hooking up sockets to the UI for pushing updates very simple.
There's asgi gut, if we introduce microservices, NodeJS becomes more dominant with mongodb
A CRM app will have so many objects like Accounts, Leads, Opportunities etc. There will be xomplex relationships between these object if you need an effective CRM. I dont think Mongo will be a good choice for such complex DB relationships. You will need a relational DB. According to me best choice will be Django with PSql. But there are other aspects to consider too like how do you handle file attachments. So it may be good to have a combination and break out the application in multiple components.
I wonder... Leads and Opportunities could be states. A Lead could be a customer you haven't yet acquired. I'm inclined to think node + mongo is the better choice, although Django 3.0 + ASGI can handle sockets.
Just curious! about different viewpoints around the globe.