Company
Date Published
Author
Trond Norbye, Senior Developer, Couchbase
Word count
1728
Language
English
Hacker News points
None

Summary

The author has released a new version of Couchbase 1.8 along with smart clients for various programming languages. This release is significant for the author as it now supports the C language through libcouchbase, which was initially created to facilitate testing of server components in C. The author highlights the importance of understanding how libcouchbase handles multithreading, as it doesn't use locking to protect its internal data structures but requires users to either lock access or operate on their own instance. The author presents a demo program that monitors a directory and uploads JSON files into a Couchbase cluster, showcasing the capabilities of libcouchbase. The program uses various callbacks, including an error handler, storage callback, and timings callback, to handle operations such as storing data in Couchbase and dumping timing statistics. The example demonstrates how easy it is to use libcouchbase for communication with a Couchbase cluster, and the author promises that more functionality will be added through other clients.