spin icon indicating copy to clipboard operation
spin copied to clipboard

Proposal: implement the full `wasi:keyvalue` spec

Open Mossaka opened this issue 1 year ago • 6 comments

As the champion of the wasi:keyvalue, a WASI Phase 2 proposal, I am seeking the Spin support in implementing the full specification of the wasi:keyvalue proposal. This would allow us to gather insightful feedback on the design and help advance the proposal to the next stage.

Spin is an early adopter of wasi:keyvalue by implementing the wasi:keyvalue/store interface. Building on this, I propose that Spin extends its support to include the additional interfaces, specifically atomic and batch operations.

  • The atomic interface offers atomic operations such as increment and cas, which would make Spin applications that require atomic operations to avoid race conditions possible.
  • The batch interface enables applications to operate on multiple keys at once, improving efficiency.

Mossaka avatar Oct 01 '24 06:10 Mossaka

Question relevant to Spin: https://github.com/WebAssembly/wasi-keyvalue/issues/48

lann avatar Oct 01 '24 13:10 lann

See also recent discussion in https://github.com/fermyon/spin/issues/2447

lann avatar Oct 01 '24 13:10 lann

answered your question over wasi:keyvalue repo

Mossaka avatar Oct 01 '24 17:10 Mossaka

I believe this is what @devigned has kindly put his hand up for!

itowlson avatar Oct 01 '24 20:10 itowlson

I believe this is what @devigned has kindly put his hand up for!

That is correct.

devigned avatar Oct 01 '24 20:10 devigned

chatted with @devigned who is working on implementation this week. just an FYI

michelleN avatar Oct 17 '24 22:10 michelleN

Are we good to close this now that https://github.com/fermyon/spin/pull/2895 is in?

vdice avatar Nov 04 '24 17:11 vdice

Are we good to close this now that #2895 is in?

I believe so for 0.2.0-draft2.

devigned avatar Nov 04 '24 17:11 devigned

Yeah we can open new issues when the draft changes.

Thank you again for your work on this @devigned.

itowlson avatar Nov 04 '24 19:11 itowlson