remote-apis VS Bazel

Compare remote-apis vs Bazel and see what are their differences.

remote-apis

An API for caching and execution of actions on a remote system. (by bazelbuild)

Bazel

a fast, scalable, multi-language and extensible build system (by bazelbuild)
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
remote-apis Bazel
5 136
300 22,373
0.3% 0.8%
5.8 10.0
15 days ago about 14 hours ago
Starlark Java
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.

remote-apis

Posts with mentions or reviews of remote-apis. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-22.
  • Mozilla sccache: cache with cloud storage
    4 projects | news.ycombinator.com | 22 Dec 2023
    In the case of the Remote Execution/Cache API used by Bazel among others[1] at least, it's a bit more detailed. There's an "ActionCache" and an actual content-addressed cache that just stores blobs ("ContentAddressableStorage"). When you run a `gcc -O2 foo.c -o foo.o` command (locally or remotely; doesn't matter), you upload an "Action" into the action cache, which basically said "This command was run. As a result it had this stderr, stdout, error code, and these input files read and output files written." The input and output files are then referenced by the hash of their contents, in this case.

    Most importantly you can look up an action in the ActionCache without actually running it. So now when another person comes by and runs the same build command, they say "Has this Action, with these inputs, been run before?" and the server can say "Yes, and the output is a file identified by hash XYZ" where XYZ is the hash of foo.o

    So realistically you always some mix of "input content hashing" and "output content hashing" (the second being the definition of 'content addressable'.)

    [1] https://github.com/bazelbuild/remote-apis/blob/main/build/ba...

  • Distcc: A fast, free distributed C/C++ compiler
    11 projects | news.ycombinator.com | 1 Jun 2023
    Not only it's distributed like distcc, Bazel also provide sandboxing to ensure that environment factors does not affect the build/test results. This might not mean much for smaller use cases, but at scale with different compiler toolchains targeting different OS and CPU Architecture, the sandbox helps a ton in keeping your cache accurate.

    On top of it, the APIs Bazel uses to communicate with the remote execution environment is standardized and adopted by other build tools with multiple server implementation to match it. Looking into https://github.com/bazelbuild/remote-apis/#clients, you could see big players are involved: Meta, Twitter, Chromium project, Bloomberg while there are commercial supports for some server implementations.

    Finally, on top of C/C++, Bazel also supports these remote compilation / remote test execution for Go, Java, Rust, JS/TS etc... Which matters a lot for many enterprise users.

    Disclaimer: I work for https://www.buildbuddy.io/ which provides one of the remote execution server implementation and I am a contributor to Bazel.

  • When to Use Bazel?
    13 projects | news.ycombinator.com | 13 Sep 2022
    Regardless of whether you should use Bazel or not, my hope is that any future build systems attempt to adopt Bazel's remote execution protocol (or at least a protocol that is similar in spirit):

    https://github.com/bazelbuild/remote-apis

    In my opinion the protocol is fairly well designed.

  • Programming Breakthroughs We Need
    17 projects | news.ycombinator.com | 17 Aug 2022
    > The thing I really would like to see is a smarter CI system. Caching of build outputs, so you don't have to rebuild the world from scratch every time. Distributed execution of tests and compilation, so you are not bottle-necked by one machine.

    This is already achievable nowadays using Bazel (https://bazel.build) as a build system. It uses a gRPC based protocol for offloading/caching the actual build on a build cluster (https://github.com/bazelbuild/remote-apis). I am the author of one of the Open Source build cluster implementations (Buildbarn).

  • Distributed Cloud Builds for Everyone
    4 projects | news.ycombinator.com | 3 Jun 2021
    Very nice! I really like the ease-of-use of this, as well as the scale-to-zero costs. That's a tricky thing to achieve. Seems like it could become a standard path to ease the migration from local to remote builds.

    If the author is interested in standardizing the same, I'd suggest implementing the REAPI protocol (https://github.com/bazelbuild/remote-apis). It should be amenable to implementing on a Lambda-esque back-end, and is already standard amongst most tools doing Remote Execution (including Bazel! Bazel+llama could be fun). And equally, it's totally usable by a distcc-esque distribution tool (recc[1] is one example) - that's also what Android is doing before they finish migrating to Bazel ([2], sadly not yet oss'd).

    The main interesting challenge I expect this project to hit is going to be worker-local caching: for compilation actions it's not too bad to skip assuming the compiler is built into the container environment, but if branching out into either hermetic toolchains or data-heavy action types (like linking), fetching all bytes to the ephemeral worker anew each time may prove to be prohibitive. On the other hand, that might be a nice transition point to switch to persistent workers: use a lambda backed solution for the scale-to-0 case, and switch execution stacks under the hood to something based on reused VMs when hitting sufficient scale that persistent executors start to win out.

    (Disclaimer: I TL'd the creation of this API, and Google implementation of the same).

    [1] https://gitlab.com/BuildGrid/recc

    [2] https://opensource.googleblog.com/2020/11/welcome-android-op...

Bazel

Posts with mentions or reviews of Bazel. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-18.
  • Hello World
    2 projects | news.ycombinator.com | 18 Apr 2024
    Wow, if you curl it, there's a lot of boilerplate code there.

    Maybe built using Bazel?

    https://bazel.build

  • Things I learned while building projects with NX
    5 projects | dev.to | 18 Mar 2024
    Bazel by Google
  • Show HN: Flox 1.0 – Open-source dev env as code with Nix
    17 projects | news.ycombinator.com | 13 Mar 2024
    Luckily a feature to limit the disk cache size is in development: https://github.com/bazelbuild/bazel/issues/5139
  • How to write unit tests in C++ relying on non-code files?
    3 projects | news.ycombinator.com | 22 Feb 2024
    This is a problem that Bazel (https://bazel.build) solves in a very convenient way. You can just keep using the paths relative to the repository root, and as long as you properly declare your test needs that file it will access it without problems. Or you can use the runfile libraries to access them too.
  • blade-build VS Bazel - a user suggested alternative
    2 projects | 28 Jan 2024
  • Bazel 7.0 LTS
    1 project | news.ycombinator.com | 11 Dec 2023
  • My first Software Release using GitHub Release
    6 projects | dev.to | 24 Nov 2023
    When doing research for this lab exercise I looked at both vcpkg and conan. Both are package managers that would automate the installation and configuration of my program with its dependencies. However, when it came to releasing and sharing my program my options were limited. For example, the central public registry for conan packages is conan-center, but these packages are curated and the process is very involved. There was no way conan-center would accept a class project like mine. Alternatively, I could host a conan package on a public Artifactory repository, but accessing the package requires users to add the repository to their conan remote. This already sounded like too many steps to expect regular users to follow - I already haven't setup any conan remotes, there's no way I could expect regular users to know about conan remotes, let alone have conan installed on their system. After discussing with people online and consulting my instructor, I ultimately decided to do a GitHub release. However, in the future I was encouraged to look into using CMake or bazel.
  • Declarative Gradle is a cool thing I am afraid of: Maven strikes back
    3 projects | dev.to | 11 Nov 2023
    NOTE: I won’t mention SBT and Leiningen here because, with all due respect, they are niche build tools. I also won’t discuss Kobalt for the same reason (besides, it’s no longer actively maintained). Additionally, I won’t touch upon Bazel and Buck in this context, mainly because I’m not very familiar with them. If you have insights or comments about these tools, please feel free to share them in the comments 👇
  • Bazel
    1 project | news.ycombinator.com | 2 Oct 2023
  • A Modern C Development Environment
    7 projects | news.ycombinator.com | 10 Aug 2023
    > None of this solves C's only REAL problem (in my opinion) which is the lack of dependency management.

    Bazel solves this really nicely, I know some people have strong opinions on it but I cannot recommend it enough

    https://bazel.build/

What are some alternatives?

When comparing remote-apis and Bazel you can also consider the following projects:

dylint - Run Rust lints from dynamic libraries

Buck - A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.

bazel-gba-example - Bazel GBA (Game Boy Advance) Example

nx - Smart Monorepos · Fast CI

llama

meson - The Meson Build System

MyDef - Programming in the next paradigm -- your way

Gradle - Adaptable, fast automation for all

bazel-buildfarm - Bazel remote caching and execution service

ninja - a small build system with a focus on speed

embedded-postgres-binaries - Lightweight bundles of PostgreSQL binaries with reduced size intended for testing purposes.

turborepo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turborepo and Turbopack. [Moved to: https://github.com/vercel/turbo]