MongoDB Internal Architecture @hnasr
MongoDB Internal Architecture  @hnasr
Uploaded December 2022 | Updated November 2026, 3 hours ago
I’m a big believer that database systems share similar core fundamentals at their storage layer and understanding them allows one to compare different DBMS objectively. For example, How documents are stored in MongoDB is no different from how MySQL or PostgreSQL store rows.
Everything goes to disk, the trick is to fetch what you need from disk efficiently with as fewer I/Os as possible, the rest is API.

In this video I discuss the evolution of MongoDB internal architecture on how documents are stored and retrieved focusing on the index storage representation. I assume the reader is well versed with fundamentals of database engineering such as indexes, B+Trees, data files, WAL etc, you may pick up my database course to learn the skills.
Let us get started.

0:00 Intro
2:00 SQL vs NOSQL
18:00 MongoDB first version MMAPV1
26:30 MongoDB Wired Tiger
38:00 Clustered Collections

Follow me on Medium
medium.com/@hnasr/membership

Fundamentals of Backend Engineering Design patterns udemy course (link redirects to udemy with coupon)
backend.husseinnasser.com

Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)
network.husseinnasser.com

Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)
database.husseinnasser.com

Introduction to NGINX (link redirects to udemy with coupon)
nginx.husseinnasser.com

Python on the Backend (link redirects to udemy with coupon)
python.husseinnasser.com

Follow me on Medium
medium.com/@hnasr/membership

Become a Member on YouTube
youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join

Buy me a coffee if you liked this
buymeacoffee.com/hnasr

Arabic Software Engineering Channel
youtube.com/channel/UChWZsjdoRvZ0T9QWZOD6UpA

🔥 Members Only Content
youtube.com/playlist?list=UUMO_ML5xP23TOWKUcc-oAE_Eg



🏭 Backend Engineering Videos in Order
backend.husseinnasser.com

💾 Database Engineering Videos
youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2

🎙️Listen to the Backend Engineering Podcast
husseinnasser.com/podcast

Gears and tools used on the Channel (affiliates)

🖼️ Slides and Thumbnail Design
Canva
partner.canva.com/c/2766475/647168/10068


Stay Awesome,
Hussein
MongoDB Internal ArchitectureClustered Collections makes Mongo faster but there is a costSix stages of a good software engineerCloudflares 150ms global cache purge | Deep DiveWhy Cloudflare Ditched NGINXPrimary Key vs Secondary Key - What you probably didnt knowPostgreSQL Internal Architecture ExplainedNode and the Thread PoolThey made Kafka 80% faster by switching file systemsGraceful shutdown is needed to scale backendsSync or Async?h1 Graceful Shutdown
Hussein Nasser |

MongoDB Internal Architecture

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER