Standard message config for In Out topics
Revision as of 02:24, 8 November 2020 by Sven the Barbarian (talk | contribs)
Overview
All messages sent to MsgIn or MsgOut SNS queues have a hardcoded configuration, this is used by the Message Config Manager service which stores every MsgCfg for every service in the project, which can then be used for example by client that sets up user notifications, or Activity Switchboard service.
This configuration can also be used to validate messages being sent are formatted correctly.
MsgCfg syntax
{msgTag}: {
properties:{
{propertyName}:{
required: true|false, //default: true
stringified: true|false, //default: false
isObject: true|false, //default: false, if is an object will look for child properties
properties: // if is set to isObject: true, nest levels using properties
activityTrigger: true|false, //default: false, whether can be used as a trigger in [[Service - Activity Switchboard|Activity Switchboard]] service
},
..
}
allowAdditionalProperties: true|false, //default: true, if false only the specified properties are allowed
}
Location of MsgCfg file
...
Validation of outgoing messages
- Can add to middleware function/s for validating and sending messages to the MsgOut SNS queue for the current service