#events #message #consumer-group

macro rust_transit_derive

Drive macros for rust_transit

1 unstable release

0.1.0 Apr 11, 2020

#6 in #consumer-group


Used in 3 crates

MIT license

3KB

Rust Events

This is for the moment a little experiment to add a layer of abstraction on top of messaging API. This project is inspired by Mass Transit: take some decisions about the topology of the underlying messaging architecture, make it easy to create messages types ("Events").

Main Features

Multitenancy

Each event can be optionally attached a tenant, which is only an arbitrary string. A consumer can listen to events for all or one specific tenant.

Supported Backends

RabbitMQ

RabbitMQ support via lapin.

Currently you cannot choose the topology, but hopefully at some stage we can add ways to customize it.

Kafka

Kafka support via rust-rdkafka

Misc.

License

Licensed under MIT license.

Running tests

Disable parallel tests since they are integration tests RUST_LOG=info cargo test -- --nocapture --test-threads=1


lib.rs:

rust_transit_derive

Derive macros to easily define event types and consumer groups

Dependencies

~2MB
~48K SLoC