Oracle to Cassandra Core Concepts Guid Part 1: A new hope

38
©2015 DataStax Confidential. Do not distribute without consent. @RachelPedreschi & @PatrickMcFadin Rachel Pedreschi & Patrick McFadin Evangelists for Apache Cassandra Oracle to Cassandra Core Concepts Guide Part 1: A new hope 1

Transcript of Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Page 1: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

©2015 DataStax Confidential. Do not distribute without consent.

@RachelPedreschi & @PatrickMcFadin

Rachel Pedreschi & Patrick McFadinEvangelists for Apache Cassandra

Oracle to Cassandra Core Concepts Guide Part 1: A new hope

1

Page 2: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

We like to collect data

2

Page 3: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

First data plateau

3

Page 4: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

First database solution

4

Page 5: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

You want a database?

5

Page 6: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Second data plateau

6

Page 7: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Second database solution

7

Page 8: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Then this happened

8

Page 9: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

The database is the problem

9

The web site is SLOWWWW!!

Page 10: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

2005 - Thundering herds

10

Page 11: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

June 29, 2007

11Welcome to the third data plateau

Page 12: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Third data plateau

Page 13: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

APACHE

CASSANDRA

Third database solution

Page 14: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Oracle Architecture

Page 15: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Oracle Architecture

More CPU

More memory

More disk ASM

DBRM

Scale

Page 16: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Oracle Architecture

More CPU

More memory

More disk

DBRM

TimesTen

Scale

Scale

ASM

Page 17: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Oracle Architecture

More CPU

More memory

More disk

DBRM

Clusterware

FAN

RAC

Cache Fusion

TimesTen

Scale

Scale

ScaleUptime

ASM

Page 18: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Oracle Architecture

More CPU

More memory

More disk

DBRM

Clusterware

FAN

RAC

Golden Gate

Cache Fusion

TimesTen

Scale

Scale

Scale

Uptime

Uptime

ASM

Page 19: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Oracle Architecture

More CPU

More memory

More disk

DBRM

Clusterware

FAN

RAC

Data GuardGolden Gate

Cache Fusion

Active? Standby?

TimesTen

Scale

Scale

Scale

UptimeUptime

Uptime

ASM

Page 20: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Oracle Architecture

More CPU

More memory

More disk

DBRM

Clusterware

FAN

RAC

Data GuardGolden Gate

Cache Fusion

Active? Standby?

TimesTen

Scale

Hadoop

Scale

Scale

UptimeUptime

Uptime

ASM

ETL

Page 21: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Oracle Architecture

More CPU

More memory

More disk

DBRM

Clusterware

FAN

RAC

Data GuardGolden Gate

Cache Fusion

Active? Standby?

TimesTen

Scale

Hadoop

Scale

Scale

UptimeUptime

Uptime

ASM

Page 22: Oracle to Cassandra Core Concepts Guid Part 1: A new hope
Page 23: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

80

10

3050

70

60

40

20

Page 24: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

80

10

30

50

70

60

40

20

Page 25: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

80

8

32

56

72

64

48

16

24

4040

24

Page 26: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Application

hash(key) => token(43)

replication factor = 3

80

10

3050

70

60

40

20

Page 27: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Active - Active Datacenter ReplicationApplication

Data Center 1

hash(key) => token(43)

replication factor = 3

80

10

3050

70

60

40

20

Data Center 2

replication factor = 3

81

11

3151

71

61

41

21

Page 28: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

28

… … … …

… … … …

… … … …

… … … …

Node memory

Node file system

partition key1 first:Oscar last:Orange level:42

partition key2 first:Ricky last:Red

Memtable

Coordinator

CommitLog

Append O

nly

SSTables

Flush current state to SSTable

Write <3, Betty, Blue, 63>

partition key3 first:Betty last:Blue level:63

Application

… … … …

… … … …

… … … …

… … … …

… … … …

… … … …

… … … …

… … … …

… … … …

… … … …

… … … …

… … … …

… … … …

… … … …

… … … …

… … … …

Page 29: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Look Familiar?

Page 30: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Ops Center

Page 31: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Backup and Restore

Page 32: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

© 2014 DataStax Confidential. Do not distribute without consent.

Security in Cassandra

18

Cas

sand

ra

Dat

aSta

x En

terp

rise

Internal Authentication Manages login IDs and passwords inside the database

Object Permission Management Controls who has access to what and who can do what in the database

Client to Node Encryption Protects data in flight to and from a database cluster

External Authentication Uses external security software packages to control security

Transparent Data Encryption Encrypts data at rest

Data Auditing Provides trail of who did and looked at what/when

Page 33: Oracle to Cassandra Core Concepts Guid Part 1: A new hope
Page 34: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Dev Center

Page 35: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Integrated Analytics and Search, no ETL, one clusterApplication

OLTP with Cassandra

OLAP and Streamingwith Cassandra /Spark

Search with Cassandra / Solr

Faceted Search, Text Mining, etc

BI Tools, ODBC/ JDBC

Page 36: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

So, where is the catch?

Page 37: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

Oracle to Cassandra Core Concepts Guide Pt. 2 Third normal form? That’s so 20th century. Learn the newest techniques to make your Cassandra database sing from the rafters in performance and scalability. AND it uses concepts that you already know and apply every day. You can do this. This is the must-see half hour of your professional life! These developers found a new way to work with databases. First you will be shocked, then you will be inspired!

Oracle to Cassandra Core Concepts Guide Pt. 3 Tired of timeouts? Cursing your cursors? Join the distributed revolution and bring your dev team into application nirvana. You won’t believe how easy it is to be code complete on your next big project. We will show you how to lead your devs away from the clutches of the DBA and be in control of their own data destiny. Discover the methodology that will make your Cassandra project epic.

Stay tuned!

Page 38: Oracle to Cassandra Core Concepts Guid Part 1: A new hope

RachelP50 or PatrickM50- 50% off Priority PassRachelPCert or PatrickMCert- 25% Certification