Welcome to our monthly virtual Meetup! In this event, we will talk about the Eventing service in Couchbase.
Couchbase Eventing enables user-defined business logic (lambdas) to be triggered in real time on the server when application interactions create changes in data.
With simple JavaScript functions integrated into the core server comes great power. The Eventing service is a must have tool in your big data arsenal allowing small scripts to overcome hard to solve problems.
Using the Couchbase Eventing Service you can:
Manage data-driven business logic across business-critical applications in a timely manner, thereby increasing your customer engagement.
Handle inconsistencies in business logic while working with multiple client applications across domains.
Design new data products by leveraging lower technical barriers in the Eventing Service.
-Develop a reliable infrastructure that can execute your business logic in a rapidly changing data platform.
Scale your throughput without making changes to your data configuration and infrastructure.
Create specialized point tools to clean, enhance, or transform your data.
Maximize your return on investment by minimizing your TCO.
In this talk we will create and execute several Eventing Functions to solve some typical use cases to showcase just how powerful this low code environment can be.
Note: At around 46:05, there is a slight correction in what was said.
The Eventing Function was not storing the most recent N mutations rather it was designed to store the last N highest notification numbers. I just forgot the functionality it was working as designed.
The key “nu:#:#” in this example contains two numbers. The first # is an increasing notification number; the second # is the user ID to group things by and keep the three highest notification numbers.