开发者

Should I use MongoDb module or morphia module or Casbah in play framework for MongoDb?

开发者 https://www.devze.com 2023-03-15 13:44 出处:网络
I am working on a play framework project with scala in which I want to have Scala domain classes (or even Java domain classes) using MongoDb as data store.

I am working on a play framework project with scala in which I want to have Scala domain classes (or even Java domain classes) using MongoDb as data store.

I want maximum performance while serving hundreds of thousands if not millions of requests per day.

Since both scala language and Play framework is adding new features by the month, 开发者_如何转开发what is the best answer in terms of latest production version of the modules mentioned in the question and play framework 1.2.2, scala 0.9.1+ and scala language 2.8+?


for anyone stumbling upon this question and using playframwork 2.1.x or above I highly recommend taking a look at reactivemongo site and github project.
It's a mongodb scala driver that allows asynchronous db operations.
Great performance and mature enough for use in production.

At the time of writing this the current version is 0.9 and is being used by us in production without any problems.


I use Morphia module, a MongoDB integration for Play! 1.2.x


For scala I would suggest you have a look at https://github.com/novus/salat I've written a play plugin for salat which you can find here https://github.com/leon/play-salat

Good luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消