devsper-bus
Message bus backends for the devsper runtime. Implements the Bus trait from devsper-core with pluggable backends.
Backends
| Backend | Feature flag | Use case |
|---|---|---|
InMemoryBus |
(always on) | Single-process, testing |
RedisBus |
redis |
Multi-node distributed execution |
KafkaBus |
(stub) | High-throughput future use |
Usage
[]
= "0.1"
# For Redis support:
= { = "0.1", = ["redis"] }
use create_bus;
use ;
// "memory" → InMemoryBus, "redis://..." → RedisBus
let bus = create_bus;
bus.subscribe.await?;
bus.publish.await?;
License
GPL-3.0-or-later — see repository.