• Save
Data Grids vs Databases
Upcoming SlideShare
Loading in...5
×
 

Data Grids vs Databases

on

  • 5,055 views

 

Statistics

Views

Total Views
5,055
Views on SlideShare
5,055
Embed Views
0

Actions

Likes
9
Downloads
0
Comments
0

0 Embeds 0

No embeds

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…
Post Comment
Edit your comment

Data Grids vs Databases Data Grids vs Databases Presentation Transcript

  • Thursday, November 3, 11
  • Thursday, November 3, 11
  • Data Grids vs Databases Galder Zamarreño Senior Software Engineer Red Hat, Inc 3rd October 2011, Soft ShakeThursday, November 3, 11
  • Galder Zamarreño • R&D Engineer, Red Hat Inc. • Infinispan developer • 5+ years exp. with distributed data systems • Twitter: @galderz • Blog: zamarreno.comThursday, November 3, 11
  • Agenda • Why do we need Data Grids? • What are exactly In-memory Data Grids? • Data Grids + Databases • Data Grids without a Database • Can Data Grids replace Databases?Thursday, November 3, 11
  • Traditionally... Store everything in a DB!Thursday, November 3, 11
  • Modern requirements DBs not particularly good at horizontal scaling...Thursday, November 3, 11
  • One size doesn’t fill all! DBs are not bad, but they’re not the solution to every problem eitherThursday, November 3, 11
  • Data GridsThursday, November 3, 11
  • Data Grids are not new Mainstream traction only recent: vertical scaling needs, cheaper memory... and cloud!Thursday, November 3, 11
  • Who’s offering Data Grids?Thursday, November 3, 11
  • The Players • Open Source: • Infinispan, EhCache, Hazelcast... • Commercial: • Oracle Coherence, Gigaspaces, Gemfire, IBM eXtreme ScaleThursday, November 3, 11
  • But, what are In-memory DGs?Thursday, November 3, 11
  • Definition In-memory data structures that offer extremely fast access to dataThursday, November 3, 11
  • Maps are popular! Normally come with a Map-like API, but often come with alternativesThursday, November 3, 11
  • Data distribution Store data in a subset of the grid to provide failover while being able to scale up!Thursday, November 3, 11
  • With failure in mind Suitable for commodity hardware because they can handle failureThursday, November 3, 11
  • Elastic Remain available during topology changesThursday, November 3, 11
  • Durability More durability achieved flushing to a persistent storeThursday, November 3, 11
  • Access patterns Embedded (client and DG in same VM) or Remote (just like DBs)Thursday, November 3, 11
  • ACID or BASE Transactions or Eventual Consistency?Thursday, November 3, 11
  • DGs + DBs?Thursday, November 3, 11
  • Caching! Use Data Grids as caches to enhance Database access performance!Thursday, November 3, 11
  • Can a Data Grid replace a DB?Thursday, November 3, 11
  • Reiterating benefits Speed, scalability, cloud- friendliness...etcThursday, November 3, 11
  • What are the Data Grid challenges?Thursday, November 3, 11
  • Access patterns Migrating from SQL to Map or alternative APIs not easyThursday, November 3, 11
  • Skill set Different skill set: OO programmer vs SQLThursday, November 3, 11
  • Application data layer Data layer to take data collocation into account and do more validation (less strict schema)Thursday, November 3, 11
  • E.g. with a DB...Thursday, November 3, 11
  • Same with InfinispanThursday, November 3, 11
  • Map/Reduce in detailThursday, November 3, 11
  • Technology to bridge gap?Thursday, November 3, 11
  • What about JPA? Hibernate OGM (Object/Grid Mapper) uses JPA to store in DGs as opposed to DBsThursday, November 3, 11
  • Most frequent use cases for DGs?Thursday, November 3, 11
  • Use cases • Analytic systems, i.e. financial/trading apps • XTP • Event driven apps, i.e. CEP • Clustering toolkitThursday, November 3, 11
  • Do I see DGs as DB replacements?Thursday, November 3, 11
  • DBs are here to stay! No. DBs are proven, mature, well understood plus, there are millions of systems out there!Thursday, November 3, 11
  • One size doesn’t fill all! DBs are not a universal data storage system any moreThursday, November 3, 11
  • Consider Data Grids For their speed, capabilities as data store, and cloud friendlinessThursday, November 3, 11
  • Still some way to go More deployments and standardization (JSR-107, JSR-347)Thursday, November 3, 11
  • Questions infinispan.org - @infinispan speakerrate.com/galderThursday, November 3, 11