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

查看:25
本文介绍了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),但如果你能谈谈其他用例,请去做 - 毕竟其他人可能会对这个问答感兴趣.

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——可能已经放弃了.我个人喜欢 spring-data 因为 hades 项目......你不需要实现 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天全站免登陆