MongoDB的Morphia,Mongo4j和Spring数据如何比较? [英] How do Morphia, Mongo4j and Spring data for MongoDB compare?

查看:110
本文介绍了MongoDB的Morphia,Mongo4j和Spring数据如何比较?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对如何将它们相互比较感兴趣,这是更成熟的,具有更多功能,更适合某些用例的

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

我自己的用例是创建一个实时监视服务(想像Chartbeat),但是如果您可以谈论其他用例,请这样做-毕竟其他人可能会对此Q& A感兴趣.

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.

推荐答案

Morphia可能是这三个中最稳定的.最近我没有听到太多有关Mongo4j的信息-可能被放弃了.由于hades项目,我个人喜欢spring-data.您不需要实现DAO.您只需编写接口,spring数据就会自动为您提供.但是,在我的初步试用中,Spring Data Mongodb的实现似乎有点错误.如果您遇到困难,并且正在生产高质量的产品,那么选择Morphia也许是明智的选择.

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.

这篇关于MongoDB的Morphia,Mongo4j和Spring数据如何比较?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆