Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Caching In The Cloud

2,055 views

Published on

5 minute talk from the St. Louis Cloud Camp about using Terracotta in the cloud for caching and more.

Published in: Technology
  • Be the first to comment

Caching In The Cloud

  1. 1. Caching in the Cloud Alex Miller Terracotta Twitter: @puredanger Blog: http://tech.puredanger.com
  2. 2. Clouds • Blah blah blah scalability blah blah blah elasticity blah blah blah efficiency blah blah blah
  3. 3. Database Pain • Scale in cloud • Born in enterprise -> doesn’t work at web scale • Expensive (RAC) or complicated (MySQL sharding) • Elasticity in cloud • Harder to migrate disk than to migrate processes • Single coordination point constrains flexibility
  4. 4. Ideal Cloud Data Layer • Protects “in-flight” data - durability • Has low latency, high throughput • Deploys elastically w/app tier • Doesn’t require app changes
  5. 5. NoSQL • Key-value stores • Document databases • And many other flavors...
  6. 6. Terracotta • Open-source Java clustering technology • Clustered - dynamically add/remove nodes • High availability - server-based w/failover • Data is redundant, copied to disk for backup • In-memory speed
  7. 7. Don’t Change Your App! • Hibernate Second Level Cache - ORM • Ehcache - data caching • Quartz - scheduling and job recovery • HTTP Sessions - session availability • Spring - app wiring and state
  8. 8. Database Offload • Scale your app (use the cloud) • Scale your data (use Terracotta) • Don’t scale your db (use for historical)
  9. 9. Hotel company • Business • Room reservation + loyalty points • Multiple mainframe apps • Estimate: $12M, 5 years -> Oracle RAC • Instead: • Private cloud • VMWare, Spring, Terracotta • Saving $11M / year on DB and App Server licenses
  10. 10. Deployment Approach
  11. 11. Travel Reservation System • Problem • Mainframe costs >$5M / year in EDS fees • Retain high reliability in lower cost env • Solution • Private data cloud - Terracotta + Ehcache • Saved $5M / year • 99.99% reliability
  12. 12. Gnip • Web feeds, message transformation, delivery • Twitter, Delicious, Flickr, etc • Problem: large quantities of transient data • Solution: • 12 nodes on EC2 • Terracotta for data storage • 50k TPS
  13. 13. Scalability Continuum • Write your app once using standard open source technologies • Same app works on your machine, in your test env, in the cloud • Change where and how you deploy, not your app

×