Skip to content
mlr-orgPublic

About

Package designed to solve large-scale problems asynchronously across a distributed network

Topics

Resources

Contributing

Stars

14 stars

Watchers

5 watching

Forks

Repository files navigation

rush

Package website: release | dev

r-cmd-check DOI CRAN Status Mattermost

rush is an R package for asynchronous and decentralized optimization. It uses a database-centric architecture in which workers communicate through a shared Redis database. To support high-throughput workloads, rush combines sub-millisecond per-task overhead with caching strategies that reduce database operations. The package integrates with the mlr3 ecosystem and serves as the backend for asynchronous optimization algorithms in bbotk and mlr3tuning.

Features

  • Database-centric architecture for decentralized optimization without a central controller.
  • Asynchronous communication between workers using Redis.
  • Sub-millisecond per-task overhead for high-throughput workloads.
  • Efficient caching mechanism that minimizes database read/write operations.
  • Task queue support for centralized tasks distribution when needed.
  • Fast data transformation from Redis to data.table.
  • Scales to large remote worker networks via the mirai package.
  • Worker logging directly into the Redis database using lgr.
  • Minimal dependencies for lightweight integration.

Install

Install the latest release from CRAN.

install.packages("rush")

Install the development version from GitHub.

pak::pak("mlr-org/rush")

And install Redis.

Test with Redis

To test the package, set the RUSH_TEST_USE_REDIS environment variable to true. The test suite deletes the Redis database before execution, so never run it against a production server.

Sys.setenv(RUSH_TEST_USE_REDIS = "true")

Citation

If you use rush, please cite our paper.

Becker M, Bischl B (2026). “rush: Scalable Asynchronous Distributed Computing via Shared State in R.” Journal of Reproducible Statistics, 1(5). doi:10.68365/jrepstat.2026.5 https://doi.org/10.68365/jrepstat.2026.5.

@article{becker2026rush,
  title = {rush: {{Scalable Asynchronous Distributed Computing}} via {{Shared State}} in {{R}}},
  author = {Becker, Marc and Bischl, Bernd},
  journal = {Journal of Reproducible Statistics},
  year = {2026},
  volume = {1},
  number = {5},
  doi = {10.68365/jrepstat.2026.5}
}

Related Work

About

Package designed to solve large-scale problems asynchronously across a distributed network

Topics

Resources

Contributing

Stars

14 stars

Watchers

5 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages