1 minute read

Hello everyone,

In this article I will review the following book MongoDB 8.0 in Action, Third Edition.

I’m using MongoDB daily at my job and by reading the new edition of the book I’m still learning lots of new things which are specific to the newer editions of MongoDB, 7 and 8 specifically. I’ve also got a glimpse of the capabilities of MongoDB Atlas, it’s managed platform.

The book contains various code snippets and examples. You can follow along on your machine using the community licensed MongoDB database and Podman containers.

All it takes is the following compose.yaml file and podman compose up -d or docker compose up -d.

services:
  mongo:
    image: mongo:8.0.13-noble
    restart: always
    ports:
      - "27017:27017"

The first chapter of the book has content like:

  • It shows you how to interact with MongoDB using Python, NodeJS, Ruby and mongosh. Note: For Python user the book still recommends the Motor mongodb driver but the driver is deprecated due to async support being implemented in pymongo. You can follow this guide to migrate your code https://www.mongodb.com/docs/languages/python/pymongo-driver/current/reference/migration/, in practice the APIs are very similar.

  • Introduces you to essential tools like MongoDB compass

  • A whole chapter dedicated to CRUD operations, (create, update, delete, replace, cursors, sorting, projections, bulk ops)

  • How to design MongoDB schemas. Schema design patterns and antipatterns.

  • All about indexes, transactions, change streams and sharded MongoDB Clusters.

The second chapter dives deep into MongoDB’s Atlas platform and it’s capabilities, like vector and full text search. Along with many others.

The third chapter focuses on MongoDB security.

Overall I think this is a good book to get you started quickly with MongoDB. You can also use the documentation which is very detailed and provides lots of examples but this book goes hand in had with it.

You can grab a copy of the e-book from manning: https://www.manning.com/books/mongodb-in-action-third-edition.

Thanks for reading!