跳到主要内容

Pub/Sub component

Configuration file structure

The json configuration file has the following structure:

"pub_subs": {
"<Component A Name>": {
"type":"<Component A Type>",
"metadata": {
"<KEY>": "<VALUE>",
"<KEY>": "<VALUE>"
}
},
"<Component B Name>": {
"type":"<Component B Type>",
"metadata": {
"<KEY>": "<VALUE>",
"<KEY>": "<VALUE>"
}
}
}

You can configure the key/value configuration items that the component cares about in the metadata. For example, redis component configuration is as follows:

"pub_subs": {
"pubsub_dmoe": {
"type": "redis",
"metadata": {
"redisHost": "localhost:6380",
"redisPassword": ""
}
}
},

Configuration item description

Each component has its own special configuration items. Please refer to the documentation for each component.