[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-696983-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-696983-en":130,"doc-similar-696983":165},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","20-nosql-and-mongodb-lesson-20-cs-3200-northeastern-university","20 - NoSQL and MongoDB - Lesson 20 CS 3200 Northeastern University","","Lesson 20 introduces NoSQL with emphasis on MongoDB and the core architectural ideas behind distributed database systems. The material covers NoSQL taxonomy, typical architecture concepts such as hashing-based key-to-node mapping, and how sharding and replica sets support scale and availability. It explains the CAP theorem—why consistency, availability, and partition tolerance cannot be simultaneously satisfied—and compares NoSQL trade-offs versus RDBMS, including schema flexibility and ACID relaxation. Examples and functional highlights are included to link theory to practice.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/20-nosql-and-mongodb-lesson-20-cs-3200-northeastern-university/696983/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/20-nosql-and-mongodb-lesson-20-cs-3200-northeastern-university/696983.png","ImageObject",300,407,{"name":42,"@type":43},"Levi","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-16","2026-11-11",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What does the CAP theorem state for NoSQL systems?","Question",{"text":62,"@type":63},"It states that satisfying consistency, availability, and partition tolerance at the same time is impossible. Systems must give up at least one property when partitions occur.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does sharding help scale a NoSQL database?",{"text":67,"@type":63},"Sharding distributes a single logical database across a cluster using shard keys and range-based partitioning. It can automatically balance data and be enabled or disabled per collection.",{"name":69,"@type":60,"acceptedAnswer":70},"What role do replica sets play in NoSQL reliability?",{"text":71,"@type":63},"Replica sets provide redundancy and failover, enabling zero-downtime upgrades and maintenance. They use replication (master-slave in the outline) and support strong or delayed consistency approaches.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},696983,1794435821,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":96,"preview_urls":145},7971461740909,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Introduction to NoSQLand MongoDB  \nKathleen Durant Lesson 20 CS 3200 Northeastern University  \nOutline for today  \n• Introduction to NoSQL  \n• Architecture  \n• Sharding  \n• Replica sets  \n• NoSQL Assumptions and the CAP Theorem  \n• Strengths and weaknesses of NoSQL  \n• MongoDB  \n• Functionality  \n• Examples  \nTaxonomy of NoSQL  \n• Key-value    \n• Graph database    \n• Document-oriented    \n• Column family    \nTypical NoSQL architecture  \nHashing function maps each key to a server (node)  \nCAP theorem for NoSQL  \nWhat the CAP theorem really says:  \n• If you cannot limit the number of faults and requests can be directed to any server and you insist on serving every request you  \nreceive then you cannot possibly be consistent Eric Brewer 2001  \nHow it is interpreted:   \n• You must always give something up: consistency, availability or tolerance to failure and reconfiguration  \nTheory of NOSQL: CAP  \nGIVEN: C  \n• Many nodes  \n• Nodes contain replicas of partitions of the data  \n• Consistency  \n• All replicas contain the same version of data  \n• Client always has the same view of the data (no matter what node)  \n• Availability  \n• System remains operational on failing nodes  \n• All clients can always read and write  \nA P  \n• Partition tolerance  \n• multiple entry points  \n• System remains operational on system split (communication malfunction)  \n• System works well across physical network partitions  \nCAP Theorem: satisfying all three at the same time is impossible  \nAvailable, PartitionTolerant (AP) Systems  \nachieve \"eventual consistency\" through replication and verification  \nConsistent, Available (CA) Systems have trouble with partitionsand typically deal with it with replication  \nConsistent, Partition-Tolerant (CP) Systems have trouble with availability while keeping data consistent across partitioned nodes  \n[http://blog.nahurst.com/visual-guide-to-nosql-systems](http://blog.nahurst.com/visual-guide-to-nosql-systems)  \nSharding of data  \n• Distributes a single logical database system across a cluster of machines  \n• Uses range-based partitioning to distribute documents based on a specific shard key  \n• Automatically balances the data associated with each shard  \n• Can be turned on and off per collection (table)  \nReplica Sets  \n• Redundancy and Failover  \n• Zero downtime for upgrades and maintenance  \n• Master-slave replication  \n• Strong Consistency  \n• Delayed Consistency  \n• Geospatial features  \nreplica1  \nClient  \nHow does NoSQL vary from RDBMS?  \n• Looser schema definition  \n• Applications written to deal with specific documents/ data  \n• Applications aware of the schema definition as opposed to the data  \n• Designed to handle distributed, large databases  \n• Trade offs:  \n• No strong support for ad hoc queries but designed for speed and growth of database  \n• Query language through the API  \n• Relaxation of the ACID properties","cbCairE8g750uDLo","https://ap.wps.com/l/cbCairE8g750uDLo","pdf",1165334,47,"English","# Introduction to NoSQL\n## Architecture\n## Sharding\n## Replica sets\n## NoSQL Assumptions and the CAP Theorem\n## Strengths and weaknesses of NoSQL\n## MongoDB\n## Functionality\n# Taxonomy of NoSQL\n## Key-value\n## Graph database\n## Document-oriented\n## Column family\n# Typical NoSQL architecture\n## Hashing function mapping\n## CAP theorem interpretation\n# Sharding of data\n# Replica Sets\n## Redundancy and failover\n## Master-slave replication\n## Consistency models\n# NoSQL vs RDBMS","[{\"question\":\"What does the CAP theorem state for NoSQL systems?\",\"answer\":\"It states that satisfying consistency, availability, and partition tolerance at the same time is impossible. Systems must give up at least one property when partitions occur.\"},{\"question\":\"How does sharding help scale a NoSQL database?\",\"answer\":\"Sharding distributes a single logical database across a cluster using shard keys and range-based partitioning. It can automatically balance data and be enabled or disabled per collection.\"},{\"question\":\"What role do replica sets play in NoSQL reliability?\",\"answer\":\"Replica sets provide redundancy and failover, enabling zero-downtime upgrades and maintenance. They use replication (master-slave in the outline) and support strong or delayed consistency approaches.\"}]","20 - NoSQL and MongoDB - Lesson 20 CS 3200 Northeastern University | PDF",118,[146,150,153,157,161],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/0fc44e7aca09dbb7fef56ecfc2d9fad6.webp",983,736,{"page_no":26,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/7184b18b9aabbdf45ddc2a788d49a75f.webp",982,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/103e98bf75b267550ee8562bf2146e9a.webp",981,735,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/f5d58495d079fd7920838b9e15922f1c.webp",980,734,{"page_no":96,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/6357844aa8d33fec41f1e17b281222bf.webp",979,733,{"list":166,"token":11},[167,173,179,185,191,197,202,208,214,220],{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":123,"category_name":29,"create_tm":172},391841,"Interview Questions on NoSQL","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917408523/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796220779&Signature=eGLvxN5SQnt42fn6Xbgu4hBHY%2FY%3D","interview-questions-on-nosql",1790359341,{"doc_id":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":30,"category_name":29,"create_tm":178},696982,"NoSQL Databases - Selected Topics on Software-Technology Ultra-Large Scale Sites - Lecture","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009782877/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796220779&Signature=jQYcIx5xYFwAwTGTK7BFh%2BespjE%3D","nosql-databases-selected-topics-on-software-technology-ultra-large-scale-sites-lecture",1794435819,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":123,"category_name":29,"create_tm":184},692306,"Learning Node.js - A Hands-On Guide to Building Web Applications in JavaScript","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002737479/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796220779&Signature=FICbKfZXQkrEMvVLjbnQlWeTiUE%3D","learning-nodejs-a-hands-on-guide-to-building-web-applications-in-javascript",1794192934,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":101,"category_name":29,"create_tm":190},682713,"NoSQL Whitepaper - Ultimate Guide on NoSQL Database Management System","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998970636/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796220779&Signature=TcLe5GABj5D%2BBeLOn7WZUOIEVLA%3D","nosql-whitepaper-ultimate-guide-on-nosql-database-management-system",1793979255,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":33,"category_name":29,"create_tm":196},696986,"NoSQL Distilled - A Brief Guide to the Emerging World of Polyglot Persistence","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009782921/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796220779&Signature=WLSfTFUPGvXPlQG9wQyZpRwzTFE%3D","nosql-distilled-a-brief-guide-to-the-emerging-world-of-polyglot-persistence-696986",1794435828,{"doc_id":198,"doc_title":193,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":30,"category_name":29,"create_tm":201},696980,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009782868/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796220779&Signature=UptPmkwc%2B%2BEjkBLU911Z%2B%2FBTknw%3D","nosql-distilled-a-brief-guide-to-the-emerging-world-of-polyglot-persistence",1794435814,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":30,"category_name":29,"create_tm":207},696991,"LSDM 5.1 - NoSQL Databases Fundamentals","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009782830/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796220779&Signature=KwPEQeQ6GzFJ2R9igskZFWTREmc%3D","lsdm-51-nosql-databases-fundamentals",1794435838,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":33,"category_name":29,"create_tm":213},696977,"Making Sense of NoSQL - A GUIDE FOR MANAGERSAND THE REST OF US","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009782851/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796220779&Signature=yQ2E3GvPAuC5xLjXTtIO15gwc6I%3D","making-sense-of-nosql-a-guide-for-managers-and-the-rest-of-us-696977",1794435808,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":30,"category_name":29,"create_tm":219},696981,"NoSQL for Mere Mortals","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009782873/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796220779&Signature=wP5Gl%2BwLK27Uq6MMRcpAXTXI73U%3D","nosql-for-mere-mortals",1794435815,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":30,"category_name":29,"create_tm":225},682720,"Making Sense of NoSQL - A Guide for Managers and the Rest of Us","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999902044/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796220779&Signature=R9lmmCuQ%2B5eYln3NfTUzPrlElf0%3D","making-sense-of-nosql-a-guide-for-managers-and-the-rest-of-us",1793979323]