Mastering MongoDB 4.x
Expert techniques to run high-volume and fault-tolerant database solutions using MongoDB 4.x, 2nd Edition
Alex Giamas
- 394 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Mastering MongoDB 4.x
Expert techniques to run high-volume and fault-tolerant database solutions using MongoDB 4.x, 2nd Edition
Alex Giamas
About This Book
Leverage the power of MongoDB 4.x to build and administer fault-tolerant database applications
Key Features
- Master the new features and capabilities of MongoDB 4.x
- Implement advanced data modeling, querying, and administration techniques in MongoDB
- Includes rich case-studies and best practices followed by expert MongoDB developers
Book Description
MongoDB is the best platform for working with non-relational data and is considered to be the smartest tool for organizing data in line with business needs. The recently released MongoDB 4.x supports ACID transactions and makes the technology an asset for enterprises across the IT and fintech sectors.
This book provides expertise in advanced and niche areas of managing databases (such as modeling and querying databases) along with various administration techniques in MongoDB, thereby helping you become a successful MongoDB expert. The book helps you understand how the newly added capabilities function with the help of some interesting examples and large datasets. You will dive deeper into niche areas such as high-performance configurations, optimizing SQL statements, configuring large-scale sharded clusters, and many more. You will also master best practices in overcoming database failover, and master recovery and backup procedures for database security.
By the end of the book, you will have gained a practical understanding of administering database applications both on premises and on the cloud; you will also be able to scale database applications across all servers.
What you will learn
- Perform advanced querying techniques such as indexing and expressions
- Configure, monitor, and maintain a highly scalable MongoDB environment
- Master replication and data sharding to optimize read/write performance
- Administer MongoDB-based applications on premises or on the cloud
- Integrate MongoDB with big data sources to process huge amounts of data
- Deploy MongoDB on Kubernetes containers
- Use MongoDB in IoT, mobile, and serverless environments
Who this book is for
This book is ideal for MongoDB developers and database administrators who wish to become successful MongoDB experts and build scalable and fault-tolerant applications using MongoDB. It will also be useful for database professionals who wish to become certified MongoDB professionals. Some understanding of MongoDB and basic database concepts is required to get the most out of this book.
Frequently asked questions
Information
Section 1: Basic MongoDB – Design Goals and Architecture
- Chapter 1, MongoDB – A Database for Modern Web
- Chapter 2, Schema Design and Data Modeling
MongoDB – A Database for Modern Web
- SQL and MongoDB's history and evolution
- MongoDB from the perspective of SQL and other NoSQL technology users
- MongoDB's common use cases and why they matter
- MongoDB's configuration and best practices
Technical requirements
The evolution of SQL and NoSQL
The evolution of MongoDB
Major feature set for versions 1.0 and 1.2
- Document-based model
- Global lock (process level)
- Indexes on collections
- CRUD operations on documents
- No authentication (authentication was handled at the server level)
- Master and slave replication
- MapReduce (introduced in v1.2)
- Stored JavaScript functions (introduced in v1.2)
Version 2
- Background index creation (since v1.4)
- Sharding (since v1.6)
- More query operators (since v1.6)
- Journaling (since v1.8)
- Sparse and covered indexes (since v1.8)
- Compact commands to reduce disk usage
- Memory usage more efficient
- Concurrency improvements
- Index performance enhancements
- Replica sets are now more configurable and data center aware
- MapReduce improvements
- Authentication (since 2.0, for sharding and most database commands)
- Geospatial features introduced
- Aggregation framework (since v2.2) and enhancements (since v2.6)
- TTL collections (since v2.2)
- Concurrency improvements, among which is DB-level locking (since v2.2)
- Text searching (since v2.4) and integration (since v2.6)
- Hashed indexes (since v2.4)
- Security enhancements and role-based access (since v2.4)
- V8 JavaScript engine instead of SpiderMonkey (since v2.4)
- Query engine improvements (since v2.6)
- Pluggable storage engine API
- WiredTiger storage engine introduced, with document-level locking, while previous storage engine (now called MMAPv1) supports collection-level locking
Version 3
- Replication and sharding enhancements (since v3.2)
- Document validation (since v3.2)
- Aggregation framework enhanced operations (since v3.2)
- Multiple storage engines (since v3.2, only in Enterprise Edition)
- Query language and indexes collation (since v3.4)
- Read-only database views (since v3.4)
- Linearizable read concern (since v3.4)
Version 4
- Multi-document ACID transactions
- Change streams
- MongoDB tools (Stitch, Mobile, Sync, and Kubernetes Operator)