Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Mongo Scala Driver and Reactive-Mongo Driver in play framework? [closed]

Hello I am new the play framework, and our team is planning to use mongodb. I found two drivers for it, Mongo Scala Driver and Reactive-Mongo, they are both non-blocking and asynchronous.

What are the differences between them?

like image 842
Roger Chien Avatar asked Mar 17 '16 21:03

Roger Chien


1 Answers

As you are using the Play Framework, I highly recommend using the Play-ReactiveMongo driver which allows you to use Play's excellent JSON support (i.e. the JSObject family) instead of having to learn yet-another way of describing JSON objects: ReactiveMongo out of the box uses a similar-but-not-identical BSONValue, BSONDocument etc.

like image 159
millhouse Avatar answered Sep 27 '22 16:09

millhouse