MongoDB Applied Design Patterns

Author: Rick Copeland
Publisher: O'Reilly, 2013
Pages: 176
ISBN: 978-1449340049
Aimed at: MongoDB developers who want to become more expert
Rating: 4.5
Reviewed by: Kay Ewbank

A guide for developers who have already got to grips with MongoDB on how to go about structuring your data.

Author: Rick Copeland
Publisher: O'Reilly, 2013
Pages: 176
ISBN: 978-1449340049
Aimed at: MongoDB developers who want to become more expert
Rating: 4.5
Reviewed by: Kay Ewbank

The big selling point about NoSQL databases is that you can structure your data in whatever way makes most sense for your particular dataset and application. Of course, this means there’s no obvious structure that you can just copy and tweak a bit, so it’s up to you to get the structure right all on your own.

The subtitle of this book is ‘Practical Use Cases with the Leading NoSQL Database’. Essentially, it’s a guide for developers who have already got to grips with MongoDB on how to go about structuring your data. Copeland isn’t interested in telling you what MongoDB is or how to install and use it from a programming language; instead, he looks at the choices you need to make, and applies those choices to a number of ‘use cases’, applying the lessons from part one of the book to different possible applications where you might use MongoDB. The examples are written in Python and JavaScript, so you’ll need to understand those to get the best out of the book.

Banner

The material in the first half of the book is tackled at a fairly high level; understandable given the short length of the overall book. Copeland discusses the relative merits of embedding and referencing documents; how to set up document embedding to create polymorphic schemas; and how to mimic transactional behavior.

mogodb

 

The use cases in Part Two of the book start with a look at ‘operational intelligence’, real time analysis of business data, with good descriptions of how to use compound indexes, and how to manage the application when it gets large enough to need sharding. The examples used start with an event logging system , and show how this can be extended, finishing with a look at an actual real-time system, the Mongo Monitoring Service. Ecommerce gets a chapter showing how you could use MongoDB for a product catalog, and for an inventory management system. There’s a chapter on using MongoDB for a content management system that goes into polymorphic schemas for storing content nodes.

Online advertising networks are tackled next, with the emphasis on how to prevent the storage engine becoming the bottleneck. Social networking and online gaming are covered in the final two chapters. The chapter on social networking shows how you could achieve something along the lines of Google+, while the online gaming chapter looks at how you could use schemas to hold character, location and item data.

Overall, this is a nice book. It’s well written and the author makes some useful points and insights into using MongoDB in different scenarios. I’d have been happier if the book were longer and went into more depth, but it’s well worth reading if you’re trying to go more deeply into MongoDB.

 

Banner


Python Programming and Visualization for Scientists 2nd Ed

Author: Alex DeCaria and Grant Petty
Publisher: Sundog Publishing
Pages: 372
ISBN: 978-0972903356
Print: 0972903356
Audience: Scientists wanting to use Python
Rating: 2
Reviewer: Mike James
Visualization - a difficult topic and difficult to see how to explain the ideas in a book.



Racket Programming the Fun Way

Author: James W. Stelly
Publisher: No Starch Press
Date: January 2021
Pages: 360
ISBN: 978-1718500822
Print: 1718500823
Kindle: B085BW4J16
Audience: Developers interested in Racket
Rating: 4
Reviewer: Mike James
If you have ever wanted to Lisp then try Racket.


More Reviews