Create a Couchbase Function
Offered By: Pluralsight
Course Description
Overview
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.
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.
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.
Syllabus
- Course Overview 1min
- Getting Started with Couchbase Functions 51mins
- Exploring Features of Couchbase Functions 46mins
- Handling Data Updates and Deletes 27mins
- Creating and Invoking User-defined Functions 25mins
Taught by
Kishan Iyer
Related Courses
Learn Javascript - 21 Essential Array MethodsCoursera Project Network via Coursera 3D Graphics for Web Developers
Pompeu Fabra University via FutureLearn Access WebView in an Android Studio Project
Coursera Project Network via Coursera Advanced React
Meta via Coursera Building Modern Nodejs Applications on AWS
Amazon Web Services via edX