-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
6 changed files
with
140 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# RabbitMQ | ||
|
||
## RabbitMQSinkConnector: from eventmesh to rabbitmq. | ||
|
||
1. launch your rabbitmq server and eventmesh-runtime. | ||
2. enable sinkConnector and check `sink-config.yml`. | ||
3. send a message to eventmesh with the topic defined in `pubSubConfig.subject` | ||
```yaml | ||
pubSubConfig: | ||
# default port is 10000 | ||
meshAddress: your.eventmesh.server:10000 | ||
subject: TopicTest | ||
idc: FT | ||
env: PRD | ||
group: rabbitmqSink | ||
appId: 5031 | ||
userName: rabbitmqSinkUser | ||
passWord: rabbitmqPassWord | ||
connectorConfig: | ||
connectorName: rabbitmqSink | ||
host: your.rabbitmq.server | ||
port: 5672 | ||
username: coyrqpyz | ||
passwd: passwd | ||
virtualHost: coyrqpyz | ||
exchangeType: TOPIC | ||
# build-in exchangeName or name a new one after you create it in rabbitmq server. | ||
exchangeName: amq.topic | ||
# rabbitmq server will create the routingKey and queueName automatically after you connect to it if they aren't exist before. | ||
routingKey: eventmesh | ||
queueName: eventmesh | ||
autoAck: true | ||
``` | ||
## RabbitMQSourceConnector: from rabbitmq to eventmesh. | ||
1. launch your rabbitmq server and eventmesh-runtime. | ||
2. enable sourceConnector and check `source-config.yml` (Basically the same as `sink-config.yml`) | ||
3. start your `RabbitMQConnectorServer` and you will find the channel in rabbitmq server. | ||
4. send a cloudevent message to the queue and then you will receive the message in eventmesh. |
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
40 changes: 40 additions & 0 deletions
40
...plugin-content-docs/current/design-document/03-connect/03-rabbitmq-connector.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,40 @@ | ||
# RabbitMQ | ||
|
||
## RabbitMQSinkConnector:从 eventmesh 到 rabbitmq。 | ||
|
||
1. 启动你的 rabbitmq 服务和 eventmesh-runtime。 | ||
2. 启用 sinkConnector 并检查 `sink-config.yml`。 | ||
3. 向 eventmesh 发送带有在 `pubSubConfig.subject` 中定义的主题消息。 | ||
```yaml | ||
pubSubConfig: | ||
# 默认端口 10000 | ||
meshAddress: your.eventmesh.server:10000 | ||
subject: TopicTest | ||
idc: FT | ||
env: PRD | ||
group: rabbitmqSink | ||
appId: 5031 | ||
userName: rabbitmqSinkUser | ||
passWord: rabbitmqPassWord | ||
connectorConfig: | ||
connectorName: rabbitmqSink | ||
host: your.rabbitmq.server | ||
port: 5672 | ||
username: coyrqpyz | ||
passwd: passwd | ||
virtualHost: coyrqpyz | ||
exchangeType: TOPIC | ||
# 使用内置的 exchangeName 或在连接到 rabbitmq 服务后创建新的 exchangeName。 | ||
exchangeName: amq.topic | ||
# 如果在连接之前不存在,rabbitmq 服务将自动创建 routingKey 和 queueName。 | ||
routingKey: eventmesh | ||
queueName: eventmesh | ||
autoAck: true | ||
``` | ||
## RabbitMQSourceConnector:从 rabbitmq 到 eventmesh。 | ||
1. 启动你的 rabbitmq 服务器和 eventmesh-runtime。 | ||
2. 启用 sourceConnector 并检查 `source-config.yml`(与 sink-config.yml 基本相同)。 | ||
3. 启动你的 RabbitMQConnectorServer,你会在 rabbitmq 服务中找到该channel。 | ||
4. 向队列发送一个 cloudevent 消息,然后你将在 eventmesh 中接收到该消息。 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.