Java

Mirroring GigaSpaces XAP to NoSQL

By |2020-10-06T08:04:15+00:00September 12, 2011|

Ah, caches[0]. Caches are easy to use, but not always easy to load; what typically happens is that you modify your reads and writes to check a cache first (using data from the cache if present, and loading the cache if not; updates store data in the cache as well as the data store, in [...]

Realistic Elastic

By |2020-10-06T09:46:20+00:00March 3, 2011|

When running system in production, the last thing you want to do is to shutdown the system. This could happen when: - You need to replace one of the machines running the system. - You need to upgrade one of the machines running the system. - You need to increase [...]

Fun with XStream

By |2020-10-06T09:49:10+00:00February 15, 2011|

XStream unmarshalling is great fun when you’re not working with a fixed schema. I’ve been working on a quick start document for GigaSpaces‘ data grid edition lately, and I’m doing it with the code in the form of tests. This makes writing it really easy (run the tests, make sure it works, if it fails, wash, [...]

XAP 8.0 Released – Same Data, Any API and Continuous Scaling

By |2020-10-06T10:20:30+00:00February 1, 2011|

TheServerSide – my old stomping grounds, you know – posted “GigaSpaces XAP 8: Like Playing With a Long Lever and a Strong Fulcrum” this Monday (January 31, 2011.) Cameron pointed out the standard superlatives found in every press release, but he managed to bring up some interesting things while missing some pretty crucial points. Look: I [...]

Possible Impossibility – The Race to Zero Latency

By |2020-10-06T10:44:48+00:00December 6, 2010|

I recently read a book called: "Physics of the Impossible" by the theoretical physicist Michio Kaku. Dr. Kaku lists "Possible Impossibilities" and classifies these into different categories where all these "impossibilities" may happen in the near/distant future. When talking about "zero latency", I consider this something we can achieve today. The [...]

new and modified best practices

By |2020-10-06T10:47:24+00:00November 21, 2010|

Our best practices wiki is growing rapidly and full with good and useful material. Here are few new best practices added lately: - Finding Partition Load – routing data based on partition load. - Even Data Distribution – simple example explains how to evenly partition application data. - WAN Replication Gateway – Simple blueprint for WAN replication scenario [...]

mea culpa: “Offheap access is slow?”

By |2020-10-06T10:49:28+00:00November 16, 2010|

Steve Harris has been commenting on dzone about my last post, “BigMemory: Heap Envy.” One of his comments linked to a blog post of his, “Direct Buffer Access Is Slow, Really?,” in which he says that direct access is not slow, and therefore one of my points was invalid. Well, folks, he’s right, for all intents [...]

BigMemory: Heap Envy

By |2020-10-06T10:53:48+00:00November 12, 2010|

Terracotta has announced the availability of BigMemory, which provides a large offheap cache through their Ehcache project. It is designed to avoid the GC impact caused by massive heaps in Java, at a license cost of $500 per GB per year, if I have my figures right. The Reason We’re Here First, let’s understand the reason BigMemory [...]

The Master-Worker Pattern

By |2020-10-07T07:02:58+00:00August 24, 2009|

The Master-Worker Pattern (sometimes called Master-Slave pattern) is used for parallel processing. It follows a simple approach that allows applications to perform simultaneous processing across multiple machines or processes via a Master and multiple Workers. In GigaSpaces XAP, you can implement the Master-Worker pattern using several methods: - Task Executors [...]

JavaOne 2009 Lab – PetClinic in the Clouds

By |2020-10-07T08:50:50+00:00May 22, 2009|

This year JavaOne will include really cool lab - PetClinic in the Clouds: Scaling a Classic Enterprise Application. In this Hands-on Lab, participants will take a popular Web application (the Spring PetClinic sample application) and modify it so that it can be deployed on the Amazon EC2 cloud computing infrastructure. [...]