Book Image

Mastering play framework for scala

By : Shiti Saxena
Book Image

Mastering play framework for scala

By: Shiti Saxena

Overview of this book

Table of Contents (21 chapters)
Mastering Play Framework for Scala
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Getting Started with Play
Index

ReactiveMongo


A lot of applications these days use a NoSQL database as a result of unstructured data, write scalability, and so on. MongoDB is one such database. According to its website (http://docs.mongodb.org/manual/core/introduction/):

MongoDB is an open source document database that provides high performance, high availability, and automatic scaling.

Key features of MongoDB are:

High performance

High availability (automatic failover, data redundancy)

Automatic scaling (horizontal scalability)

ReactiveMongo is a Scala driver for MongoDB that supports non-blocking and asynchronous I/O operations. There is a plugin for the Play Framework called Play-ReactiveMongo. It is not a Play plugin but it's supported and maintained by the team of ReactiveMongo.

Note

This section requires prior knowledge of MongoDB, so please refer to https://www.mongodb.org/.

To use it, we need to do the following:

  1. Include it as a dependency in the build file:

    libraryDependencies ++= Seq(
      "org.reactivemongo" %% "play2-reactivemongo...