Skip to content

feat: NATS blobstore#153

Merged
lxfontes merged 3 commits intomainfrom
lxfontes/blobstore-nats
Nov 13, 2025
Merged

feat: NATS blobstore#153
lxfontes merged 3 commits intomainfrom
lxfontes/blobstore-nats

Conversation

@lxfontes
Copy link
Member

Configuration

Uses the data_nats host connection.

buckets: name1,name2,name3
Which buckets this workload has access to.

read_only: true|false (default: false)
Blocks create, clear, delete on Containers.
Blocks any write or delete operation in Objects.

Implementation details

Write Path

We buffer all bytes coming from WASM into a temporary file, executing the actual put operation during Output Stream finish().

Using a temporary file instead of MemoryStream to remove file upload limits & also avoid increasing host memory usage, as the memory allocated by the plugin is not accounted towards the component memory ( not tied to wasmtime store ).

Read Path

Bytes are piped directly when possible.

Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
@lxfontes lxfontes marked this pull request as ready for review November 13, 2025 19:29
@lxfontes lxfontes requested a review from a team as a code owner November 13, 2025 19:29
@lxfontes lxfontes added this pull request to the merge queue Nov 13, 2025
Merged via the queue into main with commit 138d703 Nov 13, 2025
9 checks passed
@lxfontes lxfontes deleted the lxfontes/blobstore-nats branch November 13, 2025 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants