Workshop: Implementing a Wasm Native Database API with Couchbase – Laurent Doguin, Couchbase & Victor Adossi, Cosmonic
In this talk, we will explore the journey of integrating WebAssembly(WASM) support for a database, specifically Couchbase. Aimed at WASM enthusiasts and developers, this session delves into the design, implementation, and performance considerations of adding WASM Interface Types (WIT) to support data operations, their parameters, errors and return types. We will discuss the process of deciding on the right interface design, implementing providers for CNCF wasmCloud, and ensuring optimal performance for data operations. Our implementation features three key interfaces: WASI-Keyvalue, Couchbase Subdoc, and Couchbase Query. We will share insights on the challenges and solutions encountered during this integration, along with best practices for demonstrating and testing these capabilities. Attendees will gain a comprehensive understanding of how to leverage WASM to manage databases in a serverless environment, transforming how data is managed and accessed.