Company
Date Published
Author
Matthew Groves
Word count
1509
Language
English
Hacker News points
None

Summary

The new Eventing service in Couchbase Server allows developers to write JavaScript functions that respond to documents getting created, updated, or deleted, and can execute a curl function to make requests to HTTP endpoints. A proof of concept example was created using Functions (part of Eventing) to send a text message when a customer's ticket is scanned at the gate. The example uses Twilio for sending text messages and demonstrates how to create a concierge service that assigns VIP customers to specific concierges and notifies them via text message when a new ticket scan document is created or modified. The function reads documents from a bucket, gets the Twilio credentials, constructs a message, and sends it using the curl construct, which is still in development and intended for development purposes only. The service can be used to create a system that scans tickets at the gate and notifies VIP customers' concierges via text message.