workers-wasi VS foundationdb

Compare workers-wasi vs foundationdb and see what are their differences.

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-wasi foundationdb
5 21
119 13,991
0.0% 0.7%
0.0 9.8
about 1 year ago 4 days ago
C++ C++
BSD 3-clause "New" or "Revised" License 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-wasi

Posts with mentions or reviews of workers-wasi. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-15.
  • WASM by Example
    16 projects | news.ycombinator.com | 15 Nov 2023
    The examples seemed clear enough to read (I did not test them), but I felt than even when teaching by example there needs to be more overview and explanation. I.e., I would prefer an overview of WASM structure and use with examples, rather than just the examples. (I have some (but limited) experience using WASM.)

    As for the utility of wasm, note also that Cloudflare workers can run WASM on edge servers [1], and that the Swift community has some support for compiling to wasm [2].

    I've never really understood how wasm could do better than java bytecode, but I've been impressed with how much people are using lua and BPF. More generally, in a world of federated programming, we need languages client can submit that providers can run safely, without obviously leaking any secret sauce -- perhaps e.g., for model refinement or augmented lookup.

    [1] https://github.com/cloudflare/workers-wasi

  • SQLite builds for WASI since 3.41.0
    5 projects | news.ycombinator.com | 24 May 2023
    Those are great questions! I believe Emscripten will be required for some cases as it provides more features for targeting a Web Browser. If WASI is the only requirement for a Wasm module, then there are three possible solutions:

    - Use a library that provides the WASI bindings in a browser environments: there are some OSS projects that provides WASI bindings on top of browser technologies. For example, workers-wasi from Cloudflare [1]. It could be even another Wasm module that provides the implementation for the main one. I know the people from Loophole Labs are experimenting with virtual filesystems (VFS) [2].

    - Browsers provides a WASI implementation: server-oriented runtimes like NodeJS are already providing these bindings (under a experimental flag). I shouldn't have stated that as a fact, as browsers may provide it or not. However, I saw in the past the Google Chrome team experimenting with WASI and the browser FileSystem API [3]. So, I think it may happen :)

    - [1] https://github.com/cloudflare/workers-wasi

    - [2] https://www.youtube.com/watch?v=46jZSXVxYPw

    - [3] https://github.com/GoogleChromeLabs/wasi-fs-access

  • The Tug-of-War over Server-Side WebAssembly
    12 projects | news.ycombinator.com | 24 Mar 2023
    Indeed, some people are doing this:

    - WASI once had an official polyfill https://wasi.dev/polyfill/, now apparently succeeded by https://github.com/bjorn3/browser_wasi_shim

    - wasmer-js provides a JS polyfill for WASI https://docs.wasmer.io/integrations/js/wasi

    - Cloudflare has a WIP polyfill https://github.com/cloudflare/workers-wasi

    I'm generally leery of non-temporary polyfills, so I'm not sure that any of these feel like a long-term viable option for me.

  • Rust advocacy at a medium-sized startup
    2 projects | news.ycombinator.com | 19 Jun 2022
    I think modern C++ could be perfectly viable as well. Maybe https://github.com/cloudflare/workers-wasi would be a good starting point? I'm not too knowledgeable on the subject. Exciting times though, I think WASM might be the great equalizer.
  • Store SQLite in Cloudflare Durable Objects
    14 projects | dev.to | 26 Jan 2022
    While there is a WASI implementation for Workers: cloudflare/workers-wasi, I prefer to implement each import manually - especially when there are so few and especially while I am still experimenting. This helps me to keep the full picture of what's going on.

foundationdb

Posts with mentions or reviews of foundationdb. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-14.
  • Figma's Databases team lived to tell the scale
    5 projects | news.ycombinator.com | 14 Mar 2024
    Actually, Apple does this for iCloud! They use FoundationDB[1] to store billions of databases, one for each user (plus shared or global databases).

    See: https://read.engineerscodex.com/p/how-apple-built-icloud-to-...

    Discussed on HN at the time: https://news.ycombinator.com/item?id=39028672

    [1]: https://github.com/apple/foundationdb https://en.wikipedia.org/wiki/FoundationDB

  • Maybe Getting Rid of Your QA Team Was Bad
    1 project | news.ycombinator.com | 14 Dec 2023
    Is this the language in question? https://github.com/apple/foundationdb/blob/main/flow/README....
  • WASM by Example
    16 projects | news.ycombinator.com | 15 Nov 2023
    > I wondered if perhaps this WASM use case for a cross-language library was already just as possible and ergonomic using language bindings and maybe thats why this use case doesnt seem like a big deal to people.

    Yeah that’s the reason. You don’t notice it a lot of the time, but FFIs are everywhere already. The most common foreign function interface is basically the ability to call C code, or have functions made available to C code. C is used because everyone knows it and it’s simple. And most languages either compile to native code (eg rust) - which makes linking to C code easy. Or the runtime is implemented in C or C++ (eg V8, Ruby). In languages like that, the standard library is already basically implemented via a FFI to C/C++ code.

    I’ve got an iOS app I’m working on that’s half rust and half swift, with a touch of C in the middle. The bindings work great - the whole thing links together into one binary, even with link time optimizations. But the glue code is gross, and when I want to fiddle with the rust to Swift API I need to change my code in about 4 different places.

    Most FFIs are a one to many relationship in that if you write a clean C API, you can probably write bindings in every language. But you don’t actually want to call naked C code from Ruby or Javascript. Good bindings will make you forget everything is done via ffi. Eg numpy. I haven’t looked at the wasm component model proposal - I assume it’s trying to make this process cleaner, which sounds lovely.

    I maintain the nodejs bindings for foundationdb. Foundationdb bindings are all done via ffi linking to their C code. And the API is complex, using promises and things. I find it really interesting browsing their official bindings to go, Java, Python and Ruby. Same bindings. Same wrapped api. Same team of authors. Just different languages. And that’s enough to make the wrapper wildly different in every language. From memory the Java ffi wrapper is 4x as much code as it is in Ruby.

    https://github.com/apple/foundationdb/tree/main/bindings

  • JDK 21 Release Notes
    6 projects | news.ycombinator.com | 19 Sep 2023
    Isn’t apple server on C/C++?

    They have their own db in that

    https://github.com/apple/foundationdb

  • How FoundationDB works and why it works
    5 projects | news.ycombinator.com | 18 Sep 2023
    > Any meaningful technology is open source.

    Clearly untrue, however FoundationDB is open source, with a permissive license.

    https://github.com/apple/foundationdb

    So is much of the operational tooling for it:

    https://github.com/FoundationDB/fdb-kubernetes-operator

  • FoundationDB: A Distributed Key-Value Store
    13 projects | news.ycombinator.com | 3 Jul 2023
    I don't recall any of those details but the test involved injecting a bogus block device that always returns garbage, and noting that this results in garbage records returned from client queries. And I don't think those kinds of issues have been eradicated, browsing through their github issues there are people trying to recover corrupted clusters. https://github.com/apple/foundationdb/issues/2480
  • Apple/FoundationDB: FoundationDB
    1 project | news.ycombinator.com | 25 May 2023
  • FoundationDB Design Internals
    1 project | news.ycombinator.com | 19 Jan 2023
  • Install FoundationDB in Gentoo
    2 projects | /r/Gentoo | 3 Jul 2022
    For my current job, I have to install FoundationDB (they have a github repo) as a dependency for the project's code.
  • Anna: Key-Value Store for Any Scale
    2 projects | news.ycombinator.com | 29 Apr 2022
    To clarify, FoundationDB has some documented multi-region features, but it's not at all clear that anybody who runs it at scale relies on those multi-region features [1]. Even if they do, it's not obvious they run this Fearless DR mode at any appreciable latency.

    Geo-replication is an area where Anna really shines, and foundation pays severe costs. All of the concurrency control problems have contention footprints on the order of round-trips. Fully optimistic concurrency control needs to expose backoffs quite a few round-trips to be live. Even pessimistic concurrency control requires some number of round trips, probably at least 1.5 optimally, but in practice in most tuned systems, probably 3. A heck of a lot of use cases make sense at 0 global RTTs and don't at 1+. The ability to tell the database how to manage concurrency, and then providing causal is ultimately the best you can do. That's awesome.

    At the end of the day, I have to believe that there's a whole big mess of applications we'll build this, on systems in the portion of the design space Anna is choosing, one day. This is only recently not cutting edge research, but it's definitely still research. We don't know how to model these concepts at a high-level and in a composable way where the masses of software developers can engage with them.

    It's interesting to think about how long ago we were graced with BAYOU [2], that thing was ahead of its time. I suspect it's going to take a little while longer before these sorts of techniques make their way into data storage primitives we think of as part of the standard vernacular, but I believe we'll get there eventually.

    Databases are fun!

    [1] https://github.com/apple/foundationdb/wiki/Multi-Region-Repl...

What are some alternatives?

When comparing workers-wasi and foundationdb you can also consider the following projects:

workers-rs - Write Cloudflare Workers in 100% Rust via WebAssembly

swift-evolution - This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.

asyncify - Standalone Asyncify helper for Binaryen

FASTER - Fast persistent recoverable log and key-value store + cache, in C# and C++.

wasm-sqlite - [Experimental] SQLite compiled to WASM with pluggable page storage.

password-manager-resources - A place for creators and users of password managers to collaborate on resources to make password management better.

binaryen - Optimizer and compiler/toolchain library for WebAssembly

fdb-document-layer - A document data model on FoundationDB, implementing MongoDB® wire protocol

do-sqlite - [Experimental] Persist SQLite in a Cloudflare Durable Object

fdb-kubernetes-operator - A kubernetes operator for FoundationDB

wasi-libc - WASI libc implementation for WebAssembly

docker - Docker - the open-source application container engine