MongoDB in Action
Kyle Banker
  • December 2011
  • ISBN 9781935182870
  • 312 pages

Awesome! MongoDB in a nutshell.

Hardy Ferentschik, Red Hat


MongoDB in Action, Second Edition is now available. An eBook of this older edition is included at no additional cost when you buy the revised edition!

A limited number of pBook copies of this edition are still available. Please contact Manning Support to inquire about purchasing previous edition copies.

MongoDB in Action is a comprehensive guide to MongoDB for application developers. The book begins by explaining what makes MongoDB unique and describing its ideal use cases. A series of tutorials designed for MongoDB mastery then leads into detailed examples for leveraging MongoDB in e-commerce, social networking, analytics, and other common applications.

About the Technology

Big data can mean big headaches. MongoDB is a document-oriented database designed to be flexible, scalable, and very fast, even with big data loads. It's built for high availability, supports rich, dynamic schemas, and lets you easily distribute data across multiple servers.

About the book

MongoDB in Action introduces you to MongoDB and the document-oriented database model. This perfectly paced book provides both the big picture you'll need as a developer and enough low-level detail to satisfy a system engineer. Numerous examples will help you develop confidence in the crucial area of data modeling. You'll also love the deep explanations of each feature, including replication, auto-sharding, and deployment.

Table of Contents detailed table of contents



about this book

about the cover illustration

Part 1 Getting started

1. Chapter 1 A database for the modern web

1.1. Born in the cloud

1.2. MongoDB’s key features

1.3. MongoDB’s core server and tools

1.4. Why MongoDB?

1.5. Tips and limitations

1.6. Summary

2. Chapter 2 MongoDB through the JavaScript shell

2.1. Diving into the MongoDB shell

2.2. Creating and querying with indexes

2.3. Basic administration

2.4. Getting help

2.5. Summary

3. Chapter 3 Writing programs using MongoDB

3.1. MongoDB through the Ruby lens

3.2. How the drivers work

3.3. Building a simple application

3.4. Summary

Part 2 Application development in MongoDB

4. Chapter 4 Document-oriented data

4.1. Principles of schema design

4.2. Designing an e-commerce data model

4.3. Nuts and bolts: on databases, collections, and documents

4.4. Summary

5. Chapter 5 Queries and aggregation

5.1. E-commerce queries

5.2. MongoDB’s query language

5.3. Aggregating orders

5.4. Aggregation in detail

5.5. Summary

6. Chapter 6 Updates, atomic operations, and deletes

6.1. A brief tour of document updates

6.2. E-commerce updates

6.3. Atomic document processing

6.4. Nuts and bolts: MongoDB updates and deletes

6.5. Summary

Part 3 MongoDB mastery

7. Chapter 7 Indexing and query optimization

7.1. Indexing theory

7.2. Indexing in practice

7.3. Query optimization

7.4. Summary

8. Chapter 8 Replication

8.1. Replication overview

8.2. Replica sets

8.3. Master-slave replication

8.4. Drivers and replication

8.5. Summary

9. Chapter 9 Sharding

9.1. Sharding overview

9.2. A sample shard cluster

9.3. Querying and indexing a shard cluster

9.4. Choosing a shard key

9.5. Sharding in production

9.6. Summary

10. Chapter 10 Deployment and administration

10.1. Deployment

10.2. Monitoring and diagnostics

10.3. Maintenance

10.4. Performance troubleshooting

10.5. Summary

Appendix A: Installation

Appendix B: Design patterns

Appendix C: Binary data and GridFS

Appendix D: MongoDB in PHP, Java, and C++

Appendix E: Spatial indexing


© 2014 Manning Publications Co.

What's inside

  • Indexes, queries, and standard DB operations
  • Map-reduce for custom aggregations and reporting
  • Schema design patterns
  • Deploying for scale and high availability

About the reader

Written for developers. No MongoDB or NoSQL experience required.

About the author

Kyle Banker is a software engineer at 10gen where he maintains the official MongoDB drivers for Ruby and C.

placing your order...

Don't refresh or navigate away from the page.

FREE domestic shipping on three or more pBooks