Sunday, October 7, 2012

BigMemory Go - Fast Restartable Store: Kickass!!

BigMemory Go, the latest product offering from Terracotta. BigMemory Go lets you keep all of your application's data instantly available in your server's memory. Your application will respond promptly when you have your data closest to the application.

A general application will have a database storing GBs of data, which makes the application slow. BigMemory Go provides a brand new reliable, durable, crash resilient and, above all, fast storage, called Fast Restartable Store. Fast Restart feature provides the option to store a fully consistent copy of the in-memory data on the local disk at all times. 

We generally use Database for bookkeeping, state-of-record, persistent data. With BigMemory Go, we provide durable persistent data store, which can handle any kind of shutdown - planned or unplanned. The next time your application starts up, all of the data that was in memory is still available and very quickly accessible.

We are here comparing the performance of mysql db (tuned to my best knowledge) with Ehcache hibernate 2nd level cache (w/ DB backend) and BigMemory store altogether. The sample application used here is classic Spring's PetClinic app (using hibernate), modified for simplicity and shed spring webflow, converted to standalone Java performance test. This app has a number of Owners which have Pets and corresponding Visits to the Clinic. The test initially creates a number of Owners with pets and visits and puts them to the storage. Then, it executes 10% read/write test for 30 mins.

The three cases considered here are
  1. No Hibernate caching with DB
  2. Ehcache with BigMemory used as Hibernate 2nd level cache with DB backend.
  3. BigMemory Go Fast Restartable Store (FRS)
Performance comparison chart shows that BigMemory Go FRS outnumbers the competitors. With no hibernate and db transaction managements, it just runs faster than ever.

DB vs Ehcache h2lc vs BigMemory FRS

BigMemory Go FRS provides consistent 50 ┬Ás latency 99.99% of the time compared to 3 ms average latency for ehcache h2lc and 60 ms latency for MySQL db.With hibernate 2nd level cache we are surely making reads faster but still we have too much of hibernate and JPA transaction overhead to it.

BigMemory Go FRS is new-age data storage which is durable, reliable and super-fast. ;)

Test Sources (Maven Project Download)


ritul kakati said... Best Blogger Tips[Reply to comment]Best Blogger Templates

Hi Himadri,

I am trying to do some performance testing on BigMemory. For this when I tried compiling the petclinic project (which you have uploaded to: ), I am getting the below error:

c:\petclinic>mvn compile
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR] The project org.terracotta:petclinic:1.0.0-SNAPSHOT (c:\petclinic\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact org.terracotta.forge:forge-parent:pom:3.0-SNAPSHOT and 'parent.relativePath' poin
ts at no local POM @ line 9, column 10 -> [Help 2]

Can you please help me in compiling the project?
Thanking you in advance for your help.

- Ritul Kakati

annai mahesh said... Best Blogger Tips[Reply to comment]Best Blogger Templates

new blogger premium template updated change your template themes thank you