Is MongoDB the Right Choice for a Currency System?

April 17, 2025 5 answers
Asked by ~check the latch!
I've been using MongoDB to manage real-world transactions involving currency, but I'm having second thoughts about whether it's really the best database choice for this type of application. Consistency, security, and safe transactions are super important to me, so I'm looking for insights from anyone who's developed similar systems. What do you think?

Answers

stationery box 8
You raise a good point about consistency. MongoDB often sacrifices that for features like sharding and scalability. In most cases, PostgreSQL seems like a more solid choice unless you're going for something trendy. Just my two cents!

lapel.buttonhole: MongoDB has actually had multi-document ACID transactions for a while now, so that argument is getting a bit outdated. If it works well for your project, then stick with it! But PostgreSQL is always a reliable option too.

Reply to this answer
CHOIR_entry_guide
If your data is inherently relational, it definitely makes sense to go with a relational database management system (RDBMS). It's just better suited for this kind of transactions.
Reply to this answer
flagstone.path
It's important for your database to be ACID compliant, so as long as MongoDB meets that, you should be fine. But keep in mind, the best choice can also depend on your specific needs.
Reply to this answer
_pH6soil
Relational databases are usually the better choice for handling transactions, particularly when it comes to effectively committing or rolling back multiple queries. They're just more equipped for these scenarios than MongoDB.
Reply to this answer
paperclip chain
Honestly, I haven't seen a situation where MongoDB stands out as the best option. If reliability is key, you might want to stick with something like PostgreSQL, which is more traditional and consistent for transactional systems.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions