wasmio
S3 Backed Server for Wasmer
▄ ▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄▄ ▄▄▄▄▄▄▄
█ █ ▄ █ █ █ █ █▄█ █ █ █
█ ██ ██ █ ▄ █ ▄▄▄▄▄█ █ █ ▄ █
█ █ █▄█ █ █▄▄▄▄▄█ █ █ █ █ █
█ █ █▄▄▄▄▄ █ █ █ █▄█ █
█ ▄ █ ▄ █▄▄▄▄▄█ █ ██▄██ █ █ █
█▄▄█ █▄▄█▄█ █▄▄█▄▄▄▄▄▄▄█▄█ █▄█▄▄▄█▄▄▄▄▄▄▄█
Idea
Wasmer allow file storage with mounted volumes, with this kind of backend we'll be able to implement applications based on a Storage.
We'll implement a S3 Server backed by a Volume from Wasmer.
Development
You'll need to install wasmer and also cargo-wasix.
Side note if you install
wasmeron a Mac OS you'll need to add this to the.bash_profileas it seemswasmeradd it in the.bashrcinstead.
[ &&
To run the solution locally, you can use this:
Performance
Right now, we are using a simple JSON to store the data, which is not efficient for files based storage. This is just an experiment on the whole storage and wasmer.
To have better performance, the storage layer should be reworked to better use Files APIs (with Seek for instance, a better format to store data, we don't need JSON).
TODO
- API Endpoings for creating, listing, deleting objects
- Creation date / hash available
- Deploy
- e2e tests
Benchmarks
(Integrate bencher here.)
E2E Tests
(Integrate bencher here.)