Crate reductionist

source ·
Expand description

Reductionist is a web service that provides an API to perform reductions on numerical data stored in an S3-compatible object store. By implementing these reductions in the storage system the volume of data that needs to be transferred to the end user is vastly reduced, leading to faster computations.

The work is funded by the ExCALIBUR project and is done in collaboration with the University of Reading.

This site provides documentation for the Reductionist source code. Documentation for the Reductionist application is hosted on GitHub.

This is a performant implementation of the Active Storage Server. The original Python functional prototype is available here.

§Features

Reductionist provides the following features:

  • HTTP(S) API with JSON request data
  • Access to data stored in S3-compatible storage
  • Basic numerical operations on multi-dimensional arrays (count, min, max, select, sum)
  • Perform calculations on a selection/slice of an array
  • Perform calculations allowing for missing data
  • Compressed data (GZip, Zlib)
  • Filtered data (byte shuffle)
  • Data with non-native byte order (endianness)
  • Server resource (CPU, memory, files) management
  • Prometheus metrics
  • Tracing with an option to send data to Jaeger
  • Ansible-based containerised deployment

Reductionist is built on top of a number of open source components.

  • Tokio, the most popular asynchronous Rust runtime.
  • Axum web framework, built by the Tokio team. Axum performs well in various benchmarks and is built on top of various popular components, including the hyper HTTP library.
  • Serde performs (de)serialisation of JSON request and response data.
  • AWS SDK for S3 is used to interact with S3-compatible object stores.
  • ndarray provides NumPy-like n-dimensional arrays used in numerical computation.
  • PyActiveStorage is a Python library which performs reductions on numerical data in data sources such as netCDF4. It has support for delegating computation to Reductionist when the data is stored in an S3-compatible object store.

Modules§

  • Active Storage server API
  • Functions and utilities for working with ndarray objects.
  • Command Line Interface (CLI) arguments.
  • (De)compression support.
  • Error handling.
  • Compression and filter pipeline.
  • Filter implementations.
  • Prometheus metrics
  • Data types and associated functions and methods
  • Interface for Active Storage operations
  • Numerical operations.
  • Resource management
  • A simplified S3 client that supports downloading objects. It attempts to hide the complexities of working with the AWS SDK for S3.
  • Web server
  • Tracing (logging)
  • Various common types
  • Axum extractor that deserialises and validates JSON