Company
Date Published
Author
Hod Greeley, Developer Advocate, Couchbase
Word count
1167
Language
English
Hacker News points
None

Summary

The text discusses the application of the Couchbase Eventing Service as demonstrated in the Couchbase Silicon Valley 2017 technical keynote. It describes how a mobile phone with NFC reads temperatures from a battery-less patch, storing the data as a FHIR Observation Resource in JSON format using Couchbase Lite, which then syncs with a Couchbase Server cluster via Sync Gateway. The challenge of updating a web client dashboard in near real-time with relevant patient information is addressed using Couchbase Functions, which listen for database changes and allow for the efficient extraction and transfer of necessary data without excessive infrastructure complexity. By implementing reactive code through JavaScript callbacks, the Eventing Service streamlines data processing and transfer, offering scalability and efficiency. The integration of server-sent events (SSE) over web sockets is highlighted for its lightweight and effective nature, with the overall approach demonstrating the ease of deploying business logic alongside data using Couchbase Functions. The text concludes by encouraging readers to explore additional resources and support available for Couchbase.