MongoDB is an open source NoSQL database written in C++ with support for dynamic schemas. MongoDB stores documents in JSON-like format called BSON. BSON supports embedding of objects and arrays within other arrays and objects. BSON is lightweight, traversable, and efficient. While MongoDB offers some of the same advantages offered by Couchbase, it also has some limitations. Couchbase has the following advantages over MongoDB.