Book Image

MongoDB Cookbook

By : Amol Nayak
Book Image

MongoDB Cookbook

By: Amol Nayak

Overview of this book

<p>MongoDB is a high-performance and feature-rich NoSQL database that forms the backbone of numerous complex development systems. You will certainly find the MongoDB solution you are searching for in this book.</p> <p>Starting with how to initialize the server in three different modes with various configurations, you will then learn a variety of skills including the basics of advanced query operations and features in MongoDB and monitoring and backup using MMS. From there, you can delve into recipes on cloud deployment, integration with Hadoop, and improving developer productivity. By the end of this book, you will have a clear idea about how to design, develop, and deploy MongoDB.</p>
Table of Contents (17 chapters)
MongoDB Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


There is a vast array of tools/frameworks available to ease the development/administration process for software that uses MongoDB. We will look at some of these available frameworks and tools. For developer productivity (Java developers in this case), we will look at spring-data-mongodb, which is part of the popular Spring data suite.

Java Persistence API (JPA) is an object relational mapping (ORM) specification that is widely used, particularly with relational databases (this was the objective of ORM frameworks). However, there are few implementations that let us use it with NoSQL stores, MongoDB in this case. We will look at one provider that provides this implementation and put it to the test with a simple use case.

We will use spring-data-rest to expose CRUD repositories for MongoDB over a REST interface for clients to invoke various operations supported by the underlying spring-data-mongo repository.

Querying the database from the shell is OK, but it will be nice to have...