This is the 15th day of my participation in Gwen Challenge. For details, see Gwen Challenge.

What is MongoDB?

A document database based on JSON data model

Why is it called document database

The Document comes from a “JSON Document”, not a PDF or Word Document as we understand it

Who developed MongoDB?

MongoDB Inc is a publicly traded company headquartered in New York, USA

The main purpose

Application database, similar to Oracle, MySQL mass data processing, data platform

The main features

  • Modeling is optional
  • The JSON data model is suitable for development
  • Scale-out can support large amounts of data and concurrency

Is MongoDB free?

  • MongoDB is available in two releases: Community and Enterprise
  • The community office is based on SSPL, an open source protocol that is basically similar to AGPL
  • The Enterprise edition is based on a commercial agreement and requires payment

MongoDB and relational databases

Advantages and characteristics of MongoDB

advantage

  • Medical + high performance database for developers

  • A straightforward object model
    • The document model corresponds to the documents in the database

  • Flexible: Fast response to service changes
    • Versatility: The same collection can contain document objects with different fields (types)
    • Dynamic: Modify data mode online without offline application and database
    • Data governance: Supports the use of JSON Schema to standardize data schemas and provides data governance capabilities on the premise of ensuring flexible and dynamic schemas

  • Fast: the simplest and fastest way to develop; Quick features of JSON models:
    • The database engine only needs to read and write from one storage area
    • Anti-paradigm, unrelated organizations greatly optimize query speed
    • The program API is naturally developed quickly

  • Native high availability and horizontal scalability
    • Replica Set-2 to 50 members
    • Since the recovery
    • Multi-center DISASTER recovery capability
    • Rolling service – Minimize service terminals

  • Lateral expansion capability
    • Seamless scaling when needed
    • Full application transparency
    • Multiple data distribution strategies
    • Easily supports tB-PB orders of magnitude