Java+Redis vs plain Java efficiency for data inten

2019-02-23 02:40发布

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条回答
够拽才男人
2楼-- · 2019-02-23 03:16

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.

查看更多
登录 后发表回答