{"id":32049,"date":"2026-08-25T14:12:46","date_gmt":"2026-08-25T08:42:46","guid":{"rendered":"https:\/\/opstree.com\/blog\/?p=32049"},"modified":"2026-08-25T14:12:46","modified_gmt":"2026-08-25T08:42:46","slug":"mongodb-basics-concepts-architecture-part-1","status":"publish","type":"post","link":"https:\/\/opstree.com\/blog\/mongodb-basics-concepts-architecture-part-1\/","title":{"rendered":"MongoDB Zero to Hero: Understanding MongoDB from Scratch (Part 1)"},"content":{"rendered":"<p><span data-contrast=\"auto\">If\u00a0you&#8217;re\u00a0starting your journey into databases,\u00a0you&#8217;ve\u00a0probably heard\u00a0names like\u00a0<\/span><b><span data-contrast=\"auto\">MySQL<\/span><\/b><span data-contrast=\"auto\">,\u00a0<\/span><a href=\"https:\/\/opstree.com\/blog\/postgresql-performance-with-pgbouncer\/\" target=\"_blank\" rel=\"noopener\"><b><span data-contrast=\"auto\">PostgreSQL <\/span><\/b><\/a><span data-contrast=\"auto\">and <\/span><b><span data-contrast=\"auto\">MongoDB<\/span><\/b><span data-contrast=\"auto\">. While all of them help store data, they work in\u00a0different ways.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">In this article, we&#8217;ll explore what MongoDB is, how it differs from traditional SQL databases and <\/span><span data-contrast=\"auto\">why <\/span><span data-contrast=\"auto\">it&#8217;s <\/span><span data-contrast=\"auto\">one of the most popular databases for modern applications.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<div style=\"background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px 24px; margin: 25px 0; font-family: Arial,Helvetica,sans-serif;\">\n<h3 style=\"margin: 0 0 15px; font-size: 20px; color: #111827;\">What You&#8217;ll Learn<\/h3>\n<ol style=\"margin: 0; padding-left: 22px; color: #374151; font-size: 15px; line-height: 1.8;\">\n<li>What MongoDB Is<\/li>\n<li>SQL vs NoSQL Databases<\/li>\n<li>Why MongoDB Was Created<\/li>\n<li>JSON vs BSON<\/li>\n<li>Why Developers Love MongoDB<\/li>\n<li>Common MongoDB Use Cases<\/li>\n<li>The <code style=\"background: #eef2f7; padding: 2px 5px; border-radius: 3px;\">_id<\/code> Field and Its Behavior<\/li>\n<li>Basic MongoDB Architecture<\/li>\n<li>MongoDB Server Components: <code style=\"background: #eef2f7; padding: 2px 5px; border-radius: 3px;\">mongod<\/code>, <code style=\"background: #eef2f7; padding: 2px 5px; border-radius: 3px;\">mongosh<\/code>, and <code style=\"background: #eef2f7; padding: 2px 5px; border-radius: 3px;\">mongos<\/code><\/li>\n<\/ol>\n<\/div>\n<h2><span class=\"NormalTextRun SCXW253634669 BCX0\" data-ccp-parastyle=\"heading 2\">SQL vs NoSQL: <\/span><span class=\"NormalTextRun SCXW253634669 BCX0\" data-ccp-parastyle=\"heading 2\">What&#8217;s<\/span><span class=\"NormalTextRun SCXW253634669 BCX0\" data-ccp-parastyle=\"heading 2\">\u00a0the Difference?<\/span><\/h2>\n<p><span class=\"TextRun SCXW221354520 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW221354520 BCX0\">Before diving deeper into MongoDB,\u00a0<\/span><span class=\"NormalTextRun SCXW221354520 BCX0\">it&#8217;s<\/span><span class=\"NormalTextRun SCXW221354520 BCX0\">\u00a0important to understand the two major types of databases:\u00a0<\/span><\/span><span class=\"TextRun SCXW221354520 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW221354520 BCX0\">SQL (Relational Databases)<\/span><\/span><span class=\"TextRun SCXW221354520 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW221354520 BCX0\">\u00a0and\u00a0<\/span><\/span><span class=\"TextRun SCXW221354520 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW221354520 BCX0\">NoSQL (Non-Relational Databases)<\/span><\/span><span class=\"TextRun SCXW221354520 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW221354520 BCX0\">.<\/span><\/span><span class=\"EOP Selected SCXW221354520 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span class=\"TextRun SCXW114270542 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW114270542 BCX0\">Both are used to store and manage data, but they differ in how they organize, store, and retrieve information.<\/span><\/span><span class=\"EOP Selected SCXW114270542 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<h3><span class=\"TextRun SCXW14698856 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW14698856 BCX0\" data-ccp-parastyle=\"heading 2\">What is a SQL Database?<\/span><\/span><span class=\"EOP Selected SCXW14698856 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:360,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h3>\n<p><span class=\"TextRun SCXW264245894 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW264245894 BCX0\">A\u00a0<\/span><\/span><span class=\"TextRun SCXW264245894 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW264245894 BCX0\">SQL (Structured Query Language)<\/span><\/span><span class=\"TextRun SCXW264245894 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW264245894 BCX0\">\u00a0database stores data in\u00a0<\/span><\/span><span class=\"TextRun SCXW264245894 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW264245894 BCX0\">tables<\/span><\/span><span class=\"TextRun SCXW264245894 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW264245894 BCX0\">\u00a0made up of rows and columns. Each table has a predefined structure, known as a\u00a0<\/span><\/span><span class=\"TextRun SCXW264245894 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW264245894 BCX0\">schema<\/span><\/span><span class=\"TextRun SCXW264245894 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW264245894 BCX0\">, which defines what type of data each column can store.<\/span><\/span><span class=\"EOP Selected SCXW264245894 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Popular SQL databases include:<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<ul>\n<li><a href=\"https:\/\/opstree.com\/blog\/mysql-database-migration-on-aws-rds\/\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"auto\">MySQL<\/span><\/a><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><a href=\"https:\/\/opstree.com\/blog\/stream-postgresql-data-to-s3-via-kafka-using-jdbc-and-s3-sink-connectors-part-1\/\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"auto\">PostgreSQL<\/span><\/a><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><a href=\"https:\/\/opstree.com\/blog\/demystifying-oracle-cloud-infrastructure-oci-a-comprehensive-introduction-and-architecture-overview\/\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"auto\">Oracle Database<\/span><\/a><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><a href=\"https:\/\/opstree.com\/blog\/monitoring-mssql-prometheus-grafana\/\" data-schema-attribute=\"about\"><span data-contrast=\"auto\">Microsoft SQL Server<\/span><\/a><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><span class=\"TextRun SCXW149791497 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW149791497 BCX0\">For example, a\u00a0<\/span><span class=\"NormalTextRun SCXW149791497 BCX0\">Products<\/span><span class=\"NormalTextRun SCXW149791497 BCX0\">\u00a0table might look like this:<\/span><\/span><span class=\"EOP Selected SCXW149791497 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<div style=\"overflow-x: auto; margin: 25px 0;\">\n<table style=\"width: 100%; border-collapse: collapse; min-width: 650px; font-family: Arial,Helvetica,sans-serif; font-size: 14px;\">\n<thead>\n<tr style=\"background: #f5f7fa;\">\n<th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\">Product ID<\/th>\n<th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\">Product Name<\/th>\n<th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\">Price<\/th>\n<th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\">Warranty<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">101<\/td>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">Laptop<\/td>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">\u20b964,999<\/td>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">2 Years<\/td>\n<\/tr>\n<tr style=\"background: #fafafa;\">\n<td style=\"border: 1px solid #ddd; padding: 12px;\">102<\/td>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">Mouse<\/td>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">\u20b9799<\/td>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">NULL<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><span class=\"TextRun SCXW23260495 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW23260495 BCX0\">Notice that every product must have the same columns. If a product\u00a0<\/span><span class=\"NormalTextRun SCXW23260495 BCX0\">doesn&#8217;t<\/span><span class=\"NormalTextRun SCXW23260495 BCX0\"> have a warranty, the value is stored as <\/span><\/span><span class=\"TextRun SCXW23260495 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW23260495 BCX0\">NULL<\/span><\/span><span class=\"TextRun SCXW23260495 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW23260495 BCX0\">.<\/span><\/span><span class=\"EOP Selected SCXW23260495 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:0,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<h3><span class=\"TextRun SCXW135807506 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW135807506 BCX0\" data-ccp-parastyle=\"heading 3\">Advantages of SQL Databases<\/span><\/span><span class=\"EOP Selected SCXW135807506 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:280,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h3>\n<ul>\n<li><span data-contrast=\"auto\">Well-suited for structured data.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Strong data consistency using ACID transactions.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Excellent for complex relationships between tables.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Mature ecosystem with decades of development<\/span><span data-contrast=\"auto\">.<\/span><\/li>\n<\/ul>\n<h3><span class=\"TextRun SCXW225557808 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW225557808 BCX0\" data-ccp-parastyle=\"heading 3\">Limitations of SQL Databases<\/span><\/span><\/h3>\n<ul>\n<li><span data-contrast=\"auto\">Schema changes require database\u00a0migrations.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">New columns must be added before storing new types of data.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Many unused (NULL) fields can appear.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Scaling horizontally can be more complex.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<h3><span class=\"TextRun SCXW202182531 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW202182531 BCX0\" data-ccp-parastyle=\"heading 1\">What is a NoSQL Database?<\/span><\/span><span class=\"EOP Selected SCXW202182531 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:480,&quot;335559739&quot;:120}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">A\u00a0<\/span><b><span data-contrast=\"auto\">NoSQL (Not Only SQL)<\/span><\/b><span data-contrast=\"auto\">\u00a0database stores data in a more flexible format. Instead of tables, MongoDB stores data as\u00a0<\/span><b><span data-contrast=\"auto\">documents<\/span><\/b><span data-contrast=\"auto\">.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Each document is\u00a0similar to\u00a0a JSON object and can have its own structure.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">For example, one product document may\u00a0contain\u00a0only basic information:<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<div style=\"margin: 20px 0;\">\n<pre style=\"background: #1e1e1e !important; color: #d4d4d4 !important; padding: 18px; border-radius: 8px; overflow-x: auto; font-family: Consolas,'Courier New',monospace; font-size: 14px; line-height: 1.6;\"><code style=\"background: transparent !important; color: inherit !important; padding: 0 !important; margin: 0 !important; border: none !important; box-shadow: none !important;\">{\r\n  \"productName\": \"Laptop\",\r\n  \"brand\": \"Dell\",\r\n  \"price\": 64999\r\n}<\/code><\/pre>\n<\/div>\n<p><span class=\"TextRun SCXW119232296 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW119232296 BCX0\">Another product in the same collection can include\u00a0<\/span><span class=\"NormalTextRun SCXW119232296 BCX0\">additional<\/span><span class=\"NormalTextRun SCXW119232296 BCX0\">\u00a0details:<\/span><\/span><span class=\"EOP Selected SCXW119232296 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<div style=\"margin: 20px 0;\">\n<pre style=\"background: #1e1e1e !important; color: #d4d4d4 !important; padding: 18px; border-radius: 8px; overflow-x: auto; font-family: Consolas,'Courier New',monospace; font-size: 14px; line-height: 1.6;\"><code style=\"background: transparent !important; color: inherit !important; padding: 0 !important; margin: 0 !important; border: none !important; box-shadow: none !important;\">{\r\n  \"productName\": \"Smartphone\",\r\n  \"brand\": \"Samsung\",\r\n  \"price\": 32999,\r\n  \"color\": \"Black\",\r\n  \"storage\": \"256GB\",\r\n  \"warranty\": \"2 Years\",\r\n  \"ratings\": 4.8\r\n}<\/code><\/pre>\n<\/div>\n<p><span class=\"TextRun SCXW232008913 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW232008913 BCX0\">Notice that both documents belong to the same collection, yet they\u00a0<\/span><span class=\"NormalTextRun SCXW232008913 BCX0\">don&#8217;t<\/span><span class=\"NormalTextRun SCXW232008913 BCX0\">\u00a0have identical fields. This flexibility allows applications to evolve without constantly\u00a0<\/span><span class=\"NormalTextRun SCXW232008913 BCX0\">modifying<\/span><span class=\"NormalTextRun SCXW232008913 BCX0\">\u00a0the database structure.<\/span><\/span><span class=\"EOP Selected SCXW232008913 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<h3><span class=\"TextRun SCXW191658973 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW191658973 BCX0\" data-ccp-parastyle=\"heading 3\">Advantages of NoSQL Databases<\/span><\/span><\/h3>\n<p><span data-contrast=\"auto\">NoSQL databases are designed for modern applications that deal with changing and diverse data.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Some key advantages include:<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<ul>\n<li><span data-contrast=\"auto\">Flexible schema<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Easy to\u00a0modify\u00a0document structure<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Better horizontal scalability<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Faster development<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Excellent support for semi-structured and unstructured data<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Ideal for cloud-native applications<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<div style=\"border: 1px solid #d1d5db; padding: 16px; margin: 20px 0; background-color: #f0f4f8;\">\n<p style=\"margin: 0; font-weight: 600; font-size: 16px;\">Modernize your data infrastructure with OpsTree <a href=\"https:\/\/opstree.com\/services\/database-and-data-engineering\/\" target=\"_blank\" rel=\"noopener\">Data Engineering Services<\/a> to solve complex data scalability, performance, integration and reliability challenges while building a secure, scalable and future-ready data platform<\/p>\n<\/div>\n<h2><span class=\"TextRun SCXW156143809 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW156143809 BCX0\" data-ccp-parastyle=\"heading 2\">Flexible Schema \u2260 No Schema<\/span><\/span><span class=\"EOP Selected SCXW156143809 BCX0\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:160,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">This is\u00a0an\u00a0<\/span><b><span data-contrast=\"auto\">important point<\/span><\/b><span data-contrast=\"auto\">\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Many beginners misunderstand MongoDB and think:<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">MongoDB has no schema.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Instead, MongoDB uses a\u00a0<\/span><b><span data-contrast=\"auto\">flexible schema<\/span><\/b><span data-contrast=\"auto\">, which means documents in the same collection do not have to contain exactly the same fields. However, applications can still enforce a defined structure using <\/span><b><span data-contrast=\"auto\">schema validation<\/span><\/b><span data-contrast=\"auto\">.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<h2><span class=\"TextRun SCXW16032671 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW16032671 BCX0\" data-ccp-parastyle=\"heading 2\">What is MongoDB?<\/span><\/span><span class=\"EOP Selected SCXW16032671 BCX0\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:160,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h2>\n<p><span class=\"TextRun SCXW161654704 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW161654704 BCX0\">In the digital world, applications generate and process vast amounts of data every second. Whether <\/span><span class=\"NormalTextRun SCXW161654704 BCX0\">it&#8217;s<\/span><span class=\"NormalTextRun SCXW161654704 BCX0\">\u00a0an online shopping website, a social media platform, or a banking application, all of them need a reliable database to store and manage information efficiently.<\/span><\/span><span class=\"EOP Selected SCXW161654704 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span class=\"TextRun SCXW80147258 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW80147258 BCX0\">MongoDB is a NoSQL (Non-Relational) database that stores data in flexible, JSON-like documents instead of traditional tables and rows.<\/span><\/span><span class=\"TextRun SCXW80147258 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW80147258 BCX0\">\u00a0Unlike relational databases, where every record must follow the same fixed structure, MongoDB allows each document to have its own set of fields. This flexibility makes it easier to handle real-world data, which often changes over time.<\/span><\/span><span class=\"EOP SCXW80147258 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span class=\"TextRun SCXW121242767 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW121242767 BCX0\">For example, consider an online shopping application. One product might have only a name and price, while another product also includes color, storage capacity, warranty and customer ratings. In MongoDB, both products can exist in the same collection without requiring <\/span><span class=\"NormalTextRun SCXW121242767 BCX0\">additional<\/span><span class=\"NormalTextRun SCXW121242767 BCX0\">\u00a0columns or schema changes.<\/span><\/span><span class=\"EOP Selected SCXW121242767 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<div style=\"margin: 20px 0;\">\n<pre style=\"background: #1e1e1e !important; color: #d4d4d4 !important; padding: 18px; border-radius: 8px; overflow-x: auto; font-family: Consolas,'Courier New',monospace; font-size: 14px; line-height: 1.6;\"><code style=\"background: transparent !important; color: inherit !important; padding: 0 !important; margin: 0 !important; border: none !important; box-shadow: none !important;\">{\r\n  \"productName\": \"Laptop\",\r\n  \"brand\": \"Dell\",\r\n  \"price\": 64999\r\n}\r\n\r\n{\r\n  \"productName\": \"Smartphone\",\r\n  \"brand\": \"Samsung\",\r\n  \"price\": 32999,\r\n  \"color\": \"Black\",\r\n  \"storage\": \"256GB\",\r\n  \"warranty\": \"2 Years\",\r\n  \"ratings\": 4.8\r\n}<\/code><\/pre>\n<\/div>\n<p><span class=\"TextRun SCXW119192275 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW119192275 BCX0\">This flexibility is one of the biggest reasons developers choose MongoDB for modern applications.<\/span><\/span><span class=\"EOP Selected SCXW119192275 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<h2><span class=\"TextRun SCXW216865212 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW216865212 BCX0\" data-ccp-parastyle=\"heading 2\">Why is MongoDB Popular?<\/span><\/span><\/h2>\n<p><span data-contrast=\"auto\">MongoDB is designed to support applications that need to scale quickly and handle\u00a0different types\u00a0of data. It offers:<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<ul>\n<li><b><span data-contrast=\"auto\">Flexible document model<\/span><\/b><span data-contrast=\"auto\">\u00a0that adapts to changing business requirements.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">High performance<\/span><\/b><span data-contrast=\"auto\">\u00a0for reading and writing large volumes of data.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">Horizontal scalability<\/span><\/b><span data-contrast=\"auto\">\u00a0through sharding, allowing data to be distributed across multiple servers.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">High availability<\/span><\/b><span data-contrast=\"auto\">\u00a0with Replica Sets that automatically provide failover if a server goes down.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">Powerful indexing and querying<\/span><\/b><span data-contrast=\"auto\">\u00a0for fast data retrieval.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">Cloud-native support<\/span><\/b><span data-contrast=\"auto\">\u00a0with MongoDB Atlas for easy deployment and management.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"auto\">Built-in support for AI applications<\/span><\/b><span data-contrast=\"auto\">, including Vector Search for semantic search and recommendation systems.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><span class=\"TextRun SCXW255178895 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW255178895 BCX0\">MongoDB Atlas<\/span><\/span><span class=\"TextRun SCXW255178895 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW255178895 BCX0\">\u00a0is MongoDB&#8217;s fully <a href=\"https:\/\/opstree.com\/services\/cloud-migration-and-modernization-services\/\" target=\"_blank\" rel=\"noopener\">managed cloud database service<\/a>. It allows developers to create, deploy, monitor and scale MongoDB clusters without managing the underlying database infrastructure.<\/span><\/span><span class=\"EOP Selected SCXW255178895 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<h2><span class=\"TextRun SCXW177974181 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW177974181 BCX0\" data-ccp-parastyle=\"heading 2\">Where is MongoDB Used?<\/span><\/span><\/h2>\n<p><span data-contrast=\"auto\">MongoDB is widely used across industries because of its flexibility and scalability. Some common use cases include:<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<ul>\n<li><span data-contrast=\"auto\">Web applications<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Mobile applications<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">E-commerce platforms<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Analytics and reporting systems<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Content Management Systems (CMS)<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Log and event management<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Internet of Things (IoT) applications<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Artificial Intelligence (AI) and Machine Learning (ML) applications<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<h2><span class=\"TextRun SCXW47470565 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW47470565 BCX0\" data-ccp-parastyle=\"heading 2\">Understanding the\u00a0<\/span><span class=\"NormalTextRun SCXW47470565 BCX0\" data-ccp-parastyle=\"heading 2\">_id<\/span><span class=\"NormalTextRun SCXW47470565 BCX0\" data-ccp-parastyle=\"heading 2\">\u00a0Field<\/span><\/span><span class=\"EOP Selected SCXW47470565 BCX0\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:160,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Every document stored in MongoDB must\u00a0contain\u00a0an\u00a0<\/span><b><span data-contrast=\"auto\">_id<\/span><\/b><span data-contrast=\"auto\">\u00a0field.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">The\u00a0_id\u00a0field acts as the\u00a0<\/span><b><span data-contrast=\"auto\">primary key<\/span><\/b><span data-contrast=\"auto\">\u00a0of a document, ensuring that every document within a collection has a unique identifier.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">If you\u00a0don&#8217;t\u00a0specify an\u00a0_id value while inserting a document, MongoDB automatically generates one.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><strong><span class=\"TextRun SCXW172588285 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW172588285 BCX0\">Example<\/span><\/span><span class=\"EOP Selected SCXW172588285 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/strong><\/p>\n<div style=\"margin: 20px 0;\">\n<pre style=\"background: #1e1e1e !important; color: #d4d4d4 !important; padding: 18px; border-radius: 8px; overflow-x: auto; font-family: Consolas,'Courier New',monospace; font-size: 14px; line-height: 1.6;\"><code style=\"background: transparent !important; color: inherit !important; padding: 0 !important; margin: 0 !important; border: none !important; box-shadow: none !important;\">db.products.insertOne({\r\n  productName: \"Laptop\",\r\n  price: 64999\r\n});<\/code><\/pre>\n<\/div>\n<p><span class=\"TextRun SCXW156570150 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW156570150 BCX0\">MongoDB automatically stores<\/span><span class=\"NormalTextRun SCXW156570150 BCX0\">\u00a0id<\/span><span class=\"NormalTextRun SCXW156570150 BCX0\">:<\/span><\/span><span class=\"EOP Selected SCXW156570150 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<div style=\"margin: 20px 0;\">\n<pre style=\"background: #1e1e1e !important; color: #d4d4d4 !important; padding: 18px; border-radius: 8px; overflow-x: auto; font-family: Consolas,'Courier New',monospace; font-size: 14px; line-height: 1.6;\"><code style=\"background: transparent !important; color: inherit !important; padding: 0 !important; margin: 0 !important; border: none !important; box-shadow: none !important;\">{\r\n  \"_id\": ObjectId(\"66d0012a9a3b9a2bcb87e211\"),\r\n  \"productName\": \"Laptop\",\r\n  \"price\": 64999\r\n}<\/code><\/pre>\n<\/div>\n<h2><span class=\"TextRun SCXW70417586 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW70417586 BCX0\" data-ccp-parastyle=\"heading 2\">Important Characteristics of\u00a0<\/span><span class=\"NormalTextRun SCXW70417586 BCX0\" data-ccp-parastyle=\"heading 2\">_id<\/span><\/span><span class=\"EOP Selected SCXW70417586 BCX0\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:160,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h2>\n<ul>\n<li><span data-contrast=\"auto\">Every document\u00a0<\/span><b><span data-contrast=\"auto\">must<\/span><\/b><span data-contrast=\"auto\">\u00a0have an\u00a0_id\u00a0field.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">MongoDB automatically creates a\u00a0<\/span><b><span data-contrast=\"auto\">unique index<\/span><\/b><span data-contrast=\"auto\">\u00a0on\u00a0_id.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Duplicate\u00a0_id\u00a0values are\u00a0<\/span><b><span data-contrast=\"auto\">not allowed<\/span><\/b><span data-contrast=\"auto\">.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">The\u00a0_id\u00a0field is always stored as the first field in a document.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">If MongoDB receives a document where\u00a0_id\u00a0is not the first field, it automatically moves it to the beginning.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<\/ul>\n<h2><span class=\"TextRun SCXW253219575 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW253219575 BCX0\" data-ccp-parastyle=\"heading 2\">MongoDB Architecture<\/span><\/span><span class=\"EOP Selected SCXW253219575 BCX0\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:160,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">In\u00a0production\u00a0we use\u00a0<\/span><b><span data-contrast=\"auto\">Primary-Secondary-Hidden-Secondary-Arbiter (P S HS A).<\/span><\/b><span data-contrast=\"auto\">\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:160}\">\u00a0<\/span><\/p>\n<p><b><span data-contrast=\"auto\">Primary Node:<\/span><\/b><span data-contrast=\"auto\">\u00a0it\u00a0is the main node in a replica set that handles all write operations and provides strong consistent reads.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:360,&quot;335559737&quot;:0,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/p>\n<p><b><span data-contrast=\"auto\">Secondary Node:<\/span><\/b><span data-contrast=\"auto\">\u00a0 It is<\/span><b><span data-contrast=\"auto\">\u00a0<\/span><\/b><span data-contrast=\"auto\">replicate data from the primary asynchronously and can serve read operations depending on the read preference; if the primary node fails, the replica set automatically\u00a0elects\u00a0one of the secondary nodes to become the new primary\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:360,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/p>\n<p><b><span data-contrast=\"auto\">Hidden Secondary:\u00a0\u00a0<\/span><\/b><span data-contrast=\"auto\">\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:360,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/p>\n<ul>\n<li><span data-contrast=\"auto\">A hidden member\u00a0maintains\u00a0a copy of the primary data set but is invisible to client applications.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:1080,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">It is used for analytics, backups, or workload isolation to avoid\u00a0impacting\u00a0primary database performance.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:1080,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Hidden members may vote in replica set elections, but we must hide it from voting\u00a0\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:1080,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">You can only read from a hidden member if you directly connect to the node.\u00a0If you connect to a cluster without directly connecting to the hidden node, you cannot run queries on the hidden node.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:1080,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">hidden: true \u2192 Makes the member invisible to client queries.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:1080,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">priority: 0 \u2192 Prevents it from becoming the primary.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:1080,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><b><span data-contrast=\"auto\">Arbiter Node:\u00a0<\/span><\/b><span data-contrast=\"auto\">\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:360,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/p>\n<ul>\n<li><span data-contrast=\"auto\">A MongoDB Arbiter is a lightweight member of a Replica Set that\u00a0participates\u00a0in elections but does not store data. It helps\u00a0elect\u00a0a new primary when needed, ensuring high availability without\u00a0additional\u00a0data replication overhead.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:1080,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Does not handle client\u00a0read\u00a0or\u00a0write\u00a0operations.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:1080,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Helps\u00a0maintain\u00a0an odd number of voting members to prevent election ties.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:1080,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<h2><span class=\"TextRun SCXW225686450 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW225686450 BCX0\" data-ccp-parastyle=\"heading 2\">Key Aspects of MongoDB<\/span><\/span><\/h2>\n<ul>\n<li><span class=\"EOP Selected SCXW225686450 BCX0\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:160,&quot;335559739&quot;:80}\"><strong><span class=\"TextRun SCXW224838277 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW224838277 BCX0\">Database:<\/span><\/span><\/strong><span class=\"TextRun SCXW224838277 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW224838277 BCX0\">\u00a0A MongoDB database contains collecti<\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW224838277 BCX0\">ons, wh<\/span><span class=\"NormalTextRun SCXW224838277 BCX0\">ich in turn\u00a0<\/span><span class=\"NormalTextRun SCXW224838277 BCX0\">contain<\/span><span class=\"NormalTextRun SCXW224838277 BCX0\">\u00a0documents.\u00a0<\/span><span class=\"NormalTextRun SCXW224838277 BCX0\">Each database can hold a large number of collections.<\/span><span class=\"NormalTextRun SCXW224838277 BCX0\">\u00a0<\/span><\/span><span class=\"EOP Selected SCXW224838277 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:360,&quot;335559737&quot;:0,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/span><\/li>\n<li><strong><span class=\"TextRun SCXW56997245 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW56997245 BCX0\">Collection:<\/span><\/span><\/strong><span class=\"TextRun SCXW56997245 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW56997245 BCX0\">\u00a0A collection is a group of MongoDB documents. It is equivalent to a table in relational databases.\u00a0<\/span><\/span><\/li>\n<li><span class=\"TextRun SCXW91339197 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW91339197 BCX0\"><strong>Document:<\/strong>\u00a0<\/span><\/span><span class=\"TextRun SCXW91339197 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW91339197 BCX0\">A document is a set of key-value pairs. Documents are the basic unit of data in MongoDB. Every document requires an _id field, which acts as a primary key or unique identifier. If an inserted document\u00a0<\/span><span class=\"NormalTextRun SCXW91339197 BCX0\">doesn\u2019t<\/span><span class=\"NormalTextRun SCXW91339197 BCX0\">\u00a0have an _id field, MongoDB automatically generates one.\u00a0<\/span><\/span><\/li>\n<li><span class=\"TextRun SCXW62187778 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW62187778 BCX0\"><strong>Field:<\/strong>\u00a0<\/span><\/span><span class=\"TextRun SCXW62187778 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW62187778 BCX0\">A field is a key-value pair in a document. Fields in MongoDB are like columns in relational databases. Field can\u00a0<\/span><span class=\"NormalTextRun SCXW62187778 BCX0\">contain<\/span><span class=\"NormalTextRun SCXW62187778 BCX0\">\u00a0different data types<\/span><\/span><\/li>\n<li><span class=\"TextRun SCXW231317229 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW231317229 BCX0\"><strong>Index:<\/strong>\u00a0<\/span><\/span><span class=\"TextRun SCXW231317229 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW231317229 BCX0\">Indexes improve the speed of search operations in MongoDB.\u00a0<\/span><span class=\"NormalTextRun SCXW231317229 BCX0\">They are similar to indexes in relational databases.<\/span><span class=\"NormalTextRun SCXW231317229 BCX0\">\u00a0<\/span><\/span><\/li>\n<li><span class=\"TextRun SCXW148077874 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW148077874 BCX0\"><strong>Replica Set:<\/strong> When you<\/span><\/span><a class=\"Hyperlink SCXW148077874 BCX0\" href=\"https:\/\/www.mongodb.com\/resources\/products\/fundamentals\/create-database\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun SCXW148077874 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW148077874 BCX0\" data-ccp-charstyle=\"Hyperlink\">\u00a0<\/span><span class=\"NormalTextRun SCXW148077874 BCX0\" data-ccp-charstyle=\"Hyperlink\">create a database<\/span><\/span><\/a><span class=\"TextRun SCXW148077874 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW148077874 BCX0\">\u00a0in MongoDB, the system automatically creates at least two more copies of the data, referred to as a<\/span><\/span><a class=\"Hyperlink SCXW148077874 BCX0\" href=\"https:\/\/www.mongodb.com\/resources\/products\/capabilities\/replication\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun SCXW148077874 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW148077874 BCX0\" data-ccp-charstyle=\"Hyperlink\">\u00a0<\/span><span class=\"NormalTextRun SCXW148077874 BCX0\" data-ccp-charstyle=\"Hyperlink\">replica set<\/span><\/span><\/a><span class=\"TextRun SCXW148077874 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW148077874 BCX0\">. A replica set is a group of at least three MongoDB instances that continuously replicate data between them, offering redundancy and protection against downtime in the face of a system failure or planned maintenance.<\/span><\/span><\/li>\n<li><span class=\"TextRun SCXW57664351 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW57664351 BCX0\"><strong>Sharding:<\/strong>\u00a0<\/span><\/span><span class=\"TextRun SCXW57664351 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW57664351 BCX0\">Sharding<\/span><\/span><span class=\"TextRun SCXW57664351 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW57664351 BCX0\">\u00a0is the process of distributing data across multiple servers (called\u00a0<\/span><\/span><span class=\"TextRun SCXW57664351 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW57664351 BCX0\">shards<\/span><\/span><span class=\"TextRun SCXW57664351 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW57664351 BCX0\">) to improve performance and support large datasets. It enables MongoDB to\u00a0<\/span><\/span><span class=\"TextRun SCXW57664351 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW57664351 BCX0\">scale horizontally<\/span><\/span><span class=\"TextRun SCXW57664351 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW57664351 BCX0\">\u00a0by spreading data and workloads across multiple machines.<\/span><\/span><span class=\"EOP Selected SCXW57664351 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:360,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><span class=\"TextRun SCXW18632910 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW18632910 BCX0\">Just for the understanding\u00a0<\/span><span class=\"NormalTextRun SCXW18632910 BCX0\">I am<\/span><span class=\"NormalTextRun SCXW18632910 BCX0\">\u00a0comparing the\u00a0<\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW18632910 BCX0\">Mongodb<\/span><span class=\"NormalTextRun SCXW18632910 BCX0\">\u00a0Terms with SQL\u00a0<\/span><\/span><span class=\"EOP Selected SCXW18632910 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559737&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<div style=\"overflow-x: auto; margin: 25px 0;\">\n<table style=\"width: 100%; border-collapse: collapse; min-width: 600px; font-family: Arial,Helvetica,sans-serif; font-size: 14px;\">\n<thead>\n<tr style=\"background: #f5f7fa;\">\n<th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\">SQL<\/th>\n<th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\">MongoDB<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">Database<\/td>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">Database<\/td>\n<\/tr>\n<tr style=\"background: #fafafa;\">\n<td style=\"border: 1px solid #ddd; padding: 12px;\">Table<\/td>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">Collection<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">Row<\/td>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">Document<\/td>\n<\/tr>\n<tr style=\"background: #fafafa;\">\n<td style=\"border: 1px solid #ddd; padding: 12px;\">Column<\/td>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">Field<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">Primary Key<\/td>\n<td style=\"border: 1px solid #ddd; padding: 12px;\">_id<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32050 size-large\" src=\"https:\/\/opstree.com\/blog\/wp-content\/uploads\/2026\/08\/page_10_image_1-1024x683.jpeg\" alt=\"MongoDB\" width=\"1024\" height=\"683\" srcset=\"https:\/\/opstree.com\/blog\/wp-content\/uploads\/2026\/08\/page_10_image_1-1024x683.jpeg 1024w, https:\/\/opstree.com\/blog\/wp-content\/uploads\/2026\/08\/page_10_image_1-300x200.jpeg 300w, https:\/\/opstree.com\/blog\/wp-content\/uploads\/2026\/08\/page_10_image_1-768x512.jpeg 768w, https:\/\/opstree.com\/blog\/wp-content\/uploads\/2026\/08\/page_10_image_1.jpeg 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h2><span class=\"TextRun SCXW70188677 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW70188677 BCX0\" data-ccp-parastyle=\"heading 2\">MongoDB Server Components<\/span><\/span><\/h2>\n<h3><span class=\"EOP Selected SCXW70188677 BCX0\" data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:160,&quot;335559739&quot;:80}\"><span class=\"TextRun SCXW224080690 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW224080690 BCX0\" data-ccp-parastyle=\"heading 2\">1.\u00a0<\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW224080690 BCX0\" data-ccp-parastyle=\"heading 2\">mongod<\/span><\/span><span class=\"EOP Selected SCXW224080690 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:360,&quot;335559739&quot;:80}\">\u00a0<\/span>\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">mongod\u00a0is the\u00a0<\/span><b><span data-contrast=\"auto\">MongoDB Database Server<\/span><\/b><span data-contrast=\"auto\">.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">It is the core process responsible for:<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<ul>\n<li><span data-contrast=\"auto\">Storing data<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Managing collections<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Processing queries<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Managing indexes<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Performing replication<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Authentication<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Storage management<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><span class=\"TextRun SCXW33717991 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW33717991 BCX0\">Whenever you start MongoDB, you\u00a0<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW33717991 BCX0\">are starting<\/span><span class=\"NormalTextRun SCXW33717991 BCX0\">\u00a0the\u00a0<\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW33717991 BCX0\">mongod<\/span><span class=\"NormalTextRun SCXW33717991 BCX0\">\u00a0process.<\/span><\/span><span class=\"EOP Selected SCXW33717991 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<h3><span class=\"TextRun SCXW242445491 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW242445491 BCX0\" data-ccp-parastyle=\"heading 2\">2.\u00a0<\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW242445491 BCX0\" data-ccp-parastyle=\"heading 2\">mongosh<\/span><\/span><span class=\"EOP Selected SCXW242445491 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:360,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">mongosh\u00a0(MongoDB Shell) is the interactive command-line interface used to communicate with MongoDB.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Using\u00a0mongosh, developers can:<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<ul>\n<li><span data-contrast=\"auto\">Create databases<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Create collections<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Insert documents<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Update documents<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Delete documents<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Execute queries<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Create users<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Monitor the server<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><span class=\"TextRun SCXW184631440 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW184631440 BCX0\">Example:<\/span><\/span><span class=\"EOP Selected SCXW184631440 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<div style=\"margin: 20px 0;\">\n<pre style=\"background: #1e1e1e !important; color: #d4d4d4 !important; padding: 18px; border-radius: 8px; overflow-x: auto; font-family: Consolas,'Courier New',monospace; font-size: 14px; line-height: 1.6;\"><code style=\"background: transparent !important; color: inherit !important; padding: 0 !important; margin: 0 !important; border: none !important; box-shadow: none !important;\">use ecommerce\r\ndb.products.find()<\/code><\/pre>\n<\/div>\n<h3><span class=\"TextRun SCXW118444632 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW118444632 BCX0\" data-ccp-parastyle=\"heading 2\">3.\u00a0<\/span><span class=\"NormalTextRun SCXW118444632 BCX0\" data-ccp-parastyle=\"heading 2\">mongos<\/span><\/span><span class=\"EOP Selected SCXW118444632 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:360,&quot;335559739&quot;:80}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">mongos\u00a0is\u00a0used only in a\u00a0<\/span><b><span data-contrast=\"auto\">Sharded Cluster<\/span><\/b><span data-contrast=\"auto\">.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">It acts as a\u00a0<\/span><b><span data-contrast=\"auto\">Query Router<\/span><\/b><span data-contrast=\"auto\">\u00a0between the application and the shards.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Applications never communicate directly with individual shard servers. Instead, every request passes through mongos, which determines:<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<ul>\n<li><span data-contrast=\"auto\">Which shard\u00a0contains\u00a0the requested\u00a0data.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Where queries should be\u00a0routed.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">How results from multiple shards should be\u00a0combined.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<h3><span class=\"TextRun SCXW169912545 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW169912545 BCX0\">4.\u00a0<\/span><\/span><span class=\"TextRun SCXW169912545 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW169912545 BCX0\">Config Server<\/span><\/span><\/h3>\n<p><span class=\"EOP Selected SCXW169912545 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\"><span class=\"TextRun SCXW81990919 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW81990919 BCX0\">A\u00a0<\/span><\/span><span class=\"TextRun SCXW81990919 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW81990919 BCX0\">Config Server<\/span><\/span><span class=\"TextRun SCXW81990919 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW81990919 BCX0\">\u00a0is a special MongoDB server used only in a\u00a0<\/span><\/span><span class=\"TextRun SCXW81990919 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW81990919 BCX0\">Sharded Cluster<\/span><\/span><span class=\"TextRun SCXW81990919 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW81990919 BCX0\">. It stores the cluster&#8217;s\u00a0<\/span><\/span><span class=\"TextRun SCXW81990919 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW81990919 BCX0\">metadata<\/span><\/span><span class=\"TextRun SCXW81990919 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW81990919 BCX0\">, such as which data is stored on which shard and the overall cluster configuration. When a client sends a request through\u00a0<\/span><\/span><span class=\"TextRun SCXW81990919 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW81990919 BCX0\">mongos<\/span><\/span><span class=\"TextRun SCXW81990919 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW81990919 BCX0\">, the Config Server helps\u00a0<\/span><span class=\"NormalTextRun SCXW81990919 BCX0\">determine<\/span><span class=\"NormalTextRun SCXW81990919 BCX0\">\u00a0the correct shard that\u00a0<\/span><span class=\"NormalTextRun SCXW81990919 BCX0\">contains<\/span><span class=\"NormalTextRun SCXW81990919 BCX0\">\u00a0the requested data. It does\u00a0<\/span><\/span><span class=\"TextRun SCXW81990919 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW81990919 BCX0\">not<\/span><\/span><span class=\"TextRun SCXW81990919 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW81990919 BCX0\">\u00a0store application data or process client queries directly; its primary role is to manage and coordinate the sharded cluster.<\/span><\/span><span class=\"EOP Selected SCXW81990919 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/span><\/p>\n<p><strong><span class=\"EOP Selected SCXW169912545 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\"><span class=\"TextRun SCXW107961023 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW107961023 BCX0\">Key Points<\/span><\/span><span class=\"EOP Selected SCXW107961023 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span>\u00a0<\/span><\/strong><\/p>\n<ul>\n<li><span data-contrast=\"auto\">Stores metadata about the sharded cluster.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:240,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Tracks the location of data across shards.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Used only in sharded deployments.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Does not store application data.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:0}\">\u00a0<\/span><\/li>\n<li><span data-contrast=\"auto\">Works together with\u00a0mongos\u00a0to route requests correctly.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559738&quot;:0,&quot;335559739&quot;:240}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><strong><span class=\"TextRun SCXW220132372 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW220132372 BCX0\">In simple terms:<\/span><\/span><\/strong><span class=\"TextRun SCXW220132372 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW220132372 BCX0\">\u00a0Think of the\u00a0<\/span><\/span><span class=\"TextRun SCXW220132372 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW220132372 BCX0\">Config Server<\/span><\/span><span class=\"TextRun SCXW220132372 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW220132372 BCX0\">\u00a0as the\u00a0<\/span><\/span><span class=\"TextRun SCXW220132372 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW220132372 BCX0\">directory or map<\/span><\/span><span class=\"TextRun SCXW220132372 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW220132372 BCX0\">\u00a0of a sharded MongoDB cluster. It knows where every piece of data is stored but\u00a0<\/span><span class=\"NormalTextRun SCXW220132372 BCX0\">doesn&#8217;t<\/span><span class=\"NormalTextRun SCXW220132372 BCX0\">\u00a0store the actual data itself.<\/span><\/span><span class=\"EOP Selected SCXW220132372 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;335559685&quot;:0,&quot;335559737&quot;:600,&quot;335559738&quot;:240,&quot;335559739&quot;:240}\">\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-32051\" src=\"https:\/\/opstree.com\/blog\/wp-content\/uploads\/2026\/08\/page_13_image_1-1024x683.jpeg\" alt=\"How MogoDB Works\" width=\"1024\" height=\"683\" srcset=\"https:\/\/opstree.com\/blog\/wp-content\/uploads\/2026\/08\/page_13_image_1-1024x683.jpeg 1024w, https:\/\/opstree.com\/blog\/wp-content\/uploads\/2026\/08\/page_13_image_1-300x200.jpeg 300w, https:\/\/opstree.com\/blog\/wp-content\/uploads\/2026\/08\/page_13_image_1-768x512.jpeg 768w, https:\/\/opstree.com\/blog\/wp-content\/uploads\/2026\/08\/page_13_image_1.jpeg 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><span class=\"TextRun SCXW115949107 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW115949107 BCX0\">The goal of this part is to understand the basics of MongoDB, its key concepts, and its production architecture. Now that we have a clear understanding of how MongoDB works and how data is organized and managed,\u00a0<\/span><span class=\"NormalTextRun SCXW115949107 BCX0\">we&#8217;re<\/span><span class=\"NormalTextRun SCXW115949107 BCX0\">\u00a0ready to start working with MongoDB\u00a0<\/span><span class=\"NormalTextRun SCXW115949107 BCX0\">practically in<\/span><span class=\"NormalTextRun SCXW115949107 BCX0\">\u00a0the next part.<\/span><\/span><span class=\"EOP Selected SCXW115949107 BCX0\" data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<h2>Conclusion<\/h2>\n<p>MongoDB provides a flexible and scalable approach to managing data for modern applications. Unlike traditional relational databases, it stores information as documents, allowing applications to work with changing and diverse data structures more easily. In this part, we covered the fundamentals of MongoDB, including SQL vs. NoSQL, documents and collections, the <code>_id<\/code> field, indexes, replica sets, sharding, and key MongoDB server components such as <code>mongod<\/code>, <code>mongosh<\/code>, <code>mongos<\/code>, and Config Servers. Understanding these concepts provides a strong foundation for working with MongoDB and its production architecture. In the next part, we&#8217;ll move from these fundamentals to practical MongoDB concepts and hands-on learning.<span class=\"EOP Selected SCXW225557808 BCX0\" data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;335559738&quot;:280,&quot;335559739&quot;:80}\">\u00a0<\/span><\/p>\n<h3><span data-ccp-props=\"{}\">Related Searches<\/span><\/h3>\n<ul>\n<li class=\"ekit-heading--title elementskit-section-title \"><a href=\"https:\/\/opstree.com\/case-study\/a-leading-logistics-platform-achieved-30-faster-incident-resolution-with-ai-driven-observability\/\" target=\"_blank\" rel=\"noopener\">A Leading Logistics Platform Achieved 30% Faster Incident Resolution with AI-Driven Observability<\/a><\/li>\n<li class=\"ekit-heading--title elementskit-section-title \"><a href=\"https:\/\/opstree.com\/case-study\/driving-40-faster-resolution-with-ai-across-one-of-asias-largest-digital-businesses\/\" target=\"_blank\" rel=\"noopener\">Driving 40% Faster Resolution with AI Across One of Asia\u2019s Largest Digital Businesses<\/a><\/li>\n<li><a href=\"https:\/\/opstree.com\/case-study\/3x-faster-issue-resolution-through-smarter-operational-intelligence\/\" target=\"_blank\" rel=\"noopener\">3\u00d7 Faster Issue Resolution Through Smarter Operational Intelligence<\/a><\/li>\n<li><a href=\"https:\/\/opstree.com\/blog\/agentic-ai-data-engineering-automate-etl-pipeline\/\" target=\"_blank\" rel=\"noopener\">What Is Agentic AI Data Engineering?- How AI Agents Automate ETL Pipelines<\/a><\/li>\n<\/ul>\n<h3>Related Solutions<\/h3>\n<ul>\n<li><a href=\"https:\/\/opstree.com\/services\/application-platform-security-management\/\" target=\"_blank\" rel=\"noopener\">internal developer platform migration<\/a><\/li>\n<li><a href=\"https:\/\/opstree.com\/services\/observability-sre-production-engineering\/\" target=\"_blank\" rel=\"noopener\">Kubernetes production support services<\/a><\/li>\n<li><a href=\"https:\/\/opstree.com\/blog\/zero-downtime-cloud-migration\/\" target=\"_blank\" rel=\"noopener\">zero downtime database migration services<\/a><\/li>\n<li><a href=\"https:\/\/buildpiper.io\/cloudops-infrastructure-management\/\" target=\"_blank\" rel=\"noopener\">multi-cloud application delivery platform<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If\u00a0you&#8217;re\u00a0starting your journey into databases,\u00a0you&#8217;ve\u00a0probably heard\u00a0names like\u00a0MySQL,\u00a0PostgreSQL and MongoDB. While all of them help store data, they work in\u00a0different ways.\u00a0 In this article, we&#8217;ll explore what MongoDB is, how it differs from traditional SQL databases and why it&#8217;s one of the most popular databases for modern applications.\u00a0 What You&#8217;ll Learn What MongoDB Is SQL vs [&hellip;]<\/p>\n","protected":false},"author":244582729,"featured_media":32054,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[768739361],"tags":[768739621,768739703,21954763,768739702,768739701],"class_list":["post-32049","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-engineering","tag-data-engineering-services","tag-managed-cloud-database-service","tag-mongodb","tag-nosql-database","tag-sql-database"],"blocksy_meta":[],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"https:\/\/opstree.com\/blog\/wp-content\/uploads\/2026\/08\/MongoDB.png","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pfDBOm-8kV","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts\/32049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/users\/244582729"}],"replies":[{"embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/comments?post=32049"}],"version-history":[{"count":4,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts\/32049\/revisions"}],"predecessor-version":[{"id":32056,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/posts\/32049\/revisions\/32056"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/media\/32054"}],"wp:attachment":[{"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/media?parent=32049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/categories?post=32049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opstree.com\/blog\/wp-json\/wp\/v2\/tags?post=32049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}