new age transac9onal systems not your grandpa s oltp
play

New Age Transac9onal Systems Not Your Grandpa s OLTP - PowerPoint PPT Presentation

The NewSQL database for high velocity applica9ons New Age Transac9onal Systems Not Your Grandpa s OLTP Ryan BeEs Sr. SoGware Engineer, VoltDB


  1. The ¡NewSQL ¡database ¡for ¡high ¡velocity ¡applica9ons ¡ New ¡Age ¡Transac9onal ¡Systems ¡– ¡ 
 Not ¡Your ¡Grandpa ’ s ¡OLTP ¡ Ryan ¡BeEs 
 Sr. ¡SoGware ¡Engineer, ¡VoltDB 
 rbeEs@voltdb.com ¡ ¡/ ¡@ryanbeEs ¡

  2. Who’s ¡making ¡fun ¡of ¡Grandpa’s ¡DB? ¡ We ¡got ¡your ¡back, ¡Mr. ¡ Codd. ¡ VoltDB 2 2

  3. Are ¡there ¡crystals ¡involved? ¡ New ¡age ¡OLTP ¡ NoSQL ¡ ¡ ¡ NewSQL ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ More ¡than ¡marke,ng? ¡ VoltDB 3 3

  4. NewSQL ¡ ¡ ¡“ …shorthand ¡for ¡various ¡new ¡ scalable ¡high ¡performance ¡db ¡ vendors ” ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡MaEhew ¡AsleE ¡/ ¡The ¡451 ¡group ¡ ¡ ¡ ¡ ¡April, ¡2011 ¡ ¡ hEp://blogs.the451group.com/informa9on_management/2011/04/06/what-­‑we-­‑talk-­‑ about-­‑when-­‑we-­‑talk-­‑about-­‑newsql/ ¡ ¡ VoltDB 4 4

  5. NewSQL ¡ ¡ ¡ ¡ ¡ “ …rela,onal ¡seman,cs ¡with ¡NoSQL ¡ scalability ” ¡ ¡ ¡ ¡ R ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Me ¡ ¡ ¡ ¡ ¡November ¡16 th . ¡ ¡ ¡ ¡ VoltDB 5 5

  6. ¡ ¡ ¡ ¡ ¡ ¡ ¡ Rela,onal ¡ ¡ NoSQL ¡ ¡ ¡ ¡ ¡ ACID ¡ Cloud ¡deployable ¡ Transac9ons ¡ Distributed ¡data ¡ SQL ¡ Scale-­‑out ¡ Schema ¡ Low ¡cost ¡profile ¡ VoltDB 6 6

  7. ¡ ¡ ¡ ¡ ¡ ¡ NewSQL ¡v. ¡Legacy ¡RDBMS ¡ ¡ ¡ ¡ ¡Tradeoffs ¡differ ¡by ¡vendor ¡ VoltDB 7 7

  8. Analysts. ¡Me. ¡Whoever. ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Maybe ¡famous ¡academics ¡have ¡more ¡ credibility? ¡ VoltDB 8 8

  9. ¡SIGMOD ¡2008 ¡ ¡ ¡ ¡ ¡ ¡ ¡ OLTP ¡Through ¡the ¡Looking ¡Glass, ¡and ¡ ¡ ¡ What ¡We ¡Found ¡There ¡ ¡ ¡ ¡ ¡ ¡ ¡Stavros ¡Harizopoulos ¡ ¡ ¡ ¡ ¡ ¡ ¡Daniel ¡J. ¡Abadi ¡ ¡ ¡Samuel ¡Madden ¡ ¡ ¡ ¡Michael ¡Stonebraker ¡ ¡ h"p://nms.csail.mit.edu/~stavros/pubs/OLTP_sigmod08.pdf ¡ ¡ VoltDB 9 9

  10. Brilliant! ¡ ¡ ¡ ¡ Computers ¡are ¡different ¡from ¡1970’s ¡ ¡ ¡ ¡ ¡-­‑ ¡Cheaper ¡ ¡ ¡ ¡-­‑ ¡Lots ¡of ¡main ¡memory ¡ ¡-­‑ ¡Mul9-­‑core ¡ ¡ Applica9ons ¡are ¡different ¡from ¡1970’s ¡ ¡-­‑ ¡Web ¡and ¡middleware: ¡not ¡data ¡entry ¡ ¡-­‑ ¡Latency ¡sensi9ve ¡“real ¡9me” ¡apps. ¡ ¡ VoltDB 10 10

  11. Overhead ¡in ¡the ¡Shore ¡DB ¡ ¡ ¡ ¡ ¡ ¡ ¡ Legacy ¡overhead ¡ ¡ ¡ ¡ Btrees ¡ Logging ¡ Locking ¡ Latching ¡ Buffer ¡Cache ¡ ¡ VoltDB 11 11

  12. TPC-­‑C ¡NewOrder ¡and ¡Payment ¡ Full ¡overhead ¡(in ¡memory, ¡no ¡log ¡fsync): ¡ ¡ ¡ ¡ ¡ 1,700 ¡TPS. ¡ ¡ ¡ Op9mal ¡(measured ¡via ¡prototype): ¡ ¡ 46,500 ¡TPS. ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡VoltDB: ¡1M ¡SQL ¡statements ¡/ ¡sec. ¡ ¡ ¡ ¡ ¡ ¡ ¡50k-­‑180k ¡TPS ¡per ¡node ¡on ¡current ¡hardware ¡ VoltDB 12 12

  13. Are ¡these ¡kids ¡on ¡to ¡something? ¡ Many ¡alterna,ve ¡architectures ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Memory ¡resident ¡databases ¡ Clustered ¡databases ¡ Log-­‑less ¡databases ¡ Single ¡threaded ¡databases ¡ Transac9on-­‑less ¡databases ¡ Eventually ¡consistent ¡systems ¡ ¡ VoltDB 13 13

  14. Analysts. ¡Me. ¡Academics. ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ What’s ¡the ¡rest ¡of ¡world ¡have ¡to ¡say ¡about ¡ ¡ ¡ NewSQL ¡and ¡New ¡age ¡OLTP? ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Why? ¡ VoltDB 14 14

  15. Why. ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Contemporary ¡workloads ¡exceed ¡the ¡ ¡ ¡ capability ¡of ¡legacy ¡database ¡architectures ¡ VoltDB 15 15

  16. Do ¡you ¡have ¡this ¡problem? ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ You ¡have ¡a ¡few ¡choices. ¡ ¡ ¡ VoltDB 16 16

  17. Do ¡you ¡have ¡this ¡problem? ¡ Choice ¡#1 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Ignore ¡it. ¡Maybe ¡it ¡just ¡isn’t ¡that ¡important. ¡ VoltDB 17 17

  18. Do ¡you ¡have ¡this ¡problem? ¡ Choice ¡#2 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Shard ¡a ¡legacy ¡system. ¡You ¡might ¡regret ¡ this ¡choice. ¡ ¡ ¡ ¡Manage ¡your ¡own ¡sharding. ¡ ¡ ¡Your ¡own ¡transac9ons. ¡ ¡ ¡Opera9onal ¡overhead ¡many ¡nodes. ¡ ¡ ¡Poor ¡per-­‑node ¡performance. ¡ ¡ VoltDB 18 18 ¡

  19. Do ¡you ¡have ¡this ¡problem? ¡ Choice ¡#3 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ NoSQL: ¡Free ¡coffee ¡cups, ¡laptop ¡s9ckers ¡ AND ¡it ¡shards ¡for ¡me! ¡ ¡ ¡ VoltDB 19 19

  20. Do ¡you ¡have ¡this ¡problem? ¡ Choice ¡#4 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ NewSQL: ¡I ¡like ¡new ¡things. ¡Sign ¡me ¡up. ¡ ¡ VoltDB 20 20

  21. Do ¡you ¡have ¡this ¡problem? ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ NewSQL ¡vs. ¡NoSQL: ¡ ¡what ¡are ¡the ¡ important ¡decision ¡factors. ¡ VoltDB 21 21

  22. NoSQL ¡strengths ¡ Raw ¡availability ¡vs. ¡consistency ¡and ¡(ACID) ¡ ¡ ¡ ¡ ¡ ¡ ¡ durability. ¡ ¡ ¡ ¡ Journal ¡oriented ¡or ¡commuta9ve ¡writes. ¡ ¡ Schema ¡flexibility ¡(con9nuously ¡deployed ¡ web ¡apps?) ¡ ¡ VoltDB 22 22

  23. NewSQL ¡strengths ¡ ACID ¡seman9cs. ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Especially ¡mul9-­‑key ¡ACID. ¡ ¡ Transac9ons ¡are ¡necessary. ¡ ¡ Rich ¡queries. ¡Non-­‑trivial ¡atomic ¡opera9ons. ¡ ¡ ¡ VoltDB 23 23 ¡

  24. Note ¡the ¡commonali9es ¡ Cloud ¡friendly. ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Scale-­‑out. ¡Horizontal ¡scaling. ¡ ¡ Low ¡cost ¡profile. ¡ ¡ ¡ ¡ VoltDB 24 24

  25. New ¡age ¡OLTP ¡use ¡cases ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Example ¡workloads ¡that ¡favor ¡the ¡NewSQL ¡ side ¡of ¡this ¡decision ¡matrix ¡ ¡ VoltDB 25 25

  26. Use ¡case: ¡Online ¡Gaming ¡ Game ¡state ¡tracking ¡is ¡oGen ¡transac9onal. ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ State ¡must ¡be ¡durable: ¡what ¡was ¡observed ¡ as ¡done ¡must ¡stay ¡done. ¡ ¡ “Sharding ¡games ¡detracts ¡from ¡the ¡ universality ¡and ¡player ¡experience.” ¡ VoltDB 26 26

  27. Use ¡case: ¡Adver9sing ¡Tech ¡ Near ¡real ¡9me ¡(not ¡batched) ¡A/B ¡tes9ng: ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Stream ¡of ¡campaign ¡interac9ons ¡(clicks). ¡ ¡ ¡ ¡ ¡Aggregated ¡mul9-­‑key ¡reads ¡of ¡results. ¡ ¡ ¡Real ¡9me ¡feedback ¡in ¡to ¡ad ¡composi9on. ¡ ¡ Ad ¡display ¡decision ¡making: ¡ ¡ ¡ ¡Input ¡demographics ¡& ¡run ¡business ¡logic. ¡ ¡ ¡ ¡Record ¡choices. ¡ ¡ VoltDB 27 27

  28. Use ¡case: ¡Financial ¡Trade ¡Apps ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Process ¡100k ¡to ¡1M+ ¡inputs ¡per ¡second: ¡ ¡ ¡ ¡Calculate ¡outstanding ¡posi9ons/risk. ¡ ¡ ¡ ¡Measure ¡poruolio ¡compliance ¡(alert). ¡ ¡ ¡ ¡Measure ¡performance ¡by ¡sub-­‑groups ¡ (report). ¡ ¡ ¡ VoltDB 28 28

  29. Real ¡9me ¡web ¡apps ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Durable ¡session ¡caches. ¡ ¡ ¡ Reduce ¡latency ¡of ¡feedback ¡to ¡web-­‑9er. ¡ Web ¡-­‑> ¡log ¡-­‑> ¡OLTP ¡analy9cs ¡-­‑> ¡Web ¡ ¡ ¡ ¡ VoltDB 29 29

  30. Telco ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Near ¡real ¡9me ¡account ¡status. ¡ ¡ ¡ ¡Prepaid ¡account ¡aler9ng. ¡ ¡ ¡ ¡Roaming ¡/ ¡data ¡plan ¡aler9ng. ¡ ¡ ¡ ¡Real ¡9me ¡account ¡balance ¡inquiries. ¡ ¡ ¡ ¡ ¡ VoltDB 30 30

  31. Network ¡monitoring ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Endpoint ¡monitoring ¡for ¡aEack ¡profiles. ¡ Monitoring ¡traffic ¡flows. ¡ Opera9onal ¡dashboarding. ¡ VoltDB 31 31

  32. Sensor ¡readings ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ De-­‑dupe ¡mul9ple ¡readings. ¡ Filter. ¡ Alert ¡on ¡loca9on. ¡ Cross ¡sensor ¡aggregates. ¡ Leaderboarding. ¡ VoltDB 32 32

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend