Is there a open-source off-heap cache solution for Java?

后端 未结 7 892
慢半拍i
慢半拍i 2020-12-25 12:22

Is there any open-source alternative for Terracotta BigMemory?

Actually I didn\'t even manage to find any commercial alternative. I\'m interested in pure Java soluti

7条回答
  •  别那么骄傲
    2020-12-25 12:44

    I've been having this question myself so I'm just going to update the previous answers with my findings.

    I found this thread from quora which also talks about the same question:

    http://www.quora.com/JVM/Whats-the-best-open-source-solution-for-java-off-heap-cache

    The different solution that seem to be a good fit, besides the directmemory (which has not really been updated in the last year) are

    • MapDB - this seems to be a very complete solution that does much more then off-heap caching and supports a lot of features
    • HugeCollections - This seems to be much less complex application then MapDB, which is focused on allocating off-heap data by extending ConcurrentMap and Map. A fork project from this, meant to target Java 8, is Chronicle-Map. A nice article about this is http://blog.shinetech.com/2014/08/26/using-hugecollections-to-manage-big-data/
    • SpyMemcached - this is a very simple single-threaded implementation with good reputation on github.
    • xmemcached - this also has a fair reputation on github but it doesn't seem to be very talked about.
    • Fast serialization - also focused on reimplementing Java Serialization with focus on off-heap usage of memory - http://ruedigermoeller.github.io/fast-serialization/

    However, I would be interested furthermore to find a big enough application that is using any of these three: directmemory, SpyMemcached, xmemcached. Should I find one I will update this answer.

提交回复
热议问题