Skip to main content

Posts

Showing posts from October, 2018

Using N1QL with Couchbase Eventing Functions.

Now, this is not the end. It is not even the beginning of the end.  But it is, perhaps, the end of the beginning. — Winston Churchill Updating data is usually not the end, but usually a progress of a workflow. Shipping follows ordering; inventory update follows shipping; adjusting credit follows returning;  The next step in the process is required to act to keep the workflow going. The workflows can be simple with few steps or complex with hundreds of steps.   Business Process Management  (BPM) is an industry by itself. Couchbase 5.5 introduced Evening service. Developers can write a Javascript function to execute upon a change to the data. We refer inserts, Updates, Merges, and Deletions together as  mutations.  Multiple specific use cases  have been documented  for developing these eventing functions. JSON  data model in Couchbase came from  JavaScript .   N1QL  is SQL for JSON. The eventing functions are written in Ja...