Reactive Scala Driver for MongoDB
Asynchronous & Non-Blocking
ReactiveMongo 0.12.4
You can read the release notes to know what is new with this release.
The core dependency can be added in your SBT project as following.
libraryDependencies ++= Seq(
"org.reactivemongo" %% "reactivemongo" % "0.12.4"
MongoDB versions older than 2.6 are no longer supported by ReactiveMongo, as the End of Life for MongoDB 2.4 was reached in April 2015.
API documentations:
The various API of the ReactiveMongo driver itself, and also of the related libraries, are available online.
- Driver API: Core driver, BSON
- Play JSON API
- Play module API
- ReactiveMongo AkkaStream
- ReactiveMongo Iteratees
Recommended configuration:
The driver core and the modules are tested in a container based environment, with the specifications as bellow.
- 2 cores (64 bits)
- 4 GB of system memory, with a maximum of 2 GB for the JVM
This can be considered as a recommended environment.
Tutorials
- Setup ReactiveMongo in your project
- Get started
- Connect to the database
- Open database and collections
- Write documents (
insert
,update
,remove
) - Find documents
- Streaming
BSON Manipulation
Play Framework
- Overview of the Play JSON library: the standalone library to support JSON serialization.
- Integration with Play Framework: the complete Play plugin (also using the previous JSON library).
Advanced Topics
Samples
These sample applications are kept up to date with the latest driver version. They are built upon Play Framework.
- Full Web Application featuring basic CRUD operations and GridFS streaming: online demo / source
- Tests and samples: in the GitHub repository
- ReactiveMongo Tailable Cursor, WebSocket and Play 2
- Play 2.6 TODO app with Swagger and ReactiveMongo
References: