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

The State of NoSQL in 2021

The State of NoSQL in 2021

deniswsrosa

August 26, 2021
Tweet

More Decks by deniswsrosa

Other Decks in Programming

Transcript

  1. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. Denis Rosa | Developer Advocate The State of NoSQL in 2021
  2. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 2 • +18 of experience • NoSQL & Java specialist • OSS contributor Denis Rosa deniswsrosa @deniswsrosa [email protected]
  3. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 3 Aren’t NoSQL Databases supposed to replace relational?
  4. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 8 Can we build a Burj Khalifa with nails?
  5. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 9 Jesse Ramsden created the first screw-cutting lathe circa 1770
  6. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 10 Nails are not “Legacy” Using screws for everything is suboptimal
  7. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 11 We use booth
  8. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 13 JOINS are SLOW ?
  9. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 14 https://www.brianlikespostgres.com/cost-of-a-join.html
  10. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 15 Cross-Node Join Server 1 Server 2 User Product Latency ~0.150ms | Bandwidth up to 25Gbps on AWS https://aws.amazon.com/premiumsupport/knowledge-center/network-throughput-benchmark-linux-ec2/ https://www.infoq.com/news/2018/02/aws-increase-bandwidth-ec2/
  11. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 18 NewSQL? Distributed Relational
  12. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 20 id name 1 Yuri id Name 1 User Cross-Node Join Server 1 Server 2 User Role
  13. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 21 NewSQL will spend extra resources to improve sharding or to move data around
  14. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 22 Relational / NewSQL == ACID ? NoSQL == BASE ?
  15. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 24 Databases are like Airplane Engines ( Both need a few years to be mature )
  16. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 25 • Integrations with dozens of tools; • Higher failure tolerance; • Tested in critical scenarios; • Medium and Long-Term return; • Professional Support; • Good documentation; • ACID • Cost-Based Optimizer;
  17. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 26 Relational Document
  18. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 27 https://jepsen.io/consistency
  19. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 28 https://jepsen.io/consistency
  20. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 29 Read Committed
  21. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 30 SDK Tx (No central Coordinator / No SPOF) N1QL Tx
  22. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 31 Has support for Multi Version Concurrency Control (MVCC) Does NOT support Rollbacks
  23. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 32 https://jepsen.io/consistency
  24. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 33 Has support for Multi Version Concurrency Control (MVCC) Does NOT support Rollbacks https://redis.com/blog/you-dont-need-transaction-rollbacks-in-redis/
  25. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 36 Pay attention to the defaults They tell a lot about the database design
  26. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 37 Do Not treat the database as a Blackbox
  27. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 39 Some of them are not good ( Not gonna lie )
  28. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 41 https://www.alliedmarketresearch.com/NoSQL-market 2018 - $2,410 M 2026 - $22,087 M
  29. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 45 NoSQL - Q1 2019 https://reprints.forrester.com/#/assets/2/363/ES136481/reports
  30. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 46 The market strategy of a few Cloud Providers forced database vendors to change their licenses
  31. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 47 SSPL RSAL https://www.scylladb.com/2018/10/22/the-dark-side-of-mongodbs-new-license/ ELv2
  32. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 48 BSL BSL BSL
  33. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 49 (at least not for N period of time)
  34. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 50 How to Manage a NoSQL?
  35. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 51 + • Couchbase Cloud • Elastic Cloud / AWS • Atlas / AWS • Datastax Managed Svc / AWS • Neo4j Aura • …
  36. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 52 https://www.youtube.com/watch?v=PLAwcExtLVw
  37. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 54 It still is hard to migrate from one NoSQL to another
  38. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 57 Others are coming soon…
  39. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. 58 SELECT fname, age, age/7 AS age_dog_years FROM tutorial WHERE fname = 'Dave' SELECT relation, COUNT(*) AS count FROM tutorial GROUP BY relation HAVING COUNT(*) > 1 INSERT INTO tutorial (KEY, VALUE) VALUES ("baldwin", { "name":"Alex Baldwin, "type":"contact”}) DELETE FROM tutorial t USE KEYS "baldwin" RETURNING t
  40. Confidential and Proprietary. Do not distribute without Couchbase consent. ©

    Couchbase 2021. All rights reserved. THANK YOU @deniswsrosa deniswsrosa [email protected]