-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE #148] Add connectors documents #150
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which part of the codes does this correspond to? Or is this a plan for the future of Connector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pandaapo The offsets (consume progress) of connectors are stored in Meta (known as Registry like Nacos) by
eventmesh-openconnect-offsetmgmt-plugin
module.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your answer.