MongoDB The Definitive Guide, 3rd Ed

Author: Shannon Bradshaw, Eoin Brazil and Kristina Chodorow
Publisher: O'Reilly
Pages: 514
ISBN: 978-1491954461
Print: 1491954469
Kindle: B082J7DMBX
Audience: MongoDB developers and administrators
Rating: 5
Reviewer: Kay Ewbank

This popular book, regarded by many as the MongoDB bible, has been updated to reflect the changes to MongoDB 4.2. Is it as good as ever?

If you've not worked with MongoDB before, the approach it takes is very different to traditional transactional databases. It's document based, and the book begins with a section introducing MongoDB and its underlying principals, showing how to create, update and query documents within MongoDB. The new edition of the book has two new authors alongside the original, Kristina Chodorow, who worked on the MongoDB core for five years before joining Google. The new additions, Eoin Brazil and Shannon Bradshaw, work within MongoDB in the education side of the company. I suspect Chodorow hasn't had much to do with the new edition, but her enthusiastic approach is still apparent.

 

Banner

Part Two of the book shows how a developer can design a MongoDB application, with coverage of indexes, collection types, the aggregation framework, transactions and application design. As with previous editions, the book is code heavy, with plenty of JavaScript and the output it returns, which is useful but occupies a lot of space. The aggregation framework is probably the least familiar aspect of this for developers used to other databases.It's a set of analytical tools within MongoDB that you can use to carry out analytics on documents in one or more MongoDB collections. This is carried out using pipelines, which define how documents are passed through a number of stages.

The topic for part three of the book is replication. The authors cover setting up replica sets, the components that make up a set, and how to connect to a replica set from an application, as well as replica administration. Replicas can be tricky to work with successfully, so the detail is important, and this section seems to have been updated successfully to reflect the way modern MongoDB has changed.

The same is true of part four on sharding. This is an area that has changed more than most, and the old edition was no longer a reliable guide to MongoDB sharding. The updated section seems to have overcome this drawback, and returned to being a really good guide to a complex subject, with chapters introducing sharding, configuring shards, choosing a shard key, and sharding administration.

The final two sections of the book cover administration of applications and servers. The chapters in the application administration section show you how to see what your application is doing, MongoDB authentication and authorization, and durability. The aim is to show you how to know information such as the queries MongoDB is running, how much data is being written, and  what is MongoDB actually doing.

I began reading the new edition worried that the voice of the original author would have been watered down, but it still comes through strongly, and the updated material brings the coverage up to date to match the current version of MongoDB. I didn't try all the code by any means, but the subset I tried worked. This new edition seems a worthy successor to the previous editions.

Related Reviews

MongoDB the Definitive Guide

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Web Scraping with Python (2e)

Author: Ryan Mitchell 
Publisher: O'Reilly
Pages: 308
ISBN: 978-491985571
Print: 1491985577
Kindle: B07BMGBYSK
Audience: Budding web scrapers
Rating: 4
Reviewer: Alex Armstrong

Web scraping is a strange activity, but Python is a good choice of a language for it.



Blockchain For Dummies

Author: Tiana Laurence
Publisher: Wiley
Date: May 2017
Pages: 240
ISBN: 978-1119365594
Print: 1119365597
Kindle: B06ZY3YDDK
Audience: Non-technical users
Rating: 3
Reviewer: Alex Armstrong

The blockchain's best days are far from over, so why not read a book suitable for dummies?


More Reviews

 

 

For recommendations of database books see Reading Your Way Into Big Data 

Last Updated ( Tuesday, 07 April 2020 )