4 ms·
Ask HN: Non-trivial web app/data model using NoSQL
There's a lot of buzz in modern web app development over things like node.js/express, mongodb, backbone/spine.js etc. etc. There are plenty of "how to build a blog with comments using $STACK_OF_THE_WEEK", but I have yet to see a good discussion of modeling a non-trivial app using a NoSQL db + $STACK_OF_THE_WEEK. It doesn't even have to be that complex, just a bit more complex than a blog example.
Let's take an example: an order processing system. You have products, stock, orders, customers etc. Modeling this using Rails+MySQL is pretty obvious, products have stock, customers have orders, orders have line items, line item have products. Any recommendations or article links on using a NoSQL database + stack? Or should I just stick with a relational setup such as rails.
- MaxGfeller 15y agoThat is exactly what annoys me when looking at the website of a new framework. Often you are completely impressed by how simple it is to set up a blog but while building a larger application you realize that it is not suited for your project.
- dbcfd 15y agoThe Liftweb docs show something similar to a cart system, and supports switching from the file database to mongodb fairly easily. Since mongo is nosql and uses Lift's mapper, it will work the same as the example application. However, mongodb doesn't support transactions, but does have atomic operation support. If you keep your records small, it should perform well. http://simply.liftweb.net/index-6.3.html#toc-Section-6.3 http://simply.liftweb.net/index-6.3.html#toc-Section-6.3
- lsllc 15y agoI did find some interesting articles on mongodb.org, one for rails+mongodb: http://www.mongodb.org/display/DOCS/MongoDB+Data+Modeling+and+Rails http://www.mongodb.org/display/DOCS/MongoDB+Data+Modeling+an... And a page of interesting articles (most of which I've seen before) about node.js: http://www.mongodb.org/display/DOCS/node.JS http://www.mongodb.org/display/DOCS/node.JS
- lsllc 15y agoSo far, this is the best example I've found: https://github.com/qed42/nodejs-express-mongoose-demo https://github.com/qed42/nodejs-express-mongoose-demo mongodb+nodejs+express+jade ... just missing backbone or spine! Not sure if it's any better than rails, but hey, this stack worth more karma points!