Part 3. MongoDB mastery

Having read the first two parts of the book, you should understand MongoDB quite well from a developer’s perspective. Now it’s time to switch roles. In this final part of the book, we’ll look at MongoDB from the database administrator’s perspective. This means we’ll cover all the things you need to know about performance, deployments, fault tolerance, and scalability.

To get the best performance from MongoDB, you have to design efficient queries and then ensure that they’re properly indexed. This is what you’ll learn in chapter 8. You’ll see why indexes are important, and you’ll learn how they’re chosen and then traversed by the query optimizer. You’ll also learn how to use helpful tools like the query explainer and the profiler.

You’ll find that many of the queries you’re creating and optimizing have to do with searching for text. To make this easier and more powerful, MongoDB has some text search–specific features that we’ll cover in chapter 9. These features will allow you to write queries that intelligently search for words and phrases similar to your search term, among other things.

Chapter 10 is about the WiredTiger storage engine. Chapter 11 is devoted to replication. You’ll spend most of this chapter learning how replica sets work and how to deploy them intelligently for high availability and automatic failover. In addition, you’ll learn how to use replication to scale application reads and to customize the durability of writes.

Horizontal scalability is the Holy Grail for modern database systems; MongoDB scales horizontally by partitioning data in a process known as sharding. Chapter 12 presents sharding theory and practice, showing you when to use it, how to design schemas around it, and how to deploy it.

The last chapter describes the niceties of deployment and administration. In chapter 13 we’ll look at specific hardware and operating system recommendations. You’ll then learn how to back up, monitor, and troubleshoot live MongoDB clusters.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset