TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A complete microservice backed by MySQL, written in Rust and compiled into WASM

10 点作者 3Sophons超过 2 年前
Here is a complete microservice backed by a MySQL database. It is written in Rust, compiled into WebAssembly and runs entirely in the WasmEdge sandbox. Why &amp; how? https:&#x2F;&#x2F;github.com&#x2F;second-state&#x2F;microservice-rust-mysql<p>WasmEdge is a cross-platform WebAssembly runtime for cloud native apps. For Rust and JS apps, it is a much lighter, faster, and more secure alternative to Linux containers. It is perfect for microservices and serverless functions.<p>In the context of microservices, WasmEdge can be managed by existing container toolchains. In a Kubernetes cluster, WasmEdge apps can run side-by-side with Linux container apps.<p>WasmEdge apps can be managed by container tools like Podman and the Docker Desktop and CLI (more on this next week!). Here is how to use Podman to start &#x2F; manage WasmEdge: https:&#x2F;&#x2F;github.com&#x2F;KWasm&#x2F;podman-wasm<p>Now back to the microservice itself. It provides a lightweight yet very fast web server to handle JSON over HTTP requests. It is based on the popular Rust tokio, hyper, and serde libraries. See more examples: https:&#x2F;&#x2F;github.com&#x2F;WasmEdge&#x2F;wasmedge_hyper_demo<p>The microservice also features an async MySQL client to interact with backend databases. Even more examples: https:&#x2F;&#x2F;github.com&#x2F;WasmEdge&#x2F;wasmedge-db-examples<p>This WasmEdge-based microservice utilizes high-performance non-blocking networking on both the HTTP service &amp; the database client. It is a faster, lighter &amp; more secure alt to Linux container-based microservices.

1 comment

metadat超过 2 年前
Clickable links:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;second-state&#x2F;microservice-rust-mysql" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;second-state&#x2F;microservice-rust-mysql</a><p>--<p><a href="https:&#x2F;&#x2F;github.com&#x2F;KWasm&#x2F;podman-wasm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;KWasm&#x2F;podman-wasm</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;WasmEdge&#x2F;wasmedge_hyper_demo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WasmEdge&#x2F;wasmedge_hyper_demo</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;WasmEdge&#x2F;wasmedge-db-examples" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WasmEdge&#x2F;wasmedge-db-examples</a>
评论 #33354535 未加载