How do Morphia, Mongo4j and Spring data for MongoDB compare? [closed]

情到浓时终转凉″ 提交于 2019-11-27 21:44:21

问题


I'm interested in how to they compare to each other, what's more mature, has more features, better for some use cases.

My own use case is to create a real-time monitoring service (think Chartbeat) but if you can talk about other use cases please do it - after all this Q&A might be of interest for others.


回答1:


Morphia may be the most stable of the three. I have not heard much of Mongo4j lately- probably abandoned. I personally like spring-data because of the hades project... You don't need to implement the DAOs. You just write the interface and spring data automatically provides it to you. However Spring Data Mongodb implementation seems a little buggy in my initial trial. If you have hard dates and is working on a production quality product, probably it is wise to choose Morphia.




回答2:


Morphia is the way to go. Pretty stable, very good Play integration and offers access to all Mongo driver features if you need more torque. Reference resolution, entity embedding are working as expected. You get lifecycle annotations too, which are pretty useful for boilerplate persistence code (timestamps?)




回答3:


https://github.com/impetus-opensource/Kundera/wiki/Kundera-Mongo-performance A performance sheet is compiled over here. Kundera is complete JPA2.0 compliant solution and provide much stronger interface, ease of implement and set of features.

-Vivek




回答4:


Kundera is another alternative if you're looking for ease of development and good performance. It's JPA compliant.



来源:https://stackoverflow.com/questions/5837135/how-do-morphia-mongo4j-and-spring-data-for-mongodb-compare

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!