Which NoSQL database is best to store chat messages? [closed]

五迷三道 提交于 2019-12-24 07:17:11

问题


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?


回答1:


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.




回答2:


If you are comfortable with Erlang and relational DB like Mnesia you can use it. Ejabberd uses Mnesia but recommends MySQL for large datasets. If the requirement is to store the data in a NoSQL DB, then probably Riak or MongoDB would be a better choice.



来源:https://stackoverflow.com/questions/21775631/which-nosql-database-is-best-to-store-chat-messages

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