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.
NoSQL
Databases

in the Cloud
Inés

Sombra
INE S@E NGINE YA R D.C OM
@RA ND OMMOOD
Today’s
Agenda
DE VELOPME NT 

IN THE C LOUD
MONGODB
N O SQL 

DATA BA SE S
RIAK
Https://Www.Flickr.Com/Photos/Danielmarchese/4790411561/
Let’s
JumpIn
NoSQL
Intro&
Tenets
Relational
Origin
NoSQL
Origin
Nosql Databases
PRAGMATIC BEGINNINGS
A DDRE SS RELATI ONA L LIMI TATI ON S
N O UNIF IE D MODELS F OR 

Q UERYING & DATA
E NTI TIE S
RE LAT I ON SHIPS
C ON STR AINTS
ATTRIB UTE S
Relational
Concepts
X
NoSQL Properties
C ON SI STE NCY
AVAILABILI T Y
PA R TI TI O N TOLERA NC E
What Matters To You When A
Partition Happens?
Many DataModels
KE Y/ VA LU E
D O C UM E NT ORIE NTED
GRAPH
C OLUMN ORIE NTED
Consistency Models
SIN GLE M ASTE R MULTI-MASTER
Master
Replica
node
node
node
node
node
N O SQ L DB S IN THE C LOUD

(A N D A LI TT LE OP S)
Developing & Running
A Little Context
D O C UME NT O RIE NTED D B

BINA RY JSON
* Trivia Q: Why ‘Mongo’?
“SC HEMA-LE SS” 

F LEX IBLE SC HEMAS
Pro: Dreamy(ForDevs)
DE VE LO P E R FR IE NDLY
MA P/REDUC E
GEO SPATIA L DATA
AGGREGATI ON FRAME WORK
HOW D OE S A GIVE N
DATABASE H A ND LE
GR OWTH
RE DUC T I O N
N O DE F AI LURE S
UP GRA DE S
Detour
(T HINKING IN OPS )
Ops ForDevs
Master
Secondary
Secondary
R EP L ICA SE TS
AUTOMATIC
FAILOVER
N ODE RE C OV ERY
Ops ForDevs
Sharding Support
Out Of The Box!
Pro: There’sMore
HA N DY SHELL ‘MONGO’

A LL THE M JAVASC RIP TS
VIBRA N T C OMMUNI T Y 

TON S OF H O STING OPTI ON S &
R...
Cons
C OLLEC TI ON LE V E L
LOC KING LIMI TS DB S C OPE
S HA RD IN G I S TH E ONLY WAY
TO SCA LE WRI T E S
SOME TIME S NAI...
Common Mistakes
N OT US I NG A F U LL ( 3) SE T
USING REL ATI O NA L SC HE MA S
D I SABLING THE J OU RNA L
Best UseCase
Whenyouneedto
storejsondata&want
torichlyqueryit.



*andyourappdoesmorereadsthanwrites
N OT LIKE PHYSICA L HA RDWA RE

C LOUD RE SOURC E S VIR T UA LI ZED
* Trivia Q: What is a PaaS?
MONI TORI NG MATTE R S A L...
Cloud Tips
SI ZING YOUR C LUSTER

6 4-BI T O NLY - KEE P C URRE N T
K E EP WO RKING SE T IN MEMORY

DATA + I NDEX E S
S CA...
A Little Context
KE Y/ VA LUE DATABASE

VA LUE AGN O STIC
* Trivia Q: Who Did Dynamo?
EX TR EMELY FAULT-TOLERA NT 

A LL N...
Pro: Dreamy (ForOps)
FAI LURE S A RE OK
MAP /REDUC E
SEC OND A RY INDEXE S
FUL L TEXT SEA RC H
Ops ForDevs
node
1.4.1
node
1.4.1
node
1.4.1
node
1.4.1
node
1.4.1
node
1.3.0
App
App
App
Pro: HighlyAvailable
A LW AYS RE SPOND ING

MULT I-D AT AC E NTER REPL
STORAGE BAC KE NDS 

B I TCASK, LE VELDB, MEMORY
* ...
Cons
M INIMU M C LUSTE R-S E T I S 5
N ODE S
E VE N T UA L C ON SI S TE NCY
TAKE S SOME TI ME TO GROK
Q UE RYING STORY I S...
Common Mistakes
N OT US I NG 5 OR MO R E N O D E S
C HO O S I NG WRON G BAC KE ND
P ROT OC OLS F OR DE V VS PROD
LEAV IN G...
Best UseCase
Whenyouneeda
highlyavailableDB



*andyourappdoesnotneedalotofintrospectiononvalues
Cloud Tips
M IN D Y OUR DATA LOCATI ON

E B S VS E PHEMERA L DRIVE S
C LUST ER SI ZE MAY NEED MORE

BIGGE R RI NGS HE LP
C...
Let’s
WrapUp
(+ R E SOURC E S & Q&A )
Another Advantage
NoSQL Distilled: Fowler & Sadalage
My awesome e-commerce site
Shopping cart
& session data
Completed Inv...
Questions?
THA NK YOU!
GI THUB.C OM/RA ND OMMOOD /
GREAT WIDEOPE N201 4
NoSQL Databases in the Cloud - Great Wide Open 2014
NoSQL Databases in the Cloud - Great Wide Open 2014
NoSQL Databases in the Cloud - Great Wide Open 2014
Upcoming SlideShare
Loading in …5
×

NoSQL Databases in the Cloud - Great Wide Open 2014

1,090 views

Published on

In this session we'll introduce NoSQL databases and the movement's emerging patterns. We will contrast them to the concepts presented in workshop 1 (attendance is not mandatory). We will discuss a few of the most common open source NoSQL databases, their strengths, use cases, and their operational stories when running in the Cloud.

Note: This talk is aimed to developers

Published in: Technology

NoSQL Databases in the Cloud - Great Wide Open 2014

  1. 1. NoSQL Databases
 in the Cloud
  2. 2. Inés
 Sombra INE S@E NGINE YA R D.C OM @RA ND OMMOOD
  3. 3. Today’s Agenda DE VELOPME NT 
 IN THE C LOUD MONGODB N O SQL 
 DATA BA SE S RIAK
  4. 4. Https://Www.Flickr.Com/Photos/Danielmarchese/4790411561/ Let’s JumpIn
  5. 5. NoSQL Intro& Tenets
  6. 6. Relational Origin
  7. 7. NoSQL Origin
  8. 8. Nosql Databases PRAGMATIC BEGINNINGS A DDRE SS RELATI ONA L LIMI TATI ON S N O UNIF IE D MODELS F OR 
 Q UERYING & DATA
  9. 9. E NTI TIE S RE LAT I ON SHIPS C ON STR AINTS ATTRIB UTE S Relational Concepts X
  10. 10. NoSQL Properties C ON SI STE NCY AVAILABILI T Y PA R TI TI O N TOLERA NC E What Matters To You When A Partition Happens?
  11. 11. Many DataModels KE Y/ VA LU E D O C UM E NT ORIE NTED GRAPH C OLUMN ORIE NTED
  12. 12. Consistency Models SIN GLE M ASTE R MULTI-MASTER Master Replica node node node node node
  13. 13. N O SQ L DB S IN THE C LOUD
 (A N D A LI TT LE OP S) Developing & Running
  14. 14. A Little Context D O C UME NT O RIE NTED D B
 BINA RY JSON * Trivia Q: Why ‘Mongo’? “SC HEMA-LE SS” 
 F LEX IBLE SC HEMAS
  15. 15. Pro: Dreamy(ForDevs) DE VE LO P E R FR IE NDLY MA P/REDUC E GEO SPATIA L DATA AGGREGATI ON FRAME WORK
  16. 16. HOW D OE S A GIVE N DATABASE H A ND LE GR OWTH RE DUC T I O N N O DE F AI LURE S UP GRA DE S Detour (T HINKING IN OPS )
  17. 17. Ops ForDevs Master Secondary Secondary R EP L ICA SE TS AUTOMATIC FAILOVER N ODE RE C OV ERY
  18. 18. Ops ForDevs Sharding Support Out Of The Box!
  19. 19. Pro: There’sMore HA N DY SHELL ‘MONGO’
 A LL THE M JAVASC RIP TS VIBRA N T C OMMUNI T Y 
 TON S OF H O STING OPTI ON S & RE S OUR C E S
  20. 20. Cons C OLLEC TI ON LE V E L LOC KING LIMI TS DB S C OPE S HA RD IN G I S TH E ONLY WAY TO SCA LE WRI T E S SOME TIME S NAIV E APPROAC H
  21. 21. Common Mistakes N OT US I NG A F U LL ( 3) SE T USING REL ATI O NA L SC HE MA S D I SABLING THE J OU RNA L
  22. 22. Best UseCase Whenyouneedto storejsondata&want torichlyqueryit.
 
 *andyourappdoesmorereadsthanwrites
  23. 23. N OT LIKE PHYSICA L HA RDWA RE
 C LOUD RE SOURC E S VIR T UA LI ZED * Trivia Q: What is a PaaS? MONI TORI NG MATTE R S A LOT CAPAC I T Y P L A NN IN G TOO GeneralCloud Tips
  24. 24. Cloud Tips SI ZING YOUR C LUSTER
 6 4-BI T O NLY - KEE P C URRE N T K E EP WO RKING SE T IN MEMORY
 DATA + I NDEX E S S CA L E UP IF ME TRIC S SHOW I T 
 MM S I S H A NDY
  25. 25. A Little Context KE Y/ VA LUE DATABASE
 VA LUE AGN O STIC * Trivia Q: Who Did Dynamo? EX TR EMELY FAULT-TOLERA NT 
 A LL N ODE S EQUA L
  26. 26. Pro: Dreamy (ForOps) FAI LURE S A RE OK MAP /REDUC E SEC OND A RY INDEXE S FUL L TEXT SEA RC H
  27. 27. Ops ForDevs node 1.4.1 node 1.4.1 node 1.4.1 node 1.4.1 node 1.4.1 node 1.3.0 App App App
  28. 28. Pro: HighlyAvailable A LW AYS RE SPOND ING
 MULT I-D AT AC E NTER REPL STORAGE BAC KE NDS 
 B I TCASK, LE VELDB, MEMORY * Trivia Q: is MDC free?
  29. 29. Cons M INIMU M C LUSTE R-S E T I S 5 N ODE S E VE N T UA L C ON SI S TE NCY TAKE S SOME TI ME TO GROK Q UE RYING STORY I S ME H GE TT IN G BE TTE R W F TS
  30. 30. Common Mistakes N OT US I NG 5 OR MO R E N O D E S C HO O S I NG WRON G BAC KE ND P ROT OC OLS F OR DE V VS PROD LEAV IN G DEFAULT RING SI ZE
  31. 31. Best UseCase Whenyouneeda highlyavailableDB
 
 *andyourappdoesnotneedalotofintrospectiononvalues
  32. 32. Cloud Tips M IN D Y OUR DATA LOCATI ON
 E B S VS E PHEMERA L DRIVE S C LUST ER SI ZE MAY NEED MORE
 BIGGE R RI NGS HE LP C H EC K OUT BASHO’S C LOUD D OC S TH EI R D OC S A R E GR E AT
  33. 33. Let’s WrapUp (+ R E SOURC E S & Q&A )
  34. 34. Another Advantage NoSQL Distilled: Fowler & Sadalage My awesome e-commerce site Shopping cart & session data Completed Inventory and item pricing Session Storage service K/V Store Order Persistence service Document Store Inventory & Price service RDBMS Nodes and relations service Graph Store Recommendations engine
  35. 35. Questions? THA NK YOU! GI THUB.C OM/RA ND OMMOOD / GREAT WIDEOPE N201 4

×