#actor-framework #minimalist #actix #tokio #messages #dynamic #dispatch

aspartam

Minimalistic actor framework based on tokio, inspired by actix

1 unstable release

0.1.0 Oct 1, 2022

#1756 in Asynchronous

MIT license

40KB
992 lines

Aspartam

Minimalistic actor framework based on tokio, inspired by actix.

Aspartam tries to keep it simple and easy to use.

Messages are processed sequentially.

Features

  • Asynchronous actors
  • Support for typed messages via dynamic dispatch
  • Support for asynchronous message handlers, via async-trait
  • Actor supervision

Usage

TODO

Aspartam vs Actix

TODO

Why Aspartam

While actix is great, it makes using async/await problematic in message handlers. Workarounds exist but that continues to be a major pain-point.

I decided to create something that feels similar to actix but requires a lot less hassle and has less complexity overall.

TODO

  • Maybe something like actix's Recipient

lib.rs:

Minimalistic actor framework based on tokio, inspired by actix.

Aspartam tries to keep it simple and easy to use.

Messages are processed sequentially.

Features

  • Asynchronous actors
  • Support for typed messages via dynamic dispatch
  • Support for asynchronous message handlers, via async-trait
  • Actor supervision Everything you need, re-exported

Dependencies

~2.8–4.5MB
~78K SLoC