An expert's guide to build fault tolerant MongoDB application
About This Book
- Master the advanced modeling, querying, and administration techniques in MongoDB and become a MongoDB expert
- Covers the latest updates and Big Data features frequently used by professional MongoDB developers and administrators
- If your goal is to become a certified MongoDB professional, this book is your perfect companion
Who This Book Is For
Mastering MongoDB is a book for database developers, architects, and administrators who want to learn how to use MongoDB more effectively and productively.
If you have experience in, and are interested in working with, NoSQL databases to build apps and websites, then this book is for you.
What You Will Learn
- Get hands-on with advanced querying techniques such as indexing, expressions, arrays, and more.
- Configure, monitor, and maintain highly scalable MongoDB environment like an expert.
- Master replication and data sharding to optimize read/write performance.
- Design secure and robust applications based on MongoDB.
- Administer MongoDB-based applications on-premise or in the cloud
- Scale MongoDB to achieve your design goals
- Integrate MongoDB with big data sources to process huge amounts of data
MongoDB has grown to become the de facto NoSQL database with millions of users - from small startups to Fortune 500 companies. Addressing the limitations of SQL schema-based databases, MongoDB pioneered a shift of focus for DevOps and offered sharding and replication maintainable by DevOps teams. The book is based on MongoDB 3.x and covers topics ranging from database querying using the shell, built in drivers, and popular ODM mappers to more advanced topics such as sharding, high availability, and integration with big data sources.
You will get an overview of MongoDB and how to play to its strengths, with relevant use cases. After that, you will learn how to query MongoDB effectively and make use of indexes as much as possible. The next part deals with the administration of MongoDB installations on-premise or in the cloud. We deal with database internals in the next section, explaining storage systems and how they can affect performance. The last section of this book deals with replication and MongoDB scaling, along with integration with heterogeneous data sources. By the end this book, you will be equipped with all the required industry skills and knowledge to become a certified MongoDB developer and administrator.
Style and approach
This book takes a practical, step-by-step approach to explain the concepts of MongoDB. Practical use-cases involving real-world examples are used throughout the book to clearly explain theoretical concepts.
Table of contents
MongoDB – A Database for the Modern Web
- Web history
- SQL and NoSQL evolution
- MongoDB key characteristics and use cases
- MongoDB configuration and best practices
- Reference documentation
Schema Design and Data Modeling
Relational schema design
- MongoDB schema design
- Data modeling
- Modeling data for atomic operations
- Modeling relationships
- Connecting to MongoDB
- Connecting using Python
- Connecting using PHP
- Relational schema design
MongoDB CRUD Operations
CRUD using the shell
- Scripting for the mongo shell
- MapReduce in the mongo shell
- Aggregation framework
- Securing the shell
- Authentication with MongoDB
- CRUD using the shell
MongoDB CRUD operations
- CRUD using the Ruby driver
- CRUD in Mongoid
- CRUD using the Python driver
- CRUD using PyMODM
- CRUD using the PHP driver
- CRUD using Doctrine
- Comparison operators
- Update operators
- Smart querying
- MongoDB CRUD operations
- Why aggregation?
- Aggregation stage operators
- Expression operators
- Aggregation use case
- Index types
- Building and managing indexes
- Using indexes efficiently
- Index internals
Monitoring, Backup, and Security
- What should we monitor?
- Monitoring memory usage in WiredTiger
- Tracking page faults
- Tracking B-tree misses
- Working set calculations
- Monitoring tools
Pluggable storage engines
- Mixed usage
- Other storage engines
- Locking in MongoDB
- Pluggable storage engines
Harnessing Big Data with MongoDB
- What is big data?
- Big data use case
- Architectural overview
- How do elections work?
- What is the use case for a replica set?
- Setting up a replica set
- Connecting to a replica set
- Replica set administration
- Cloud options for a replica set
- Replica set limitations
- Advantages of sharding
- Architectural overview
- Sharding setup
- Sharding administration and monitoring
- Querying sharded data
- Sharding recovery
- Fault Tolerance and High Availability
- Title: Mastering MongoDB 3.x
- Release date: November 2017
- Publisher(s): Packt Publishing
- ISBN: 9781783982608
You might also like
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
Mastering MongoDB 4.x - Second Edition
Leverage the power of MongoDB 4.x to build and administer fault-tolerant database applications Key Features Master …
Software Architect's Handbook
A comprehensive guide to exploring software architecture concepts and implementing best practices Key Features Enhance your …