When developing medium and large Java software projects, many Java architects will encounter database read and write bottlenecks. If you do not consider the caching strategy in the system architecture, or do not choose a better caching strategy, then refactor Getting up will be a nightmare. This article mainly shares 5 commonly used Java distributed cache frameworks. These cache frameworks support the cache read and write functions of multiple servers, which can make your cache system easier to expand.
1. Ehcache – Java Distributed Cache Framework
Ehcache is an open source distributed cache framework implemented in Java. EhCache can effectively reduce the load of the database, and can save data in the memory of different servers, and can quickly access data when it is needed. At the same time, the extension of EhCache is very simple, and there are several official Cache configuration methods. You can configure it by declaration, configure it in xml, configure it programmatically, or pass in different parameters when calling the constructor.
Official website: http://ehcache.org/
Tutorial: http://longload.iteye.com/admin/blogs/2272443
2. Cacheonix – a high-performance Java distributed cache system
Cacheonix is also a Java-based distributed cluster cache system, which can also help you implement distributed cache deployment.
Official website: http://www.cacheonix.com/
Tutorial: http://www.codeceo.com/article/java-cacheonix.html
3. ASimpleCache – Lightweight Android Cache Framework
ASimpleCache is a lightweight caching framework based on Android. It has only one Java file. ASimpleCache can basically cache common Android objects, including ordinary strings, JSON objects, serialized Java objects, and byte arrays.
Official website: https://github.com/yangfuhai/ASimpleCache
Tutorial: http://www.codeceo.com/article/asimplecache-android-cache.html
4. JBoss Cache – Transaction-based Java caching framework
JBoss Cache is a Java-based transaction processing cache system. Its goal is to build a Java framework-based cluster solution, which can be a server application or a Java SE application.
Official website: http://jbosscache.jboss.org/
Tutorial: http://www.codeceo.com/article/jboss-cache-java.html
5. Voldemort – a key-value based caching framework
Voldemort is a distributed key-value cache system developed based on Java. Like JBoss Cache , Voldemort also supports cache synchronization between multiple servers to enhance system reliability and read performance.
Official website: http://www.project-voldemort.com/voldemort/
Tutorial: http://www.codeceo.com/article/voldemort-java-key-value-catch.html