Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wasmedge/wasmedge-db-examples

Lightweight database clients in the WasmEdge Runtime
https://github.com/wasmedge/wasmedge-db-examples

async database rust

Last synced: 2 days ago
JSON representation

Lightweight database clients in the WasmEdge Runtime

Awesome Lists containing this project

README

        

# Database client examples for WasmEdge

Based on WasmEdge's [non-blocking network socket API](https://wasmedge.org/book/en/dev/rust/networking-nonblocking.html) and a Tokio-like [async runtime](https://github.com/WasmEdge/tokio_wasi),
we are able to port popular database drivers and clients for the WasmEdge Runtime. This repo is a collection of examples accessing databases from inside WasmEdge applications.

* [MySQL / MariaDB / TiDB](mysql_async/) relational DB example
* [GreptimeDB](greptimedb/) time series DB example
* [Postgres](postgres/) example
* [Redis](redis/) key value store example
* [Qdrant](qdrant/) vector DB example

Alternatively, you can use the [Dapr SDK for Wasm](https://github.com/second-state/dapr-sdk-wasi) to access database or KV store services attached to your Dapr sidecars. [See examples here](https://github.com/second-state/dapr-wasm).

You can also check out

* [A complete microservice demo](https://github.com/second-state/microservice-rust-mysql) with a HTTP server and a MySQL backend.
* [An event-driven microservice demo](https://github.com/docker/awesome-compose/tree/master/wasmedge-kafka-mysql) with a Kafka queue and a MySQL backend.