workers-rs VS workerd

Compare workers-rs vs workerd and see what are their differences.

workers-rs

Write Cloudflare Workers in 100% Rust via WebAssembly (by cloudflare)

workerd

The JavaScript / Wasm runtime that powers Cloudflare Workers (by cloudflare)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
workers-rs workerd
16 37
2,288 5,704
3.5% 3.6%
9.0 9.9
4 days ago 5 days ago
Rust C++
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

workers-rs

Posts with mentions or reviews of workers-rs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-02.
  • Python Cloudflare Workers
    4 projects | news.ycombinator.com | 2 Apr 2024
    - The speed of the Python interpreter running in WebAssembly

    Today, Python cold starts are slower than cold starts for a JavaScript Worker of equivalent size. A basic "Hello World" Worker written in JavaScript has a near zero cold start time, while a Python Worker has a cold start under 1 second.

    That's because we still need to load Pyodide into your Worker on-demand when a request comes in. The blog post describes what we're working on to reduce this — making Pyodide already available upfront.

    Once a Python Worker has gone through a cold start though, the differences are more on the margins — maybe a handful milliseconds, depending on what happens during the request.

    - There is a slight cost (think — microseconds not milliseconds) to crossing the "bridge" between JavaScript and WebAssembly — for example, by performing I/O or async operations. This difference tends to be minimal — generally something measured in microseconds not milliseconds. People with performance sensitive Workers already write them in Rust https://github.com/cloudflare/workers-rs, which also relies on bridging between JavaScript and WebAssembly.

    - The Python interpreter that Pyodide provides, that runs in WebAssembly, isn't as fast as the years and years of optimization that have gone into making JavaScript fast in V8. But it's still relatively early days for Pyodide, compared to the JS engine in V8 — there are parts of its code where we think there are big perf gains to be had. We're looking forward to upstreaming performance improvements, and there are WebAssembly proposals that help here too.

  • Cloudflare Workers Introduces Connect() API to Create TCP Sockets
    3 projects | news.ycombinator.com | 29 May 2023
    Not yet, but we're working on that https://github.com/cloudflare/workers-rs/pull/324
  • How much Rust work is actually going on at Cloudflare?
    2 projects | /r/rust | 15 Jan 2023
    I'm also in the Workers org but I have had a bit of interaction with Rust. There's some Rust in the Workers runtime using lol-html for HTMLRewriter as well as some tooling and there's the full blown workers-rs framework that I work on, but that's about it for the Rust I work on regularly.
  • std.rs is seeking a new owner
    3 projects | /r/rust | 9 Dec 2022
    I'm an engineer at Cloudflare working on Workers (and a maintainer of workers-rs) and I'd love to help whoever ends up maintaining this get that PR rewriting it in Rust across the line.
  • Workerd : le moteur d’exécution JavaScript / Wasm qui alimente les Workers de Cloudflare …
    9 projects | dev.to | 4 Dec 2022
    GitHub - cloudflare/workers-rs: Write Cloudflare Workers in 100% Rust via WebAssembly
  • Turbopack - The successor to Webpack
    2 projects | /r/programming | 26 Oct 2022
    I never said it was, but thankfully nowadays there are plenty of other tools that are fast enough to keep the dev cycle quick. Personally esbuild is my go-to when I need a bundler but I've grown really fond of SWC native api, we used to use it at work for our wasm build tool for our workers-rs framework.
  • Announcing support for WASI on Cloudflare Workers
    3 projects | /r/rust | 8 Jul 2022
    There's actually a rust framework for Workers https://github.com/cloudflare/workers-rs
  • What's your experience with FaaS and Rust?
    6 projects | /r/rust | 29 Jun 2022
    I'm a maintainer of the of the Cloudflare workers-rs project to allow you to write serverless functions in Rust running as WASM in our V8-based runtime. There's certainly some rough spots (doesn't have complete parity with our default JS runtime apis), but if you're concerned with cold start times and you don't need a full containerized environment I think it's a solid choice.
  • Hey Rustaceans! Got a question? Ask here! (25/2022)!
    13 projects | /r/rust | 20 Jun 2022
    Most likely, it should, we just haven't had the time to fully implement it or add a library to wrap the FFI. Please let us know you need a feature by opening an issue.
  • Warp or Rocket.rs or Actix Web?
    8 projects | /r/rust | 29 May 2022
    I may be biased, as the original project author, but I’d recommend using Cloudflare Workers https://github.com/cloudflare/workers-rs - totally free their with very generous limits.

workerd

Posts with mentions or reviews of workerd. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-05.
  • Cloudflare acquires PartyKit to allow developers to build real-time multi-user
    3 projects | news.ycombinator.com | 5 Apr 2024
    Standards bodies only standardize things after they've been proven to work. You can't standardize a new idea before offering it to the market. It's hard enough to get just one vendor to experiment with an idea (it literally took me years to convince everyone inside Cloudflare that we should build Durable Objects). Getting N competing vendors to agree on it -- before anything has been proven in the market -- is simply not possible.

    But the Durable Objects API is not complicated and there's nothing stopping competing platforms from building a compatible product if they want. Much of the implementation is open source, even. In fact, if you build an app on DO but decide you don't want to host it on Cloudflare, you can self-host it on workerd:

    https://github.com/cloudflare/workerd

  • Python Cloudflare Workers
    4 projects | news.ycombinator.com | 2 Apr 2024
    In any case, I welcome this initiative with my open hands and look forward all the cool apps that people will now build with this!

    [1] https://pyodide.org/

    [2] https://github.com/cloudflare/workerd/blob/main/docs/pyodide...

    [3] https://github.com/cloudflare/workerd/pull/1875

  • LLRT: A low-latency JavaScript runtime from AWS
    10 projects | news.ycombinator.com | 8 Feb 2024
    For ref:

    - https://blog.cloudflare.com/workerd-open-source-workers-runt...

    - https://github.com/cloudflare/workerd

  • A list of JavaScript engines, runtimes, interpreters
    23 projects | /r/learnjavascript | 10 Dec 2023
    workerd
  • WinterJS
    6 projects | news.ycombinator.com | 28 Oct 2023
    I think this is for people who want to run their own cloudflare workers (sort of) and since nobody wants to run full node for that, they want a small runtime that just executes js/wasm in an isolated way. But I wonder why they don't tell me how I can be sure that this is safe or how it's safe. Surely I can't just trust them and it explicitly mentions that it still has file IO so clearly there is still work I need to do customize the isolation further. But then they don't show any info on that core usecase. But then that's probably because they don't really want you to use this to run it on your own, they are selling you on running things on their edge platform called "Wasmer Edge". So that's probably why this is so light on information.. the motivation isn't to get you to use this yourself, just to use this their hosted edge platform. But then I wonder why I wouldn't just use https://github.com/cloudflare/workerd which is also open source. Surely that is fast enough? If not then it should show some benchmarks?
  • Cloudflare workers is adopting Ada URL parser
    1 project | news.ycombinator.com | 5 Oct 2023
  • Cap'n Proto 1.0
    10 projects | news.ycombinator.com | 28 Jul 2023
    i love how the main reference for workerd can be just one capnp file.

    https://github.com/cloudflare/workerd/blob/main/src/workerd/...

    this changed my world how i think about computing on the web.

    if there was just a good enough js library as for lua and you could directly send capnp messages to workerd instead of always going through files. I guess one day i have to relearn c++ and understand how the internals actually work.

  • Cloudflare Workers Introduces Connect() API to Create TCP Sockets
    3 projects | news.ycombinator.com | 29 May 2023
    A significant chunk of it is open source: https://github.com/cloudflare/workerd/
  • JSON with multiline strings
    2 projects | /r/javascript | 19 May 2023
    Some of the configuration files for applications wind up being an entire language unto themselves, e.g., https://github.com/cloudflare/workerd/blob/1b5057f2bfcfedf146f6f79ff04e99903d55412b/src/workerd/io/compatibility-date.capnp
  • Am I out of touch for trying to limit my stack to containers?
    1 project | /r/ExperiencedDevs | 18 May 2023
    Edge runtimes are very good alternatives to containers that shouldn't be dismissed for "not being containers". They're often faster, more scalable, and cheaper than containers. Them being so lightweight also enable a "nanoservice architecture" – being able to run every service on a single computer instead of running different services on different computers and having to deal with network latency and unreliability.

What are some alternatives?

When comparing workers-rs and workerd you can also consider the following projects:

realworld-axum-sqlx - A Rust implementation of the Realworld demo app spec using Axum and SQLx.

cloudflare-docs - Cloudflare’s documentation

worker-kv - Rust bindings to Cloudflare Worker KV Stores

js-compute-runtime - JavaScript SDK and runtime for building Fastly Compute applications

boringtun - Userspace WireGuard® Implementation in Rust

lagon - Deploy Serverless Functions at the Edge. Current status: Alpha

workers-wasi

fauna-schema-migrate - The Fauna Schema Migrate tool helps you set up Fauna resources as code and perform schema migrations.

litestream - Streaming replication for SQLite.

windmill - Open-source developer platform to turn scripts into workflows and UIs. Fastest workflow engine (5x vs Airflow). Open-source alternative to Airplane and Retool.

ssr-workers - Rust based Cloudflare Worker with SSR

go - The Go programming language