Create a Couchbase Function

Couchbase functions provide an interface for developers to respond to the addition, modification or removal of document data from a bucket. This course covers their use cases, features, limitations and how they can be defined using JavaScript.
Course info
Level
Beginner
Updated
Feb 20, 2020
Duration
2h 31m
Table of contents
Description
Course info
Level
Beginner
Updated
Feb 20, 2020
Duration
2h 31m
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.

About the author
About the author

An engineer at heart, I am drawn to any interesting technical topic. Big Data, ML and Cloud are presently my topics of interest.

More from the author
Design Data Models for Couchbase
Beginner
2h 7m
Sep 29, 2020
Recognize the Need for Document Databases
Beginner
1h 40m
Sep 18, 2020
Integrate Couchbase into Your Data Environment
Intermediate
2h 48m
Sep 15, 2020
More courses by Kishan Iyer
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
[Autogenerated] Hi and welcome to this course. Create a couch based function. My name is Keisha. Year on, I will be your instructor for the fourth. A little about my fell first. I have a master's degree in computer time from Columbia University. On have previously worked in companies such as Dodger Band on WebMD and New York. I presently work for Loony Gone, a studio for high quality video content. In this growth, we explore the couch with eventing service with generates event for any modification performed on a document or the addition or removal off data in a bucket. We begin by delving into what the eventing service is on. How functions can be defined to respond to mutations off data in a bucket. Different balls the youth off JavaScript to write Event handler functions next, recover the features off the variation of JavaScript, youth within Couch with functions and contrasted with regular job script. We then look at potential scenarios where couch with functions can be used from the automatic enrichment off data loaded into a bucket. Responding to the removal of a document by invoking cascading deletes off all related data. Finally, we explored the concept off you either define functions in couch base but can be invoked from nickel queries. This includes the definition off that function using nickel query expressions, as well as with an External Java script for files. 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 couch based functions.