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.

Do More With Change – Introducing Couchbase Eventing – Connect New York 2018

98 views

Published on

Speakers: Venkat Subramanian, Product Manager, Couchbase

Learn how you can engage with your customers in near-real time by leveraging changes as they happen to the data stored in Couchbase. Couchbase Functions offers a platform that allows you to concentrate only on business logic without worrying about configuration or infrastructure. By lowering the barriers to experiment with data, Couchbase Functions offers developers a fast and pleasant experience, which in turn lets business be much more agile.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Do More With Change – Introducing Couchbase Eventing – Connect New York 2018

  1. 1. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. COUCHBASE FUNCTIONS Do “More” With Change 10-May-2018 , New York Venkat Subramanian | Product Manager venkat@couchbase,com
  2. 2. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 2 “99 Ways to Tell a Story: Exercises in Style” – Matt Madden
  3. 3. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 3 “99 Ways to Tell a Story: Exercises in Style” – Matt Madden
  4. 4. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 4 “99 Ways to Tell a Story: Exercises in Style” – Matt Madden
  5. 5. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 5 “99 Ways to Tell a Story: Exercises in Style” – Matt Madden
  6. 6. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 6 Couchbase Data Platform
  7. 7. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 7 Your Strategic Goals … 2 1 3 Better Customer Experience by Real-Time processing of Events Respond to Business Changes quickly Dynamic Flexibility - Simpler Processing & Deployment Models 4 Launch Data Products - Lowers Barriers to Experiment with Data 5 Lower TCO & Maximize ROI - Elastic Scalability
  8. 8. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 8 Your Technical Needs … 2 1 3 Notifications Before Expiry Threshold Based Monitoring & Alerting Propagate Changes to Other Systems 4 Enrich Content in Near-Real Time 5 Trigger a routine on a Document at Specified Intervals 6 Cascade Deletes Workload • Asynchronous • Low-Latency • Easy to Parallelize • High Dev Velocity • No Local State • Inconsistent
  9. 9. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 9 Processing Model # 1 Using a Message Queue Couchbase Message Queue / Bus APP-1 APP-2 APP-3 Cause the ChangePropagate the Change - Additional Layer - Dual-Write Problem - Handling Failure - Manageability - Data governance - Higher Costs / TCO
  10. 10. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 10 Processing Model # 2 Polling Couchbase APP-1 APP-2 APP-3 Cause the Change Poll for the Change Scoring App - Inefficient usage of System resources - Not Reactive - Code Duplication - Difficult to Scale Loyalty App
  11. 11. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. FOCUS ON BUSINESS LOGIC NOT CONFIGURATION OR INFRASTRUCTURE
  12. 12. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 12 “Productizing” Database Change Protocol Anything From Anywhere DCP Data Replicas XDCR GSI Views FTS Connectors Eventing
  13. 13. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 13 Couchbase Eventing Service 2 1 3 Based on Event-Condition-Action model Stateless Compute for Low Latency Workloads Easy-to-Use, Easy-to-Manage, Highly Performant Service 4 Manage Data Operations in Real-Time than at Query Time 5 Utilizes the latest trends in compute (multi-core CPUs)
  14. 14. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 14 Couchbase Functions : Do “MORE” with a “CHANGE” Functions OnUpdate OnDelete Create or Update Delete OnUpdate
  15. 15. 15 a la post- action- Trigger? https://flic.kr/p/bnv2Ln
  16. 16. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 16 MDS : Workload Isolation & Independent Scalability NODE 1 NODE 12 Cluster Manager Data FTS Eventing GSIQuery a Multi-Dimensional-Scaling Enabled Service
  17. 17. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. DEMO#
  18. 18. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 18 Key-Features 2 1 3 Language Constructs Restartability Semantics Diagnosability Using Application-specific Log Files 4 V8 Optimizations for Performance-at-Scale 5 Real-Time Online Debugger
  19. 19. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 19 JS Optimization for Nested Streaming Iterators var products = SELECT prodname FROM catalog WHERE type = $var_type; for (var item of products) // 10Million Items { var amounts = SELECT amount FROM orders WHERE product_name = $item.prodname; for (var amt of amounts) // 5000 Rows { // some code } }
  20. 20. 20 Ordering https://flic.kr/p/bnv2Ln
  21. 21. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 21 Processing Semantics - Worker Assignments fn-email 4 workers fn-score 3 workers vBucket-0 vBucket-1 vBucket-341 vBucket-342 vBucket-343 vBucket-681 vBucket-682 vBucket-683 vBucket-1023 vBucket-2 vBucket-344 vBucket-684 vb 0-1024 vb 0-255 vb 256-511 vb 512-767 vb 768-1023 vb 0-340 vb 341-681 vb 682-1023 3 Data Nodes 1 Eventing Node *** vbucket assignment to nodes are not strictly in-order
  22. 22. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 22 Elastic Scalability fn-email 4 workers fn-score 3 workers vb 0-1024 vb 0-255 vb 256-511 vb 512-767 vb 768-1023 vb 0-340 vb 341-681 vb 682-1023 1 Eventing Node fn-email 4 workers fn-score 3 workers vb 0-511 vb 0-127 vb 128-255 vb 256-383 vb 384-511 vb 0-169 vb 170-339 vb 340-511 fn-email 4 workers fn-score 3 workers vb 512-1023 vb 512-639 vb 640-767 vb 768-895 vb 896-1023 vb 512-681 vb 682-852 vb 853-1023 2 Eventing Nodes
  23. 23. WHAT PROBLEMS DO YOU NEED TO SOLVE? Reducing infrastructure & operations costs Faster innovation & time to market Improving customer experience & engagement How to deliver a Business Outcome by solving a Technology Problem?
  24. 24. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 24 Initial Reactions Architecture has needed this from day one We needed this Yesterday We are trying to directly consume DCP, but what you have built is 5000x better and advanced Very timely, innovative, very relevant This is a Very Powerful Platform. The more I use the Eventing system the more use cases I find for it, so I’ve actually found an additional 2-
  25. 25. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 25
  26. 26. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. “A SUCCESSFUL TOOL IS ONE THAT WAS USED TO DO SOMETHING UNDREAMED OF BY ITS AUTHOR.” - STEPHEN JOHNSON
  27. 27. 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!
  28. 28. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 28 Couchbase Data Platform Mobile & IoT Eventing New!! KV Query Search Elastic Scale Architecture Memory-first Architecture Unified Programming Infrastructure - Cloud & Containers CrossStackSecurity SQL&BigData Integrations Analytics Preview Core Database Engine
  29. 29. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 29 Customer Use-cases Across Industries Retail Travel Gaming Fin Tech Law, Defense & Security Digital Media Digital Health Communications Instant Loyalty Price& StockAlerts WishLists PriceAlerts Promotions CallMonitoring &Alerts N/W Performance Leaderboard BetAnalytics Statistics PriceChanges EventPropagation RiskModelling MonitoringVitals A/B RiskAssessments TransientEvent Detection RealTime Compliance Information Dissemination NewsAlerts ContentExpiration Enrichment Supply Chain & Logistics StockReplenishments
  30. 30. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2018. All rights reserved. 30 For The Win! Reducing Infrastructural & Operational Costs Better Customer Experience Faster Innovation & Time To Market • Faster and Pleasant Development Cycles • Respond to Changes quickly leading to better Agility • Lower the barriers to experiment with data; create engaging data products quickly • Infuse Technical Capabilities into Operations • Simpler Deployment Models • Layer & Logic Consolidation • Integrated; not bundled • Avoid Data Leakage, leading to better Data Governance • Performance at Scale • Near Real Time Processing of Customer Interactions • Simplified data enrichment workflows leading to personalized customer experiences • Easier identification of needle in the haystack

×