Has anyone successfully built an e-commerce platform with MongoDB?

0
0
Asked By QuietMaple47 On

I've seen MongoDB used in ways that seemed like a poor fit, which made me wonder whether anyone has successfully built a serious e-commerce system around MongoDB or another NoSQL database. How did you handle product catalogs, search, inventory, orders, and transactions, and what problems did you run into?

4 Answers

Answered By SilverPanda8 On

MongoDB can make sense for product catalogs when different categories have very different attributes. Watches, jewelry, and handbags may all need completely different fields, so a document model can be convenient. Inventory, orders, payments, and other transactional workflows are a different story, though. Those usually need strong consistency and are easier to manage in a relational database. A common compromise is MongoDB for catalog and content data, with MySQL or PostgreSQL handling orders and inventory.

AmberCedar29 -

PostgreSQL is also worth considering here. Its JSON and JSONB types, along with indexing, can handle flexible attributes without giving up relational transactions.

Answered By CopperLynx31 On

It can work well if the data model and query patterns are understood before the system is designed. One e-commerce site used MongoDB to replicate product data from PostgreSQL and support autocomplete and search transformations. The database choice mattered less than designing around the actual read patterns and performance requirements.

Answered By MellowQuartz74 On

For most e-commerce systems, PostgreSQL would be my default choice unless there’s a strong reason to use something else. MongoDB can be useful for flexible catalog data, but using it for every part of the system often creates operational and consistency problems. Inventory and order state are especially risky places to trade away relational guarantees.

Answered By BlueHarbor52 On

I’ve seen MongoDB used as a centralized product store in a service-oriented system. Teams owned separate portions of the product data, exchanged updates through Kafka, and the combined documents were stored in MongoDB. That architecture can work, but it requires careful ownership rules, message handling, indexing, and a clear plan for consistency.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.