tellus is an actor framework for Rust on Tokio: synchronous message handlers, death watch with an ordering guarantee, supervision, event sourcing and clustering. 0.6 is out:

  • Stashing, opt-in per actor type: an actor can defer messages while it waits for something and handle them later in order. A terminated signal keeps its place, so the death watch ordering guarantee survives stashing.
  • Rolling upgrades: every payload carries the schema version of its type, and every node announces the application version from its configuration at the handshake, so new code can decode old shapes and send old shapes to old peers.
  • A faster cluster: the payload codec is an enum instead of a trait object, and bulk transfer went from 97 to 713 MiB/s.
  • Hosts passivate entities through Hosted<M>, so domain messages need no stop variant, and every store call of an event-sourced actor is bounded by a timeout.

0.6 has breaking changes, among them a new wire protocol: moving from 0.5 means restarting the cluster once. The release notes say what to do for each.

The post with code: tellus 0.6: stashing, rolling upgrades and a faster cluster: Heiko Seeberger

Feedback and questions are very welcome.

1 post - 1 participant

Read full topic