• Save
Infinispan for Dummies
Upcoming SlideShare
Loading in...5
×
 

Infinispan for Dummies

on

  • 12,018 views

 

Statistics

Views

Total Views
12,018
Views on SlideShare
11,488
Embed Views
530

Actions

Likes
12
Downloads
0
Comments
1

5 Embeds 530

http://tedwon.com 488
http://115.68.2.182 20
http://www.tedwon.com 17
http://www.party09.com 4
http://from5.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Hi Galder,

    excelent presentation!

    I just finish reading the book: Infinispan, the concepts are very easy to understand.

    Congrats to all of you guys!

    Next time here in Brazil, let's watch some soccer game. LOL

    Cheers!

    --
    Sérgio Fantin
    serjaum.wordpress.com
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Infinispan for Dummies Infinispan for Dummies Presentation Transcript

  • Thursday, November 3, 11
  • for Dummies Galder Zamarreño Senior Software Engineer Red Hat, IncThursday, November 3, 11
  • Who is Galder? • R&D engineer (Red Hat Inc): • Infinispan developer • Contributor and committer: • JBoss AS, Hibernate, JGroups...etc • More about me? • Blog: zamarreno.com • Twitter: @galderzThursday, November 3, 11
  • Agenda • What is Infinispan? • Infinispan as in-memory cache • Infinispan as in-memory data grid • Data-as-a-Service with Infinispan • Clustering and migration challenges • Who uses Infinispan?Thursday, November 3, 11
  • What is Infinispan? • Data grid platform: • Open source (LGPL) • In-memory • Highly available • ElasticThursday, November 3, 11
  • Local in-memory cache • Performance booster • Good for data that is: • Hard to calculate • Expensive to retrieve...etc • Why not ConcurrentHashMap? Infinispan offers: • Greater concurrency with MVCC • Built-in eviction...etcThursday, November 3, 11
  • Local cache exampleThursday, November 3, 11
  • Clustered in-memory cache • Same as local but cluster-aware • More shared-cache space! • Can help you cluster your framework too! • Invalidation cache mode commonly usedThursday, November 3, 11
  • InvalidationThursday, November 3, 11
  • InvalidationThursday, November 3, 11
  • InvalidationThursday, November 3, 11
  • Cache.putForExternalRead() put() putForExternalRead() Use for updating state Use to cache state read from external source Regular lock acquisition timeout Fail-fast Could throw an exception Fails quietly Could cause existing transaction to Will never affect existing fail transactionsThursday, November 3, 11
  • Clustered cache configurationThursday, November 3, 11
  • P2P Embedded ArchitectureThursday, November 3, 11
  • In-memory data grid • It’s a data store, not just a cache • An authoritative data sink • FADE • Fast • Available • Distributed • ElasticThursday, November 3, 11
  • Distribution vs ReplicationThursday, November 3, 11
  • ReplicationThursday, November 3, 11
  • Distribution • With number of copies = 2Thursday, November 3, 11
  • Consistent HashingThursday, November 3, 11
  • Virtual NodesThursday, November 3, 11
  • Client/Server Architecture • Supported protocols • REST • Memcached • Hot RodThursday, November 3, 11
  • Server Endpoint ComparisonThursday, November 3, 11
  • Hot Rod server and clientsThursday, November 3, 11
  • Traditional 3-tier AppThursday, November 3, 11
  • Typical IaaS AppThursday, November 3, 11
  • Typical PaaS AppThursday, November 3, 11
  • StateThursday, November 3, 11
  • Virtualize data • Some public services exist • Amazon RDS and SimpleDB • FathomDB, Cloudant...etc • But not all cloud deployments are public! • Private cloud very important • How can you build a DaaS yourself?Thursday, November 3, 11
  • Characteristics of DaaS • Elastic data • Need to scale with other tiers • Response times should be linear • Needs to be highly available! • Nodes with die! The service shouldn’tThursday, November 3, 11
  • DaaS with InfinispanThursday, November 3, 11
  • Clustering challenges • JGroups taking care of clustering • Default config file good for 4-16 nodes • Bigger clusters require tweaking... • Adjust transport and discovery to environment limitations • Especially where UDP multicast not allowed • These adjustments do not require altering codeThursday, November 3, 11
  • Migration best practices • ‘RadarGun’ project benchmarks different data grid products • Benchmark your use case! • Helps with mapping between different provider APIs • XSLTs distributed to transform configurationThursday, November 3, 11
  • Who uses Infinispan? • Examples: • As a cache: • Hibernate for the second level cache • HTTP session cache in JBoss AS 6 and AS 7 • As a data grid: • Real-time trading app of a well known stock exchangeThursday, November 3, 11
  • What’s next? • Distributed Executors and Map/Reduce • Hibernate OGM (Object-Grid-Mapping) • JPA-like interface backed by Infinispan • ...etcThursday, November 3, 11
  • Summary • Infinispan is a fast powerful local cache • More space and scales up when cache is clustered • Infinispan is also a distributed elastic data grid • Accessible in embedded and client/server mode • Build your own Data-as-a-Service with InfinispanThursday, November 3, 11
  • Questions? • infinispan.org • blog.infinispan.org • @infinispan on twitter • #infinispan for comments • IRC: #infinispan on FreeNode • speakerrate.com/galderThursday, November 3, 11