| 所在主题: | |
| 文件名: Rick Copeland-MongoDB Applied Design Patterns_ Practical Use Cases with the Lead.pdf | |
| 资料下载链接地址: https://bbs.pinggu.org/a-1774066.html | |
| 附件大小: | |
|
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 [hide][/hide] 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 |
|
熟悉论坛请点击新手指南
|
|
| 下载说明 | |
|
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。 2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。 3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。 (如有侵权,欢迎举报) |
|
京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明