tempest-source-redis-0.1.1 doesn't have any documentation.
Tempest Source for Redis
This library polls for messages from a Redis Streams source.
Install
Cargo.toml
[dependencies]
tempest-source-redis = "0.1.0"
Usage
use *;
// create a type alias to the RedisStreamSourceBuilder
type Source = ;
// configure a topology with this source
Topology.toml Config
You can configure RedisStreamSource
at runtime by adding this to your Topology configuration file:
[]
# redis connection uri
= "redis://127.0.0.1:6379/0"
# redis stream key
= "some-key"
# redis stream group to use
= "abc234"
# number of stream messages to read per xreadgroup
= 1000
# time in milliseconds for how often
# to poll for new stream messages
= 1
# max poll backoff in milliseconds
= 30000
# configure blocking reads
= true
# msgid to begin reading from
= "0000"
# how often should the source check for new
# message to batch ack
= 100
# ack strategy
= { = "Batch", = 1000}
= { = "Individual" }
# monitor interval is used to handling messages
# from xpending
= 10000
# actions to take on pending message
= [
{ = { = "Delete"}, = 100000, = 5},
{ = { = "Ack"}, = 10000, = 10},
{ = { = "Claim"}, = 200000, = 1},
]