๐”– Scriptorium
โœฆ   LIBER   โœฆ

๐Ÿ“

MongoDB Applied Design Patterns: Practical Use Cases with the Leading NoSQL Database

โœ Scribed by Rick Copeland


Publisher
O'Reilly Media
Year
2013
Tongue
English
Leaves
175
Edition
1
Category
Library

โฌ‡  Acquire This Volume

No coin nor oath required. For personal study only.

โœฆ Synopsis


Whether youโ€™re building a social media site or an internal-use enterprise application, this hands-on guide shows you the connection between MongoDB and the business problems itโ€™s designed to solve. Youโ€™ll learn how to apply MongoDB design patterns to several challenging domains, such as ecommerce, content management, and online gaming. Using Python and JavaScript code examples, youโ€™ll discover how MongoDB lets you scale your data model while simplifying the development process.Many businesses launch NoSQL databases without understanding the techniques for using their features most effectively. This book demonstrates the benefits of document embedding, polymorphic schemas, and other MongoDB patterns for tackling specific big data use cases, including:Operational intelligence: Perform real-time analytics of business data Ecommerce: Use MongoDB as a product catalog master or inventory management system Content management: Learn methods for storing content nodes, binary assets, and discussions Online advertising networks: Apply techniques for frequency capping ad impressions, and keyword targeting and bidding Social networking: Learn how to store a complex social graph, modeled after Google+ Online gaming: Provide concurrent access to character and world data for a multiplayer role-playing game

โœฆ Table of Contents


Copyright......Page 4
Table of Contents......Page 5
Assumptions This Book Makes......Page 9
Part II: Use Cases......Page 10
Using Code Examples......Page 12
How to Contact Us......Page 13
Acknowledgments......Page 14
Partย I.ย Design Patterns......Page 15
Relational Data Modeling and Normalization......Page 17
What Is a Normal Form, Anyway?......Page 18
So Whatโ€™s the Problem?......Page 20
Denormalizing for Performance......Page 21
MongoDB Document Format......Page 22
Embedding for Atomicity and Isolation......Page 23
Referencing for Flexibility......Page 25
Referencing for Potentially High-Arity Relationships......Page 26
Many-to-Many Relationships......Page 27
Conclusion......Page 28
Polymorphic Schemas to Support Object-Oriented Programming......Page 31
Polymorphic Schemas Enable Schema Evolution......Page 34
Storage (In-)Efficiency of BSON......Page 35
Polymorphic Schemas Support Semi-Structured Domain Data......Page 36
Conclusion......Page 37
The Relational Approach to Consistency......Page 39
Compound Documents......Page 40
Using Complex Updates......Page 42
Optimistic Update with Compensation......Page 43
Conclusion......Page 47
Partย II.ย Use Cases......Page 49
Solution Overview......Page 51
Schema Design......Page 52
Operations......Page 53
Sharding Concerns......Page 62
Managing Event Data Growth......Page 64
Solution Overview......Page 66
Schema Design......Page 67
Operations......Page 73
Hierarchical Aggregation......Page 77
Solution Overview......Page 78
MapReduce......Page 79
Operations......Page 81
Sharding Concerns......Page 86
Solution Overview......Page 89
Operations......Page 94
Sharding Concerns......Page 97
Solution Overview......Page 98
Schema Design......Page 99
Operations......Page 100
Sharding Concerns......Page 104
Solution Overview......Page 105
Schema......Page 106
Operations......Page 107
Sharding Concerns......Page 114
Solution Overview......Page 115
Schema Design......Page 116
Operations......Page 118
Sharding Concerns......Page 124
Approach: One Document per Comment......Page 125
Approach: Embedding All Comments......Page 128
Approach: Hybrid Schema Design......Page 131
Sharding Concerns......Page 133
Design 1: Basic Ad Serving......Page 135
Schema Design......Page 136
Operation: Make an Ad Campaign Inactive......Page 137
Schema Design......Page 138
Operation: Choose an Ad to Serve......Page 139
Design 3: Keyword Targeting......Page 140
Operation: Choose a Group of Ads to Serve......Page 141
Solution Overview......Page 143
Independent Collections......Page 144
Dependent Collections......Page 146
Operations......Page 147
Viewing a News Feed or Wall Posts......Page 148
Commenting on a Post......Page 149
Creating a New Post......Page 150
Maintaining the Social Graph......Page 152
Sharding......Page 153
Solution Overview......Page 155
Character Schema......Page 156
Item Schema......Page 157
Operations......Page 158
Extract Armor and Weapon Data for Display......Page 159
Pick Up an Item from a Room......Page 161
Remove an Item from a Container......Page 162
Move the Character to a Different Room......Page 163
Buy an Item......Page 164
Sharding......Page 165
Afterword......Page 167
Index......Page 169
About the Author......Page 175

โœฆ Subjects


ะ‘ะธะฑะปะธะพั‚ะตะบะฐ;ะšะพะผะฟัŒัŽั‚ะตั€ะฝะฐั ะปะธั‚ะตั€ะฐั‚ัƒั€ะฐ;NoSQL;MongoDB;


๐Ÿ“œ SIMILAR VOLUMES


MongoDB Applied Design Patterns: Practic
โœ Rick Copeland ๐Ÿ“‚ Library ๐Ÿ“… 2013 ๐Ÿ› O'Reilly Media ๐ŸŒ English

Whether youโ€™re building a social media site or an internal-use enterprise application, this hands-on guide shows you the connection between MongoDB and the business problems itโ€™s designed to solve. Youโ€™ll learn how to apply MongoDB design patterns to several challenging domains, such as ecommerce, c

MongoDB Applied Design Patterns: Practic
โœ Rick Copeland ๐Ÿ“‚ Library ๐Ÿ“… 2013 ๐Ÿ› O'Reilly Media ๐ŸŒ English

Whether you're building a social media site or an internal-use enterprise application, this hands-on guide shows you the connection between MongoDB and the business problems it's designed to solve. You'll learn how to apply MongoDB design patterns to several challenging domains, such as ecommerce, c

MongoDB for Java Developers: Design, bui
โœ Francesco Marchioni ๐Ÿ“‚ Library ๐Ÿ“… 2015 ๐Ÿ› Packt Publishing ๐ŸŒ English

The NoSQL movement is growing in relevance, attracting more and more developers. The MongoDB database is a well-recognized rising star in the NoSQL world. It is a document database that allows data persistence and enables you to query data in a nested state without any schema constraints and complex

A deep dive into NoSQL databases the use
โœ Raj, Pethuru(Editor);Deka, Ganesh Chandra(Editor) ๐Ÿ“‚ Library ๐Ÿ“… 2018 ๐Ÿ› Academic Press ๐ŸŒ English

A Deep Dive into NoSQL Databases: The Use Cases and Applications, Volume 109, the latest release in theAdvances in Computersseries first published in 1960, presents detailed coverage of innovations in computer hardware, software, theory, design and applications. In addition, it provides contributors