Leverage Search, Eventing, and Analytics Services in Couchbase

Paths

Leverage Search, Eventing, and Analytics Services in Couchbase

Author: Kishan Iyer

Data moves fast, and to be responsive a data application needs the proper supporting architecture. The Couchbase Eventing framework operates on changes to data in real-time. This... Read more

What You Will Learn

  • Explain Couchbase Eventing
  • Listen and respond to events in Couchbase
  • Describe functions in Couchbase
  • Deploy and undeploy functions in Couchbase

Pre-requisites

  • Basic Couchbase development
  • JSON
  • Javascript
  • Document databases

Beginner

Learn to create and configure Couchbase functions.

Create a Couchbase Function

by Kishan Iyer

Feb 20, 2020 / 2h 31m

2h 31m

Start Course
Description

In this course, we explore the Couchbase eventing service, which generates events for any modification performed on a document or the addition or removal of data in a bucket. We begin by delving into what the eventing service is, and how Couchbase eventing functions can be defined to respond to mutations of data in a bucket. This involves the use of JavaScript to define event handler functions.

Next, we cover the features of the variation of JavaScript used in Couchbase functions and contrast it with regular JavaScript.

We then look at potential scenarios where Couchbase functions can be used - from the automatic enrichment of document data loaded into a bucket to responding to the removal of a document by invoking cascading deletes of all related data.

Finally, we explore the concept of user-defined functions in Couchbase which can be invoked from N1QL queries. This includes the definition of such functions using N1QL query expressions as well as within an external JavaScript source file.

Once you finish this course, you will have the know-how to respond to any modifications, additions or removal of data in your buckets using Couchbase functions.

Table of contents
  1. Course Overview
  2. Getting Started with Couchbase Functions
  3. Exploring Features of Couchbase Functions
  4. Handling Data Updates and Deletes
  5. Creating and Invoking User-defined Functions

Configure Functions in Couchbase

by Kishan Iyer

May 7, 2020 / 2h 6m

2h 6m

Start Course
Description

The Couchbase eventing service allows us to respond to changes made to data through the medium of eventing functions. Like any application, these functions need to be configured correctly for users to get the most out of them.

In this course, Configure Functions in Couchbase, you’ll gain the ability to a simple function and explore a number of the function properties which can alter its behavior.

  • First, you’ll explore the log configurations which are available for functions.
  • Next, you’ll discover options for developing the code for eventing functions.
  • Finally, you’ll learn how to a crucial feature available in the eventing service.
When you’re finished with this course, you’ll have the skills and knowledge of configuration options needed to schedule functions for execution using timers.

Table of contents
  1. Course Overview
  2. Creating Functions to Handle Events
  3. Detecting and Handling Errors in Functions
  4. Creating Timer Functions

Intermediate

Debug and manage Couchbase functions.

Debug and Monitor Functions in Couchbase

by Kishan Iyer

May 6, 2020 / 2h 20m

2h 20m

Start Course
Description

The Couchbase eventing service allows us to respond to changes made to data through the medium of eventing functions. Like any application, these functions need to be developed and then maintained until they have served their purpose. In this course, Debug and Monitor Functions in Couchbase, you'll dive into the role of debugging in function development and the various options available to monitor functions throughout their lives. First, you'll begin by introducing you to the Couchbase eventing service and then create two simple eventing functions - one with an OnUpdate handler and another with an OnDelete handler. Next, You'll then explore how bugs in the function code can be identified using the built-in Couchbase debugger. This will cover the steps involved in activating the debugger, and use of the standard debug tools such as breakpoints and watch expressions. We also take a look at exception handling with try-catch blocks. Finally, You'll move on to the logging options available in Couchbase for the eventing service. This includes the application and system logs for functions, but also the audit feature which allows additional activities to be recorded. Furthermore, we use the explicit logging feature to generate logs and statistics to share with other teams - this includes the option to redact sensitive data from the log files. Once you have finished this course, you will be well-versed in the options available to manage an eventing function in Couchbase throughout its life - from development to monitoring and maintenance.

Table of contents
  1. Course Overview
  2. Getting Started with the Couchbase Eventing Service
  3. Debugging and Monitoring Functions
  4. Managing Functions in Couchbase

Manage Functions in Couchbase

by Kishan Iyer

May 6, 2020 / 2h 17m

2h 17m

Start Course
Description

The Couchbase eventing service allows us to respond to changes made to data through the medium of eventing functions. Like any application, these functions need to be developed and then maintained until they have served their purpose.

This course, Manage Functions in Couchbase, explores the various phases and transitions in a function’s lifecycle, the use of the debugger during its development, and porting them between environments using the export and import features.

  • First, you will learn how to create a simple eventing function, which processes mutations in a source bucket.
  • You will then invoke a variety of transitions on the function, and look at how this affects the ability of the function to process events, performing these operations using the Couchbase UI, and how these can be done programmatically using the Couchbase CLI and the REST API.
  • You will then move on to monitoring functions using both the application logs, which are unique to each function and the system log maintained by the Couchbase eventing service. There are also labs on using the built-in Couchbase debugger to get to the heart of issues in the function code.
  • Finally, you will explore the use of the export/import feature for eventing functions which allow us to port them from one environment to another and to record their history in a version control system.
At the end of this course, you will be well-versed with the phases in the life of an eventing function in Couchbase - from their development and deployment, to their maintenance and porting in different environments.

Table of contents
  1. Course Overview
  2. Deploying Couchbase Functions
  3. Managing the Couchbase Function Lifecycle
  4. Developing Couchbase Functions

Advanced

Implement full-text search functionality and run analytics queries in Couchbase.

Implement Full-text Search in Couchbase

by Kishan Iyer

Jul 7, 2020 / 2h 48m

2h 48m

Start Course
Description

When using Couchbase to store documents containing text data, you would like the ability to search within those documents with natural language capabilities. This is precisely what the Couchbase Full Text Service has to offer. In this course, Implement Full-text Search in Couchbase, you will delve into how full-text indexes work in Couchbase and how these indexes can be created, used and configured.

First, you will begin by exploring how full-text searches in general rank documents for each query which is sent to them. This includes concepts such as term frequency and inverse document frequency. Next, you will get hands-on and build full-text indexes in a Couchbase cluster and submit a variety of queries to them.

Then, you will move on to how full-text searches are likely to be performed from an application - by submitting search requests using N1QL queries and the Couchbase REST API.

Finally, you will explore the use of analyzers and filters to only include specific words and terms within a full-text index.

When you are finished with this course, you will be well-versed in the options available to build, use, and configure full-text indexes in Couchbase. This will give you the skills needed to speed up text-based searches against the data in your Couchbase cluster, and deliver better search results to your end users.

Table of contents
  1. Course Overview
  2. Getting Started with Full-text Search
  3. Searching with Full-text Indexes and Query Strings
  4. Performing Full-text Search Using REST APIs and N1QL
  5. Configuring Full-text Search Indexes
  6. Using Custom Analyzers and Filters in Full-text Search Indexes

Execute Analytics Queries in Couchbase

by Kishan Iyer

Mar 24, 2020 / 2h 5m

2h 5m

Start Course
Description

As it gets easier and easier to gather data, performing analytics operations to understand what it conveys and make the right business decisions is becoming more and more important. Which is why Couchbase includes an analytics service to simplify the task of data analysis.

In this course, we delve into the implementation of analytics as a separate service in Couchbase so that it does not interfere with operations on bucket data. We explore the steps needed to set up data so that they can be used by analytics, and then focus on running analytics queries.

We then turn our attention towards the query language for Couchbase analytics which is known as N1QL for Analytics. We look at how this is similar to, yet subtly different from regular N1QL and look into various operations which can be performed with this language.

We explore a number of clauses which our analytics queries can include, the operators which we can make use of as well as the built-in functions which can be invoked to operate on document data.

Finally, we cover the use of window functions to perform analytics operations over partitions of data.

Once you have finished this course, you will be well equipped to make sense of large volumes of document data using the Couchbase analytics service. This will help you spot trends in the underlying data, prepare the data for visualizations, and ultimately will help your organization make the right business decisions based on an analytical and data-driven approach.

Table of contents
  1. Course Overview
  2. Getting Started with N1QL for Analytics
  3. Exploring Expressions and Aggregations in Analytics Queries
  4. Invoking Analytics Functions for Primitive and Composite Data Types
  5. Performing Advanced Operations Using Built-in Functions
Offer Code *
Email * First name * Last name *
Company
Title
Phone
Country *

* Required field

Opt in for the latest promotions and events. You may unsubscribe at any time. Privacy Policy

By providing my phone number to Pluralsight and toggling this feature on, I agree and acknowledge that Pluralsight may use that number to contact me for marketing purposes, including using autodialed or pre-recorded calls and text messages. I understand that consent is not required as a condition of purchase from Pluralsight.

By activating this benefit, you agree to abide by Pluralsight's terms of use and privacy policy.

I agree, activate benefit