4 releases (breaking)

new 0.7.0 May 5, 2024
0.6.0 Dec 29, 2023
0.5.0 Jun 25, 2023
0.4.0 May 3, 2023

#31 in #stage

Download history 16/week @ 2024-01-19 22/week @ 2024-01-26 104/week @ 2024-02-09 97/week @ 2024-02-16 109/week @ 2024-02-23 71/week @ 2024-03-01 45/week @ 2024-03-08 57/week @ 2024-03-15 39/week @ 2024-03-22 133/week @ 2024-03-29 119/week @ 2024-04-05 153/week @ 2024-04-12 96/week @ 2024-04-19 37/week @ 2024-04-26 202/week @ 2024-05-03

498 downloads per month
Used in gasket

Apache-2.0

8KB
143 lines

Gasket

An opinionated Rust library for building application using data pipeline semantics. It uses a similar approach to the "Actor model", but fine-tuned for heavy, composable data processing.

Why

  • spliting data processing logic into small stages facilitates development (my own experience)
  • stages are easily composable
  • pipelines are a good abstraction for implementing observability
  • robust loops with error handling, backoff retries, etc are ubiquitous and hard to implement correctly
  • traditional async loops hide too much of the complexity, hard to optimice at scale

Goals

  • zero-cost abstraction (sort of)
  • staticly typed stages, dynamic composition of pipeline at runtime
  • developer has full-control over each work unit
  • robust work loop provided by the library
  • error handling out-of-the-box, with different policies (retry, exit, backoff)
  • fully observable out-of-the-box (metrics, traces)
  • multi-thread pipeline, async option inside stage
  • ergonomic pipeline setup
  • back-pressure out-of-the-box
  • hot swap of stages (add / remove)

Status

Current state of the lib is: "only I understand it". I'm experimenting with the api surface, so there are constant breaking changes happening frequently.

Dependencies

~325–780KB
~19K SLoC