Skip to main content
版本:v2.0.0

Redis connector

Audience: operators bridging EventMesh with Redis. Redis pub/sub bridge over Redisson. Source listens on a channel; sink publishes each CloudEvent to a channel.


Classes

DirectionClassBehavior
Sourceorg.apache.eventmesh.connector.redis.source.RedisSourceConnectorRedisson topic listener buffers channel messages; poll() drains them as CloudEvents.
Sinkorg.apache.eventmesh.connector.redis.sink.RedisSinkConnectorPublishes each CloudEvent's payload to the Redis topic.

Source configuration

KeyDefaultDescription
connector.redisUrlredis://localhost:6379Redis address
connector.topicsourceChannel to subscribe

Sink configuration

KeyDefaultDescription
connector.redisUrlredis://localhost:6379Redis address
connector.topicsinkChannel to publish

Running

bin/start-connector.sh with -Dconnector.class=...RedisSourceConnector -Dconnector.mode=source -Dconnector.redisUrl=redis://redis:6379 -Dconnector.topic=events