You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
start your MongoDBConnectorServer, it will subscribe to the topic defined in pubSubConfig.subject of EventMesh Runtime and send data to connectorConfig.collection in your MongoDB.
send a message to EventMesh with the topic defined in pubSubConfig.subject and then you will receive the message in MongoDB.
pubSubConfig:
# default port 10000meshAddress: your.eventmesh.server:10000subject: TopicTestidc: FTenv: PRDgroup: mongodbSinkappId: 5031userName: mongodbSinkUserpassWord: mongodbPassWordconnectorConfig:
connectorName: mongodbSink# REPLICA_SET or STANDALONE is supportedconnectorType: STANDALONE# mongodb://root:[email protected]:27018,127.0.0.1:27019url: mongodb://127.0.0.1:27018database: yourDBcollection: yourCol
MongoDBSourceConnector: From MongoDB to EventMesh
launch your MongoDB server and EventMesh Runtime.
enable sourceConnector and check source-config.yml (Basically the same as sink-config.yml)
start your MongoDBSourceConnector, it will subscribe to the collection defined in connectorConfig.collection in your MongoDB and send data to pubSubConfig.subject of EventMesh Runtime.
write a CloudEvent message to yourCol at yourDB in your MongoDB and then you will receive the message in EventMesh.