Upgrade to Pro — share decks privately, control downloads, hide ads and more …

NoSQL Databases in the Cloud - Great Wide Open ...

NoSQL Databases in the Cloud - Great Wide Open 2014

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

Ines Sombra

April 02, 2014
Tweet

More Decks by Ines Sombra

Other Decks in Technology

Transcript

  1. Inés 
 Sombra I NE S @ E NG I

    NE Y A R D.C O M @R A N D O M M O O D
  2. Today’s Agenda DE V E LO PM E NT 


    I N T HE C LO U D M ON G OD B N O SQL 
 DATA BA SE S RI AK
  3. Nosql Databases PRAGMATIC BEGINNINGS A DD R E S S

    R EL AT I ONA L LIMI TATI ON S N O UNI F I E D MOD EL S F OR 
 Q UERYI N G & D AT A
  4. E NTI TI E S RE LAT I O N

    SH I PS C ON STR AINTS ATTR IB U T E S Relational Concepts X
  5. NoSQL Properties C ON SI STE NCY AVAILABILI T Y

    P A R TI TI O N TO L E R A NC E What Matters T o You When A Partition Happens?
  6. Many Data Models KE Y/ VA LU E D O

    C UM E NT ORIE NTED GRAPH C OLUMN ORIE NTED
  7. Consistency Models S IN GLE M ASTE R M ULTI

    -M A S TE R Master Replica node node node node node
  8. N O SQ L DB S I N TH E

    C LO U D
 ( A N D A LI TT LE OP S) Developing & Running
  9. A Little Context D O C UME NT O RIE

    NTED D B
 BINA RY JSON * Trivia Q: Why ‘Mongo’? “SC HE MA -L E S S ” 
 F LEX IB L E SC HE M A S
  10. Pro: Dreamy ( For Devs) D E VE LO P

    E R FR IE NDLY MA P/R E D U C E GEO SP AT I A L D AT A AGGR EG AT I O N F RA M E W O RK
  11. H OW D O E S A GIVE N D

    ATA B A S E 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 HIN K IN G IN OP S )
  12. Ops For Devs Master Secondary Secondary R EP L I

    CA SE T S AU T OM AT IC FA ILOVER N ODE RE C OV E R Y
  13. Pro: There’s More HA N DY SHE L L ‘

    M O N G O ’
 A LL THE M JAVASC RIP TS VIBRA N T C OMMUNI T Y 
 T ON S OF H O STING O P T I O N S & RE S OUR C E S
  14. Cons C OL L E C T I O N

    LE V E L LO C K I N G LIM I TS DB S C OPE S H A R D IN G I S TH E ONLY WAY TO SC A L E W RI T E S SOME T I ME S NAI V E A P P RO AC H
  15. Common Mistakes N OT U S I NG A F

    U LL ( 3) SE T USI NG REL ATI O NA L SC HE MA S D I SAB LI NG THE J OU RNA L
  16. Best Use Case When you need to store json data

    & want to richly query it.
 
 * and your app does more reads than writes
  17. N OT LIK E PH Y SI C A L

    H A RDW A RE
 C LOU D R E SO U RC E S VIR T UA LI ZED * Trivia Q: What is a PaaS? M O N I TORI NG MATTE R S A LOT C AP AC I T Y P L A NN IN G TOO General Cloud Tips
  18. Cloud Tips SI Z ING Y OU R C LU

    S T E R
 6 4- BI T O N LY - KEE P C URRE N T K E EP WO R KI NG S E T I N M E M O RY
 DAT A + I NDEX E S S CA L E U P I F M E T RI C S S HOW I T 
 MM S I S H A NDY
  19. A Little Context KE Y/ VA LUE DATABASE
 VA LUE

    AGN O STIC * Trivia Q: Who Did Dynamo? E X TR EMELY FAU LT -T O LE R A NT 
 A LL N O D E S EQ U A L
  20. Pro: Dreamy (For Ops) F A I LURE S A

    RE OK MAP /R EDU C E SEC O ND A R Y IN D E X E S FUL L T EX T SE A RC H
  21. Ops For Devs 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
  22. Pro: Highly Available A LW AYS RE SPO N D

    I N G 
 MULT I-D AT AC E NTER REPL STORAGE BAC KE NDS 
 B I TCASK, LE VEL DB , M E M O R Y * Trivia Q: is MDC free?
  23. Cons M IN IM U M C LU STE R-S

    E T I S 5 N O DE S E V E N T UA L C O N SI S TE NCY TAKE S S O M E TI ME TO GROK Q UE RY I NG S TORY I S ME H GE T T IN G B E TTE R W F TS
  24. Common Mistakes N OT U S 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 O LS F O R D E V V S P RO D L E AV IN G DEFAU LT R I NG S I ZE
  25. Best Use Case When you need a highly available DB


    
 * and your app does not need a lot of introspection on values
  26. Cloud Tips M IN D Y O U R D

    ATA LO C AT I O N
 E B S V S E P H E M E RA L DRIVE S C LUST ER S I Z E M AY N E E D M O R E
 BI GG E R RI NGS HE LP C H EC K OU T B A S HO ’S C LO UD D O C S TH EI R D OC S A R E GR E AT
  27. 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
  28. Questions? TH A NK YO U ! GI T H

    UB .C O M/ RA ND O M MO O D / GRE AT W I DE O P E N 2 0 1 4