
In other cases, you may have more complex transactions involved many separate logical units. There may be cases where transactions against a data store simply won't be modified once set. The technical differences between SQL databases vs noSQL really come down to a tradeoff between performance and reliability. They're particularly well suited to storing data which is inconsistent (as a collary, this makes it great for prototyping when the data model rapidly changes). NoSQL however is weakly typed, making very few attempts at data validation so that responsibility is placed back on the developer. SQL databases, being strongly typed in nature are great at enforcing a level of consistency, ensuring many kinds of bad data simply don't get recorded in the first place. I would say it entirely depends on what you're trying to do. We used MongoDB at scale back in my days at AOL and in the past two years I've seen an equivalent number of success and failure stories.Ĭritics of the MEAN stack sometimes point out that MongoDB may work well here for small-mid sized apps, but less so for large-scale applications (e.g 100's of millions of users). A fair discussion about the merits and critiques of the noSQL movement could easily fill several pages. Why MongoDB?Īs mentioned, the choices in this stack, such as Mongo, enable the use of one language the whole way through.

Note: There is little about the MEAN stack heavily coupled to Angular and a developer could substitute it for Backbone.js, Ember.js, Polymer or any other framework without losing the single-language stack advantages it offers. At a high-level, this is compelling and certainly make ease debugging when the objects in your database are identical to those your JS sees. You get consistent models across the stack and consistent best practices in many cases too.įor example, in the case of Mongo - you can store documents in a JSON-like format ( BSON - Binary JSON objects), author JSON queries in Express/Node and pass these JSON documents back to an Angular powered frontend.


Supporters of the stack claim the use of JavaScript all the way down increases productivity and it's hard to dispute that this notion is pretty appealing. The acronym stands for: (M)ongoDB - a noSQL document datastore which uses JSON-style documents to represent data, (E)xpress - a HTTP server framework on top of Node, (A)ngular - as you know, the JS framework offering declarative, two-way databinding for webapps and (N)ode - the platform built on V8’s runtime for easily building fast, scalable network applications. Full-Stack JavaScript With MEAN And Yeoman Home GitHub Press Biography LinkedIn Twitter Subscribe Shop Blog Full-Stack JavaScript With MEAN And Yeoman December 12, 2013Ī trend proliferating amongst prototypers in the Angular community is full-stack JavaScript development via the MEAN stack.
