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.

Getting Started With an Engagement Database – Connect New York 2018

51 views

Published on

Speaker: Muneeb Master, Senior Solutions Engineer, Couchbase

If you’re already familiar with the what and why of Couchbase, now it's time to start practicing the how! Getting started with Couchbase is very easy for both new and seasoned developers as long as you have the right foundation.

In this session we’ll present all the information you need to start programming right away. We’ll cover topics such as data modeling with your JSON documents and migration patterns from other databases.

We’ll also share a comprehensive overview of the Couchbase SDK development environment, and various big data connectors, including Kafka, Spark, and Elasticsearch.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Getting Started With an Engagement Database – Connect New York 2018

  1. 1. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. COUCHBASE 101 Getting Started With an Engagement Database May 10, 2018 Muneeb Master | Solutions Engineer
  2. 2. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 2 What is an Engagement Database? A data platform built on powerful NoSQL technology enabling you to use data in an agile, responsive, and scalable manner so you can engage with employees, customers, and partners through exceptional digital experiences
  3. 3. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 3 Couchbase Data Platform Cloud native, highly available, fast, scalable, mobile, intelligent, and secure
  4. 4. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. INSTALL COUCHBASE QUICKLY1
  5. 5. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 5 Quickest: Docker Installation docker run -t --name db -p 8091-8094:8091-8094 -p 11210:11210 couchbase/server:5.5.0-beta
  6. 6. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 6 Quickest: Docker Installation docker run -t --name db -p 8091-8094:8091-8094 -p 11210:11210 couchbase/server:5.5.0-beta
  7. 7. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 7 Quickest: Docker Installation docker run -t --name db -p 8091-8094:8091-8094 -p 11210:11210 couchbase/server:5.5.0-beta
  8. 8. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 8 Quicker: Local Installation • Go to couchbase.com/downloads • Choose your operating system: Windows, Mac OSX, Ubuntu, Red Hat, Debian, etc. • Install
  9. 9. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 9 Quick: Cloud Installation • Deploy Couchbase in AWS, Microsoft Azure, or Google Cloud Platform
  10. 10. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. SET UP COUCHBASE QUICKLY2
  11. 11. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 11 Set Up: Initialize the Cluster
  12. 12. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 12 Set Up: Initialize the Cluster (6 steps) 1. Go to http://hostname:8091 in your web browser 2. Choose Setup New Cluster 3. Name the cluster 4. Set a password for the Administrator user 5. Please read and accept the terms and conditions 6. Choose Finish With Defaults
  13. 13. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. DATA GOES IN A BUCKET3
  14. 14. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 14 Documents Go in a Bucket
  15. 15. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 15 Create a Bucket in Couchbase
  16. 16. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 16 Create a Bucket in Couchbase (6 steps) 1. Go to http://hostname:8091 in your web browser 2. Choose Buckets in the menu 3. Press the Add Buckets button 4. Name the bucket 5. Choose the bucket type: couchbase vs ephemeral 6. Press Add Bucket
  17. 17. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 17 Or Start with a Sample Bucket • Travel sample • Beer sample • Gamesim sample
  18. 18. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. BUILD YOUR APPLICATION4
  19. 19. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 19 Official Client SDKs • Node.js • Java • C • Go • .NET • Python • PHP
  20. 20. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 20 Full-featured Access to Services
  21. 21. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 21 Connect to the Cluster (localhost)
  22. 22. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 22 Connect to the Cluster (multiple nodes)
  23. 23. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 23 Bucket Object
  24. 24. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 24 Bucket Operations: Insert a Document
  25. 25. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 25 Bucket Operations: Get a Document
  26. 26. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 26 Bucket Operations: N1QL
  27. 27. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 27 Bucket Operations: Full Text Search
  28. 28. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 28 Cluster Map Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved.
  29. 29. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 29 Cluster Map – 2 nodes added Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved.
  30. 30. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 30 Basic Operation Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. ACTIVE ACTIVE ACTIVE REPLICA REPLICA REPLICA Couchbase Server 1 Couchbase Server 2 Couchbase Server 3 SHARD 5 SHARD 2 SHARD 9 SHARD SHARD SHARD SHARD 4 SHARD 7 SHARD 8 SHARD SHARD SHARD SHARD 1 SHARD 3 SHARD 6 SHARD SHARD SHARD SHARD 4 SHARD 1 SHARD 8 SHARD SHARD SHARD SHARD 6 SHARD 3 SHARD 2 SHARD SHARD SHARD SHARD 7 SHARD 9 SHARD 5 SHARD SHARD SHARD Application has single logical connection to cluster (client object) • Data is automatically sharded resulting in even document data distribution across cluster • Each vbucket replicated 1, 2 or 3 times (“peer-to-peer” replication) • Docs are automatically hashed by the client to a shard’ • Cluster map provides location of which server a shard is on • Every read/write/update/delete goes to same node for a given key • Strongly consistent data access (“read your own writes”) • A single Couchbase node can achieve 100k’s ops/sec so no need to scale reads
  31. 31. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 31 Add nodes to cluster Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. ACTIVE ACTIVE ACTIVE REPLICA REPLICA REPLICA Couchbase Server 1 Couchbase Server 2 Couchbase Server 3 ACTIVE ACTIVE REPLICA REPLICA Couchbase Server 4 Couchbase Server 5 SHARD 5 SHARD 2 SHARD SHARD SHARD 4 SHARD SHARD SHARD 1 SHARD 3 SHARD SHARD SHARD 4 SHARD 1 SHARD 8 SHARD SHARD SHARD SHARD 6 SHARD 3 SHARD 2 SHARD SHARD SHARD SHARD 7 SHARD 9 SHARD 5 SHARD SHARD SHARD SHARD 7 SHARD SHARD 6 SHARD SHARD 8 SHARD 9 SHARD Application has single logical connection to cluster (client object)  Multiple nodes added or removed at once  One-click operation  Incremental movement of active and replica vbuckets and data  Client library updated via cluster map  Fully online operation, no downtime or loss of performance
  32. 32. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 32 Fail Over node Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. ACTIVE ACTIVE ACTIVE REPLICA REPLICA REPLICA Couchbase Server 1 Couchbase Server 2 Couchbase Server 3 ACTIVE ACTIVE REPLICA REPLICA Couchbase Server 4 Couchbase Server 5 SHARD 5 SHARD 2 SHARD SHARD SHARD 4 SHARD SHARD SHARD 1 SHARD 3 SHARD SHARD SHARD 4 SHARD 1 SHARD 8 SHARD SHARD SHARDSHARD 6 SHARD 2 SHARD SHARD SHARD SHARD 7 SHARD 9 SHARD 5 SHARD SHARD SHARD SHARD 7 SHARD SHARD 6 SHARDSHARD 8 SHARD 9 SHARD SHARD 3 SHARD 1 SHARD 3 SHARD Application has single logical connection to cluster (client object)  When a node goes down, some requests will fail  Failover is either automatic or manual  Client library is automatically updated via cluster map  Replicas not recreated to preserve stability  Best practice to replace node and rebalance
  33. 33. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 33 Official Big Data Connectors
  34. 34. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. DEPLOYMENT CONSIDERATIONS4
  35. 35. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 35 Single Node Architecture  Data Service – builds and maintains local view indexes  Query Engine – plans, coordinates, and executes queries against either Global or Local view indexes  Indexing Engine – builds and maintains Global Secondary Indexes  Full Text Search – builds and maintains full text indexes and analyzes and servers full text queries.  Cluster Manager – configuration, heartbeat, statistics, RESTful Management interface
  36. 36. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 36 Multidimensional Scaling Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. NODE 1 NODE 13 Cluster Manager Data Full Text Analytics Global Index Query Eventing
  37. 37. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 37 Multidimensional Scaling Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. NODE 1 NODE 13 Cluster Manager Data Full Text AnalyticsGlobal Index Query Eventing
  38. 38. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. EVENT HASHTAG: #CBConnect WRITE A COUCHBASE REVIEW: trustradius.com or Gartner.com/reviews VOTE FOR COUCHBASE TODAY! DBTA Readers’ Choice Awards: dbta.com/ReadersChoice/2018 Voting closes tomorrow!

×