forked from apache/eventmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE apache#4683] Documentation Needed for eventmesh-connector-redis (
apache#4684) * feat: Add doc for eventmesh-connector-redis * feat: Add doc for eventmesh-connector-redis * feat: Add doc for eventmesh-connector-redis * feat: Add doc for eventmesh-connector-redis
- Loading branch information
Showing
8 changed files
with
82 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Redis | ||
|
||
## RedisSinkConnector: From EventMesh to Redis topic queue | ||
|
||
1. start your Redis instance if needed and EventMesh Runtime. | ||
2. enable sinkConnector and check `sink-config.yml`. | ||
3. start your `RedisConnectServer`, it will subscribe to the topic defined in `pubSubConfig.subject` of EventMesh Runtime and send data to `connectorConfig.topic` in your Redis. | ||
4. send a message to EventMesh with the topic defined in `pubSubConfig.subject` and then you will receive the message in Redis. | ||
|
||
```yaml | ||
pubSubConfig: | ||
# default port 10000 | ||
meshAddress: your.eventmesh.server:10000 | ||
subject: TopicTest | ||
idc: FT | ||
env: PRD | ||
group: redisSink | ||
appId: 5031 | ||
userName: redisSinkUser | ||
passWord: redisPassWord | ||
connectorConfig: | ||
connectorName: redisSink | ||
server: redis://127.0.0.1:6379 | ||
# the topic in redis | ||
topic: SinkTopic | ||
``` | ||
## RedisSourceConnector: From Redis topic queue to EventMesh | ||
1. start your Redis instance if needed and EventMesh Runtime. | ||
2. enable sourceConnector and check `source-config.yml` (Basically the same as `sink-config.yml`) | ||
3. start your `RedisConnectServer`, it will subscribe to the topic defined in `connectorConfig.topic` in your Redis and send data to `pubSubConfig.subject` of EventMesh Runtime. | ||
4. send a CloudEvent message to the topic in Redis, and you will receive the message in EventMesh. |
33 changes: 33 additions & 0 deletions
33
eventmesh-connectors/eventmesh-connector-redis/README_CN.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Redis | ||
|
||
## RedisSinkConnector:从 EventMesh 到 Redis 的消息队列 | ||
|
||
1. 启动你的 Redis 实例和 EventMesh Runtime。 | ||
2. 启用 sinkConnector 并检查 `sink-config.yml`。 | ||
3. 启动你的 `RedisConnectServer`,它将订阅到 EventMesh Runtime 中 `pubSubConfig.subject` 中定义的主题,并将数据发送到 Redis 中的 `connectorConfig.topic`。 | ||
4. 使用在 `pubSubConfig.subject` 中指定的 Topic,向 EventMesh 发送消息,然后你将在 Redis 中接收到该消息。 | ||
|
||
```yaml | ||
pubSubConfig: | ||
# 默认端口 10000 | ||
meshAddress: your.eventmesh.server:10000 | ||
subject: TopicTest | ||
idc: FT | ||
env: PRD | ||
group: redisSink | ||
appId: 5031 | ||
userName: redisSinkUser | ||
passWord: redisPassWord | ||
connectorConfig: | ||
connectorName: redisSink | ||
server: redis://127.0.0.1:6379 | ||
# redis 中的主题 | ||
topic: SinkTopic | ||
``` | ||
## RedisSourceConnector:从 Redis 的消息队列 到 EventMesh | ||
1. 启动你的 Redis 实例和 EventMesh Runtime。 | ||
2. 启用 sourceConnector 并检查 `source-config.yml`(与 sink-config.yml 基本相同)。 | ||
3. 启动你的 RedisConnectServer,它将订阅到 Redis 中的 `connectorConfig.topic`,并将数据发送到 EventMesh Runtime 中的 `pubSubConfig.subject` | ||
4. 向 Redis 的主题发送一个 CloudEvent 消息,然后你将在 EventMesh 中接收到该消息。 |