问题描述
我正在使用ejabberd作为服务器和mysql作为主数据库的移动聊天应用程序来存储用户的详细信息。我想在NoSQL数据库中存储聊天消息,以便快速检索并避免流量。每个对话应该是单键。有不同的NoSQl数据库,如Hbase,Cassandra,Riak,MongoDB,Redis。但是不知道哪一个可以选择,所以请建议一个?如果您的用户数据库相对较小,应该可以坚持使用MySQL。切换到NoSQL将不会提供明显的性能提升,您最终不得不无理由地学习新的范例。
如果学习是你的目标,我建议MongoDB。我觉得这个是最容易理解的。
I am working in mobile chat application using ejabberd as server and mysql as main database to store user's details. I want to store chat messages in NoSQL database for fast retrieval and avoid traffic.Each conversation should be in single key.There are different NoSQl databases like Hbase, Cassandra, Riak,MongoDB, Redis. But don't know that which one to choose.So please suggest right one?
If your userbase is relatively small, you should probably stick with MySQL. Switching to NoSQL will not provide a noticeable performance increase, and you will end up having to learn a new paradigm for no reason.If learning is your goal though, I'd recommend MongoDB. I feel this one is the easiest to grasp.
这篇关于哪个NoSQL数据库最好存储聊天消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!