This library polls for messages from a Redis Streams source.
Cargo.toml
[dependencies]
tempest-source-redis = "0.1.0"
```rust use tempestsourceredis::prelude::*;
// create a type alias to the RedisStreamSourceBuilder type Source = RedisStreamSourceBuilder<'a>;
// configure a topology with this source
struct MyTopology {}
impl Topology
You can configure RedisStreamSource
at runtime by adding this to your Topology configuration file:
```toml [source.config]
uri = "redis://127.0.0.1:6379/0"
key = "some-key"
group = "abc234"
readmsgcount = 1000
poll_interval = 1
max_backoff = 30000
blocking_read = true
groupstartingid = "0000"
ack_interval = 100
ackpolicy = { type = "Batch", value = 1000} ackpolicy = { type = "Individual" }
monitor_interval = 10000
pendinghandlers = [ { action = {type = "Delete"}, minidletime = 100000, timesdelivered = 5}, { action = {type = "Ack"}, minidletime = 10000, timesdelivered = 10}, { action = {type = "Claim"}, minidletime = 200000, timesdelivered = 1}, ] ```