WASM for couchbase


I was thinking on offloading the work from Java to WASM module for couchbase written in rust or golang. My query is that the so or dll file that gets created from WASM, will I need to install couchbase c sdk alongside WASM for it to work?


There is a work-in-progress rust sdk for couchbase
There is a golang sdk for couchbase Start Using the Go SDK | Couchbase Docs. Follow their installation instructions.


it mostly depends on the WASM runtime you would be using to run your module. The common pattern right now is to have the runtime expose native functions.

Now if you want everything in the WASM module, Rust does rely on libcouchbase so you would need both. Our Golang SDK has no dependencies to libcouchbase so it’s ‘simpler’ in theory.