Reactive Scala Driver for MongoDB
Asynchronous & Non-Blocking
ReactiveMongo 1.1
You can read the release notes to know what is new with this major release.
The latest minor release is 1.1.0-RC14, and the core dependency can be added in your SBT project as following.
libraryDependencies ++= Seq(
"org.reactivemongo" %% "reactivemongo" % "1.1.0-RC14")
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 PekkoStream
Recommended configuration:
The driver core and the modules are tested in a container based environment, with the specifications as per below.
- 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
Cloud
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: