preface

In design before news center to summarize some of the content, sharing, hope to be able to help to people doing similar design, the business scenario is based on multiple schools and the government’s announcement news push demand, whether for blocking and send timely monitoring more seriously, and send the channel selection is also varied, Based on this, the scheme planning is done.

An overview of the

  • The message center provides unified message configuration, pushes messages to specified terminals according to specified rules, monitors links and services during this process, and outputs O&M and operation reports.

  • The message center consists of four modules: message configuration, message push, message monitoring and message report.

The module layer

  • The function module of the message center is shown in the figure. The access party includes internal application event triggering and active triggering connection with the system management background, and external third application connection as an extension.

  • layered
    • Access layer – responsible for interface protocol conversion, interface permission and security verification, and interface call traffic for controllable operations.
    • Verification layer – Mainly lays the groundwork for risk control of messages. For different types and categories of messages, there will be corresponding verification of legal and compliance rules, and the setting and filtering of blacklist and whitelist (user level, organization level, application level), etc.
    • Push layer: The docking channel performs corresponding operations according to configuration rules and sending mode to send messages to terminals.
    • Storage layer – Mainly for message records, message ontology, and different dimensions of the metric analysis data results for persistent operations.

  • Configuration module
    • Different configuration capabilities in the configuration module are used in different layers for unified management and maintenance.
  • Monitoring module
    • This involves monitoring message links, including MQ’s own resources and business dimensions.

Message configuration module

  • The message configuration module mainly maintains and manages the related configuration data in a unified manner, including message definition configuration, message template configuration, message priority configuration, message sending mode configuration (rule configuration), etc.

Configuration capabilities for message definitions

  • The configuration includes the message type, message code, message description, DND or NOT, and message priority.
    • The setting of message priority is mainly based on the priority in push. The higher the priority is, the channel will be preferentially used for push.

Configuration capabilities for message templates

  • Template Configuration
    • The template configuration includes the template code, template name, message type, template message title, and template message content

Send Rule Configuration

  • Push frequency configuration
  • Failed to configure the retransmission rule
  • Whether to send it immediately
  • Whether manual triggering is allowed
  • Message template selection
  • Sending channel selection

Message push module

  • The message push module is mainly responsible for the end-to-end execution of messages, provides unified push interface through integrated push channels, and maintains and manages all push channels in a unified manner.

  • The core functions of the push module are the distribution function of message push and the recording function of message data, mainly providing metadata sources [return receipt data, invalid data, duration data, etc.] for the output of message reports.

Message monitoring module

  • In addition to message queue related resources monitoring, the message monitoring module also needs to monitor the whole service link from message access to delivery terminal and message receipt. The core point is also the monitoring of service attributes, and it can support alarm threshold warning and alarm notification.

Message report module

  • The main function of message report module is to query, maintain and manage the indexes of each dimension.
  • Message report dimensions
    • Interface call volume indicator – Application dimension and time dimension
    • Number of people sending messages – Application dimension and time dimension
    • Number of messages sent and per capita – Application dimension and time dimension
    • Message send distribution statistics – Application dimension, time dimension
    • Message read and unread statistics – Application dimension, message dimension, and time dimension
    • Message sending progress – Message dimension
    • Statistics indicator of message sending failure – Message dimension
    • Statistical indicator of message sending duration – Message dimension and time dimension [used to predict remaining time]
    • Other business metrics – Application dimensions, business dimensions, and time dimensions
    • Channel status indicator – Time dimension, MQ dimension
    • Priority channel and priority message monitoring metrics – message dimension, MQ dimension, time dimension