Company
Date Published
Author
Venkat Subramanian, Product Manager
Word count
904
Language
English
Hacker News points
None

Summary

Couchbase Functions are being introduced in Couchbase Server 5.5 release under the Couchbase Eventing Service, allowing user-defined business logic to be triggered in real-time on the server when data changes as a result of interactions on web and edge applications. When compute resides closer to data, it is essential to understand how compute behaves when the data changes, which can lead to variations in processing order due to de-duplication and other mechanisms. The Eventing Service processes mutations in a way that may not preserve the original order of operations, as demonstrated by an example where deleting and then re-deploying a function results in a different ordering than the initial insertion order. This behavior is due to the coalescing of successive operations into a single event, which can lead to missing intermediate changes and variations in processing order.