Standard message config for In Out topics

From Izara Wiki
Revision as of 12:57, 7 November 2020 by Sven the Barbarian (talk | contribs) (Created page with "= Overview = All messages sent to MsgOut SNS queue for a service must hardcode its configuration, this is used by the Service - Message Config Manager|Message Config Manage...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

All messages sent to MsgOut SNS queue for a service must hardcode its configuration, this is used by the Message Config Manager service which stores every MsgOut config for every service in the project, which can then be used for example by client that sets up user notifications, or Activity Switchboard service.

Msg Out config 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 Msg Out configuration 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