Skip to content

snodra-messaging-rs

The Rust counterpart of snodra-messaging: one builder that opens the hub stream, consumes Kafka, runs idempotent handlers, publishes through an outbox, and runs sagas with deadlines.

[dependencies]
snodra-messaging-rs = "0.6"

What it gives you

  • One builder for the hub client, Kafka producers and consumers, outbox and handlers.
  • Annotated-free, closure handlers: event, event_in, command, query, saga.
  • Idempotent consumption with processed_events, named processors, dead letters and the admin API.
  • Query modes: unary, scatter-gather, streaming and subscription.
  • Static token, OAuth2 / OIDC JWT and mTLS credentials, with rotation.
  • SagaTestFixture behind the testing feature.

Pages

  • Quick start — a service in one file.
  • Configuration — SNODRA_* variables and every hub credential.
  • API — handlers, queries, processors and dead letters.
  • Sagas — the programming model, deadlines, adapters and testing.
  • Testing — the in-memory saga fixture and the integration fixtures.
  • Modules and build — the crate, the example service and CI.