Show HN:Faasta——一个用Rust编写的,自托管的、基于WASM/wasi/HTTP的无服务器平台
Show HN: Faasta – A self-hosted Serverless platform for WASM-wasi-HTTP in Rust

原始链接: https://github.com/fourlexboehm/faasta

Faasta是一个专注于速度和效率的函数即服务(FaaS)平台,凭借其WebAssembly架构,可实现低于1毫秒的冷启动和最小的内存开销。它利用WASI P2和WASI HTTP进行符合标准的HTTP处理和可移植性,避免厂商锁定。函数作为沙盒化的WebAssembly模块执行,确保安全隔离。Faasta支持自托管,允许用户在任何地方运行自己的实例,同时也提供免费的托管选项。开发者可以使用Faasta CLI轻松创建、构建和部署函数。请注意,Faasta目前处于实验阶段,可能会出现重大更改。

Alexboehm 推出了 Faasta,一个面向 Rust 编写的 WASM-wasi-HTTP 函数的自托管无服务器平台。它旨在提供一个开源且符合标准的替代方案,例如 AWS Lambda,并通过允许单个进程同时处理数千个函数调用来提高效率。 一些评论者将 Faasta 与 Bun、Cloudflare Workers 和 Fastly 的 Compute 平台进行了比较。作者澄清说,Faasta 直接运行 WASM,不像 Bun 在 JavaScript 中执行 WASM,也不像 Cloudflare Workers 那样存在大小限制。其他人指出了 Azure 通过 Spin 对 WASM 和 WASI 的实验。 人们对许可证、项目名称与 FASTA 生物信息学格式的冲突以及自托管部署中自定义域名和 SSL 证书的可能性提出了担忧。作者打算开源该项目,并可能使用复制许可证。

原文

Faasta is a cutting-edge Function-as-a-Service (FaaS) platform designed for exceptional speed and efficiency. With cold start times under 1ms and a memory overhead of less than 1KB, Faasta delivers unparalleled performance through its modern WebAssembly architecture.

  • Runs your code as WebAssembly modules using the WASI P2 standard
  • Leverages WASIHTTP for high-performance HTTP request handling
  • Provides secure isolation between functions through WebAssembly's sandboxed execution model
  • Achieves ultra-fast cold starts without the overhead of traditional containerization
  • Self-hostable with simple setup - run your own Faasta instance anywhere
  • Standards-compliant with WASI P2 and WASIHTTP, making your functions portable
  • Powered by Wasmtime for efficient WebAssembly execution
  • Includes a free hosted instance at faasta.xyz

Install the Faasta CLI:

cargo install cargo-faasta

Create a new Faasta project:

cargo faasta init
# or
cargo faasta new my-function

Build your function for WebAssembly:

Login with your GitHub account:

Deploy your function:

Your function will be available at https://your-function-name.faasta.xyz

Faasta implements the WebAssembly System Interface (WASI) Preview 2 specification and the WASIHTTP standard to enable:

  • Standardized HTTP request and response handling
  • Component-based architecture for better modularity
  • Consistent interface for interacting with the host system
  • Portable functions that can run on any WASI P2 compatible runtime

Because Faasta uses these open standards, your functions are not locked to a specific platform and can be hosted anywhere that supports these standards.

Faasta is fully self-hostable. You can run your own instance of the Faasta server to host your functions on your own infrastructure.

⚠️ Experimental Status Faasta is currently experimental. There will be breaking changes that will interupt service on the faasta.xyz instance.

联系我们 contact @ memedata.com