Distributed Cache with Expiration Control in Java

The requirement is to cache a large number (from 100,000 to 1,000,000) of small objects and control the expiration of individual objects based on future events. There is no time component for expiration.

The cache should be accessible across multiple application servers (SpringSource dm Server) and ideally should be distributed and self-contained for errors.

I consider Terracotta as a possible solution. Is this a good way to go down? Is there a better one?

+3
source share
4 answers

We use Terracotta and we are very pleased with this. Its distributed Evictors cached caches were a great solution to our problems.

+1
source

I think the best option for you is JBoss Infinispan ( http://www.jboss.org/infinispan ). The cache is very stupid, easy to install, supports replication, eviction, persistence, among many other things. More importantly, the cache runs on your application server. You can also access the cache using REST, and there are abstractions for connecting Hibernate to it.

+4
source

( ) . , memcached , . .

Redis, , , . , Redis (, , ...)

+1

Memcached? : memcached . , , , , API- Java: Danga Spy.

, memcached , - . , , , 30 . YMMV.

+1

Source: https://habr.com/ru/post/1718062/


All Articles