Java, Terracotta

Terracotta OSS dev starter

The Terracotta Server Array (TSA) provides the platform for Terracotta products and the backbone for Terracotta clusters. It allows, for instance, to use Ehcache in a clustered mode, and benefit of a distributed in-memory cache. It is available as open source, and you may want to contribute to it, or even just build it yourself… Continue reading Terracotta OSS dev starter

Java, Terracotta

BigMemory 4.1 technical overview

BigMemory is the java solution that allows you to store terabytes of data in distributed memory across multiple servers without performance hits from the Java garbage collector, thus improving the speed of your application, as your data can be accessed directly from memory. With the release of 4.1, a number of improvements and new features… Continue reading BigMemory 4.1 technical overview

Java, Terracotta

Terracotta toolkit

The Terracotta Toolkit is an API that provides you many functionalities in a clustered manner. E.g., you can get a Clustered ReadWrite Lock, so you can do synchronization between different applications running on different machines/JVMs. In 3.7, you get the Toolkit like this: ClusteringToolkit toolkit = new TerracottaClient("localhost:9510").getToolkit(); In 4.0, you get the Toolkit like… Continue reading Terracotta toolkit

Java, Terracotta

Pratiques de caching avançées

Cet article résume les différents points que nous avons abordés (ou pas par manque de temps) lors du hands-on avec Mathilde Lemee (@MathildeLemee). 1) Le mot 'cache' est tiré du Québecquois, cache, qui dénomme originellement l'endroit ou on entrepose des réserves. Il vient du français 'cache' qui désignait l'endroit où on cachait ses réserves (comme… Continue reading Pratiques de caching avançées

Java, Terracotta

Configure a nonstop cache programmatically in Ehcache

Here's how to configure programmatically a nonstop cache in Ehcache (this one is clustered, connecting to terracotta running on localhost): import net.sf.ehcache.config.*; Configuration configuration = new Configuration() .terracotta(new TerracottaClientConfiguration().url("localhost:9510")) .defaultCache(new CacheConfiguration("defaultCache", 10000)) .cache( new CacheConfiguration("nonstopCache", 10000) .terracotta(new TerracottaConfiguration().consistency(TerracottaConfiguration.Consistency.STRONG) .nonstop(new NonstopConfiguration().enabled(true).timeoutMillis(4000) .timeoutBehavior(new TimeoutBehaviorConfiguration() .type(TimeoutBehaviorConfiguration.TimeoutBehaviorType.LOCAL_READS.getTypeName()))) ) ); CacheManager cacheManager = new CacheManager(configuration);