Java+Redis vs plain Java efficiency for data intensive applications?

南笙酒味 提交于 2019-12-01 18:33:12

问题


Does it help to use Redis with Java to develop data intensive applications (e.g. data-mining) in Java?

Does it work faster or consume less memory comparing to plain Java for similar operation on high volume of data?

Edit: My question is mostly about running on single machine. For example for working with a large number of list/set/maps and query and sort them.


回答1:


Redis will definitely not be faster that native Java on a single machine. It would allow you to distribute processing, but if the chunks of data really are large, they're not likely to fit into memory anyway. Without knowing more about what you're doing, I would suggest storing the data on disk. When you get multiple machines, you can network mount the partition and share the data that way. Alternatively, Hadoop with MapReduce sounds like the right sort of thing for what you're doing.



来源:https://stackoverflow.com/questions/7113311/javaredis-vs-plain-java-efficiency-for-data-intensive-applications

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