AlgoViz

MongoDB

medium 34 min

MongoDB is a document database: it stores whole JSON-like records, keeps them on a replica set with one primary, and splits big collections over shards by a shard key.

Where it shows up

The same pattern appears across everyday software.

  • Forbes: publishing

    MongoDB's published case study describes the Forbes content management system on Atlas, with shorter build times for the site.

  • Adobe: creative tools

    MongoDB's published case study describes Adobe using it as a data platform for AI features in creative products.

  • eBay: shopping carts

    eBay's engineering blog describes a MongoDB store that holds the entire cart of a user, in front of an Oracle store that is the persistent copy.

  • Product catalogue

    A shoe has sizes and a lamp has a voltage. One collection holds both, and an index on common fields serves the search page.

  • Device readings

    Time series collections, built in since 5.0, group measurements of one device and compress them. A TTL removes old ones.

  • User profiles and settings

    Each profile is one document that is read at sign-in and changed in place with `$set`.

  • Feeding other systems

    A change stream sends new orders to a search index and to the notification service without polling.