Mongo
with Play-Framework
is new for me. I have Spring-Framework
background, In which we create Controller, Business and DAO
layer structure applications. Now, i want to taste the flavor of Play-Framework
with ReactiveMongo
. For create our sample Application, my first target is to follow Controller, Business and DAO
layer structure. Play-Framework
already provide the basic structure of application, which is really good. If we use Mongodb with Play-Framework, I found three types of MongoDB Drivers. These are as below:
- Mongo Module (https://www.playframework.com/modules/mongo-1.1/home)
- MongoHelper (https://gist.github.com/harmeetsingh0013/fdc9c20b056a62f303f5)
- ReactiveMongo(http://reactivemongo.org/)
ReactiveMongo
, which is really awesome for implementing non-blocking I/O. In reactive mongo there are some problem with sync the data from multiple queries. I have some queries for creating sample application as below:
- My first target is to implement MVC using
ReactiveMongo
, which i thinkReactiveMongo-Extension
provide meDao
layer. But i still want to confirm,ReactiveMongo-Extension
is a good approach ? or I need to go forMongoHelper
? What is the benefit ofMongo-Module
over reactive mongo? - For dependency Injection we need to go for
Spring-Dependency Injection
or Guice or otherScala Dependency Injection Framework
? - If i am go for
ReactiveMongo
, we need to go forJSONCollection
becauseBSONCollection
is MongoDB Dependency. What is the support forJSONCollection
available?