[go: up one dir, main page]

CN108933699A - Message template-based multi-cloud platform message sending method - Google Patents

Message template-based multi-cloud platform message sending method Download PDF

Info

Publication number
CN108933699A
CN108933699A CN201810779301.7A CN201810779301A CN108933699A CN 108933699 A CN108933699 A CN 108933699A CN 201810779301 A CN201810779301 A CN 201810779301A CN 108933699 A CN108933699 A CN 108933699A
Authority
CN
China
Prior art keywords
message
template
cloud platform
parameter
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201810779301.7A
Other languages
Chinese (zh)
Inventor
黄伟健
季统凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201810779301.7A priority Critical patent/CN108933699A/en
Publication of CN108933699A publication Critical patent/CN108933699A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of cloud platform message sending, in particular to a message template-based multi-cloud platform message sending method. The method of the invention is that a management and management system defines the message sending type and the sending module of a registered cloud platform; each cloud platform customizes a sending template of the cloud platform in a management and management system; when a certain cloud platform needs to send a message, a sending template of the platform is obtained, parameters in the template content are replaced to be specific values, and a message sending module is called to send the message. The method and the device solve the problems that message sending of the multi-cloud platform is complex, message sending templates of the multi-cloud platform cannot be uniformly set, human resources are wasted and the like. The message templates of the multiple cloud platforms can be configured in a unified mode, and each cloud platform can be set in a personalized mode, so that the flexibility, the expandability and the customization degree of message sending of the multiple cloud platforms are further improved.

Description

一种基于消息模板的多云平台消息发送方法A method for sending messages on multi-cloud platforms based on message templates

技术领域technical field

本发明涉及云平台消息发送技术领域,特别是一种基于消息模板的多云平台消息发送方法。The invention relates to the technical field of cloud platform message sending, in particular to a message template-based multi-cloud platform message sending method.

背景技术Background technique

由于云计算快速发展多年,已经涌现一大批成熟的云计算平台,几乎所有的云平台都会带有消息通知的功能,而消息通知就需要有消息发送功能。在有些系统中,消息发送的内容是代码里定义,或者从配置文件、数据库中获取;而发送的类型也比较单一,只能发固定类型的消息。许多大型企业或者政府机构,都部署多个不同品牌的云平台,而这些云平台各自都有一套消息发送方法,这样就存在以下隐患:Due to the rapid development of cloud computing for many years, a large number of mature cloud computing platforms have emerged. Almost all cloud platforms have a message notification function, and message notification requires a message sending function. In some systems, the content of message sending is defined in the code, or obtained from configuration files or databases; and the type of sending is relatively simple, and only fixed types of messages can be sent. Many large enterprises or government agencies deploy multiple cloud platforms of different brands, and each of these cloud platforms has a set of message sending methods, so there are the following hidden dangers:

一是各个云平台提供的消息发送功能都存在差异性,包括消息内容和消息发送类型,无法统一配置管理。First, there are differences in the message sending functions provided by each cloud platform, including message content and message sending type, which cannot be uniformly configured and managed.

二是各个云平台需要单独处理消息模块,造成人力资源浪费。Second, each cloud platform needs to process message modules separately, resulting in a waste of human resources.

同时,随着云平台的业务需求不断发展,面对以后消息模块的功能变动,增加其它的消息发送类型,就需要对原有代码进行修改,无法高效扩展。At the same time, with the continuous development of the business requirements of the cloud platform, in the face of future function changes of the message module and the addition of other message sending types, the original code needs to be modified, which cannot be expanded efficiently.

发明内容Contents of the invention

本发明解决的技术问题在于提供一种基于消息模板的多云平台消息发送方法;解决多云平台消息发送复杂、无法统一设置多云平台的消息发送模板、造成人力资源浪费等问题。The technical problem solved by the present invention is to provide a multi-cloud platform message sending method based on a message template; to solve the problems of complex message sending on multi-cloud platforms, inability to uniformly set message sending templates of multi-cloud platforms, and waste of human resources.

本发明解决上述技术问题的技术方案是:The technical scheme that the present invention solves the problems of the technologies described above is:

所述的方法是由统管系统对注册的云平台的消息发送类型、发送模块进行定义;每个云平台在统管系统定制自身的发送模板;当某个云平台需要发送消息,获取该平台的发送模板并替换模板内容中的参数为具体值,调用消息发送模块进行消息发送。The method is defined by the unified management system for the message sending type and sending module of the registered cloud platform; each cloud platform customizes its own sending template in the unified management system; when a certain cloud platform needs to send a message, obtain the sending information of the platform. template and replace the parameters in the template content with specific values, and call the message sending module to send the message.

所述的统管系统,是指一个统一管理多个云平台基础设施的系统,云平台的各种功能都通过此系统进行操作,统管系统包含了不同云平台的所有功能操作;The unified management system refers to a system that uniformly manages the infrastructure of multiple cloud platforms. Various functions of the cloud platforms are operated through this system, and the unified management system includes all functional operations of different cloud platforms;

所述云平台通过组件部署的服务地址注册到统管系统中来调用该服务资源,是一种面向对象服务注册方式。The cloud platform invokes the service resource by registering the service address of the component deployment into the unified management system, which is an object-oriented service registration method.

所述的消息发送类型包括站内信、邮件、短信等类型,消息发送模板根据消息模板类型的不同,站内信会调用平台定义的站内信发送接口,邮件会使用javamail第三方库的发送接口,短信会调用购买的短信服务商提供的接口或jar包。The message sending types include in-site letter, mail, short message and other types. The message sending template is based on the different message template types. The in-site letter will call the platform-defined in-site letter sending interface, and the mail will use the sending interface of the javamail third-party library. The interface or jar package provided by the purchased SMS service provider will be called.

所述的发送模板是指具有消息发送业务功能所对应的内容模板,并且可供所有云平台使用,是统管系统默认消息发送模板,只有统管系统的管理员才有编辑的权限。The sending template refers to a content template corresponding to the message sending service function, and can be used by all cloud platforms. It is the default message sending template of the unified management system, and only the administrator of the unified management system has editing authority.

每个云平台在统管系统已有的默认消息模板基础上,根据自身的业务需求定制的消息发送模板,只供自身云平台使用。On the basis of the existing default message templates in the unified management system, each cloud platform customizes message sending templates according to its own business needs, which are only used by its own cloud platform.

所述的替换模板内容,是指获取对应云平台的业务流程的具体参数值并替换掉相关模板内容中以特定符号标示的参数的过程,模板内容中以特定符号标示的参数格式为${参数名},其中参数分为公共参数和模板特定参数。The replacement template content refers to the process of obtaining the specific parameter values of the business process corresponding to the cloud platform and replacing the parameters marked with specific symbols in the relevant template content. The format of the parameters marked with specific symbols in the template content is ${parameter name}, where parameters are divided into public parameters and template-specific parameters.

所述消息发送模块,是指一个执行消息具体发送的模块,从消息发送表中读取需要发送消息的数据,根据数据的消息类型调用不同的发送接口,并向相关云平台的用户发送消息。The message sending module refers to a module that executes the specific sending of messages, reads the data that needs to be sent from the message sending table, calls different sending interfaces according to the message type of the data, and sends messages to users of the relevant cloud platform.

本发明解决了多云平台消息发送复杂、无法统一设置多云平台的消息发送模板、造成人力资源浪费等问题。多云平台的消息模板既可以统一配置,也可以让每个云平台个性化设置,进一步提高了多云平台消息发送的灵活性、可扩展性以及可定制化程度。The invention solves the problems of complex message sending on multi-cloud platforms, inability to uniformly set message sending templates on multi-cloud platforms, waste of human resources, and the like. The message templates of the multi-cloud platform can be configured uniformly, or can be customized for each cloud platform, which further improves the flexibility, scalability, and degree of customization of message sending on the multi-cloud platform.

附图说明Description of drawings

下面结合附图对本发明进一步说明:Below in conjunction with accompanying drawing, the present invention is further described:

图1为本发明方法流程图。Fig. 1 is a flow chart of the method of the present invention.

具体实施方式Detailed ways

见图1,本发明的基本流程如下:See Fig. 1, basic flow process of the present invention is as follows:

步骤1:在统管系统的云注册中心注册多个云平台;Step 1: Register multiple cloud platforms in the cloud registration center of the unified management system;

步骤2:定义消息发送的类型;Step 2: Define the type of message sending;

步骤3:定义系统消息发送模板;Step 3: Define the system message sending template;

步骤4:每个云平台定制自身的消息发送模板;Step 4: Each cloud platform customizes its own message sending template;

步骤5:编辑模板内容并保存到数据库;Step 5: Edit the template content and save it to the database;

步骤6:触发消息发送业务流程,获取模板并替换模板内容中的参数为具体值,调用消息发送模块。Step 6: Trigger the message sending business process, obtain the template and replace the parameters in the template content with specific values, and call the message sending module.

统管系统,是指一个统一管理多个云平台基础设施的系统,云平台的各种功能都通过此系统进行操作,统管系统包含了不同云平台的所有功能操作;The unified management system refers to a system that manages the infrastructure of multiple cloud platforms in a unified manner. Various functions of the cloud platforms are operated through this system. The unified management system includes all functional operations of different cloud platforms;

云平台通过组件部署的服务地址注册到统管系统中来调用该服务资源,是一种面向对象服务注册方式。The cloud platform registers the service address deployed by the component into the unified management system to call the service resource, which is an object-oriented service registration method.

消息发送类型包括站内信、邮件、短信等类型,消息发送模板根据消息模板类型的不同,站内信会调用平台定义的站内信发送接口,邮件会使用javamail第三方库的发送接口,短信会调用购买的短信服务商提供的接口或jar包。The types of message sending include in-site mail, email, SMS, etc. The message sending template depends on the type of message template. The in-site message will call the platform-defined in-site message sending interface, the mail will use the sending interface of the javamail third-party library, and the SMS will call the purchase The interface or jar package provided by the SMS service provider.

发送模板是指具有消息发送业务功能所对应的内容模板,并且可供所有云平台使用,是统管系统默认消息发送模板,只有统管系统的管理员才有编辑的权限。The sending template refers to the content template corresponding to the message sending business function, and can be used by all cloud platforms. It is the default message sending template of the unified management system, and only the administrator of the unified management system has the permission to edit it.

每个云平台在统管系统已有的默认消息模板基础上,根据自身的业务需求定制的消息发送模板,只供自身云平台使用。On the basis of the existing default message templates in the unified management system, each cloud platform customizes message sending templates according to its own business needs, which are only used by its own cloud platform.

替换模板内容,是指获取对应云平台的业务流程的具体参数值并替换掉相关模板内容中以特定符号标示的参数的过程,模板内容中以特定符号标示的参数格式为${参数名},其中参数分为公共参数和模板特定参数。Replacing the template content refers to the process of obtaining the specific parameter values of the business process corresponding to the cloud platform and replacing the parameters marked with specific symbols in the relevant template content. The format of the parameters marked with specific symbols in the template content is ${parameter name}, The parameters are divided into public parameters and template-specific parameters.

消息发送模块,是指一个执行消息具体发送的模块,从消息发送表中读取需要发送消息的数据,根据数据的消息类型调用不同的发送接口,并向相关云平台的用户发送消息。The message sending module refers to a module that executes the specific sending of messages, reads the data to be sent from the message sending table, calls different sending interfaces according to the message type of the data, and sends messages to users of the relevant cloud platform.

实现上述步骤的相关代码如下:The relevant code to implement the above steps is as follows:

1、注册云平台代码如下:1. Register the cloud platform code as follows:

2、首先定义消息发送的类型,代码如下:2. First define the type of message sending, the code is as follows:

3、其次定义消息类型的具体发送方法,站内信会调用平台定义的站内信发送接口,邮件会使用javamail第三方库的发送接口,短信会调用购买的短信服务商提供的接口或jar包,代码如下:3. Next, define the specific sending method of the message type. The internal message will call the platform-defined internal message sending interface, the mail will use the sending interface of the javamail third-party library, and the short message will call the interface or jar package provided by the purchased SMS service provider, code as follows:

4、然后定义需要发送消息的模板,由于消息模板比较多,这里只列出一部分,代码如下:4. Then define the templates that need to send messages. Since there are many message templates, only a part is listed here. The code is as follows:

5、获取模板并替换模板内容中的参数为具体值,代码如下:5. Obtain the template and replace the parameters in the template content with specific values, the code is as follows:

6、调用消息发送模块,完成消息发送,代码如下:6. Call the message sending module to complete the message sending. The code is as follows:

Claims (10)

1. a kind of cloudy platform message method based on message template, it is characterised in that: the method is by system under the overall leadership It unites and the message delivery type of the cloud platform of registration, sending module is defined;Each cloud platform is in system customization under the overall leadership itself Transmission template;When some cloud platform needs to send message, obtains the transmission template of the platform and replace the ginseng in template content Number is occurrence, and message transmission module is called to carry out message transmission.
2. according to the method described in claim 1, it is characterized by:
The system under the overall leadership refers to the system of the multiple cloud platform infrastructure of unified management, the various functions of cloud platform It is all operated by this system, system under the overall leadership contains all feature operations of different cloud platforms;
The cloud platform is registered in system under the overall leadership by the address of service of deployment of components and calls the Service Source, is a kind of face To objects services logon mode.
3. according to the method described in claim 1, it is characterized by:
The message delivery type includes the types such as letter, mail, short message in standing, and message sends template according to message template type Difference, stand in letter letter transmission interface, mail can will use the transmission of javamail third party library in the station that defines of calling platform Interface, the interface or jar packet that short message can call the sms sp of purchase to provide.
4. according to the method described in claim 2, it is characterized by:
The message delivery type includes the types such as letter, mail, short message in standing, and message sends template according to message template type Difference, stand in letter letter transmission interface, mail can will use the transmission of javamail third party library in the station that defines of calling platform Interface, the interface or jar packet that short message can call the sms sp of purchase to provide.
5. method according to any one of claims 1 to 4, it is characterised in that:
The transmission template, which refers to, sends content template corresponding to business function with message, and for all cloud platforms It uses, is that system default message under the overall leadership sends template, the administrator of system only under the overall leadership just has the permission of editor.
6. method according to any one of claims 1 to 4, it is characterised in that: each cloud platform is existing in system under the overall leadership On the basis of default message template, template is sent according to the message of the business demand of itself customization, is used only for itself cloud platform.
7. according to the method described in claim 5, it is characterized by: each cloud platform is in the existing default message mould of system under the overall leadership On the basis of plate, template is sent according to the message of the business demand of itself customization, is used only for itself cloud platform.
8. method according to any one of claims 1 to 4, it is characterised in that:
The replacement template content refers to the design parameter value for the operation flow for obtaining corresponding cloud platform and replaces relevant mode It with the parameter format of special symbol mark is $ { parameter in template content with the process of the parameter of special symbol mark in plate content Name }, wherein parameter is divided into common parameter and template special parameter.
9. according to the method described in claim 7, it is characterized by:
The replacement template content refers to the design parameter value for the operation flow for obtaining corresponding cloud platform and replaces relevant mode It with the parameter format of special symbol mark is $ { parameter in template content with the process of the parameter of special symbol mark in plate content Name }, wherein parameter is divided into common parameter and template special parameter.
10. according to the method described in claim 9, it is characterized by:
The message transmission module refers to that one executes the module that message is specifically sent, and reads from message transmission table and needs to send out The data for sending message call different transmission interfaces according to the type of message of data, and send and disappear to the user of related cloud platform Breath.
CN201810779301.7A 2018-07-16 2018-07-16 Message template-based multi-cloud platform message sending method Withdrawn CN108933699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810779301.7A CN108933699A (en) 2018-07-16 2018-07-16 Message template-based multi-cloud platform message sending method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810779301.7A CN108933699A (en) 2018-07-16 2018-07-16 Message template-based multi-cloud platform message sending method

Publications (1)

Publication Number Publication Date
CN108933699A true CN108933699A (en) 2018-12-04

Family

ID=64448153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810779301.7A Withdrawn CN108933699A (en) 2018-07-16 2018-07-16 Message template-based multi-cloud platform message sending method

Country Status (1)

Country Link
CN (1) CN108933699A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111342982A (en) * 2020-02-28 2020-06-26 海信集团有限公司 Method and system for transmitting integrated multiple messages
CN115174158A (en) * 2022-06-14 2022-10-11 阿里云计算有限公司 Cloud product configuration checking method based on multi-cloud management platform
CN115796143A (en) * 2023-01-18 2023-03-14 鲁班(北京)电子商务科技有限公司 Cross-platform message template configuration method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713476A (en) * 2017-01-01 2017-05-24 国云科技股份有限公司 A Method for Realizing Message Sending Based on Message Template
CN107977773A (en) * 2017-11-10 2018-05-01 国云科技股份有限公司 A method for managing multi-project resource quotas of multiple cloud platforms
CN107992767A (en) * 2017-11-29 2018-05-04 国云科技股份有限公司 Authority control method based on multi-cloud platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713476A (en) * 2017-01-01 2017-05-24 国云科技股份有限公司 A Method for Realizing Message Sending Based on Message Template
CN107977773A (en) * 2017-11-10 2018-05-01 国云科技股份有限公司 A method for managing multi-project resource quotas of multiple cloud platforms
CN107992767A (en) * 2017-11-29 2018-05-04 国云科技股份有限公司 Authority control method based on multi-cloud platform

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111342982A (en) * 2020-02-28 2020-06-26 海信集团有限公司 Method and system for transmitting integrated multiple messages
CN111342982B (en) * 2020-02-28 2021-12-28 海信集团有限公司 Method and system for transmitting integrated multiple messages
CN115174158A (en) * 2022-06-14 2022-10-11 阿里云计算有限公司 Cloud product configuration checking method based on multi-cloud management platform
CN115174158B (en) * 2022-06-14 2024-04-16 阿里云计算有限公司 Cloud product configuration checking method based on multi-cloud management platform
CN115796143A (en) * 2023-01-18 2023-03-14 鲁班(北京)电子商务科技有限公司 Cross-platform message template configuration method and device
CN115796143B (en) * 2023-01-18 2023-06-02 鲁班(北京)电子商务科技有限公司 Cross-platform message template configuration method and device

Similar Documents

Publication Publication Date Title
CN101415144B (en) Mobile medium information synthesis business platform system and implementing method thereof
CN104408132B (en) Data push method and system
US9417849B2 (en) Communications network, computer architecture, computer-implemented method and computer program product for development and management of femtocell-based applications
CN106713476A (en) A Method for Realizing Message Sending Based on Message Template
CN101141698B (en) A customized information push system and method based on mobile terminal management business
CN103051652B (en) A kind of mobile terminal cloud computing distribution platform
CN110705236A (en) Electronic contract template dynamic configuration method and system
CN107168746A (en) A kind of micro services generation method and device
CN108933699A (en) Message template-based multi-cloud platform message sending method
CN109213478A (en) Method for creating application by self-defining template based on multi-cloud platform
CN111400554B (en) Access method and device for unified tag library
CN105278971A (en) Mobile terminal installation package batch generation method and device
CN100574439C (en) System and method for realizing uploading of third-party audio and video content in IPTV system
CN109067911B (en) Message sending implementation method based on multi-cloud platform sending conditions
CN109710486A (en) Method for customizing instance alarm strategy based on multi-cloud platform
CN106201466A (en) A template management method based on heat
CN114363409B (en) A multi-channel configurable unified message management method, platform and system
CN109190075A (en) Message sending method based on multiple cloud platform message types
CN108923991A (en) Strategy template implementation method based on multi-cloud platform
WO2019134575A1 (en) Address book contact updating method, device, apparatus, and storage medium
CN109376130A (en) Method for recording operation log by self-defined template based on multi-cloud platform
CN102196010A (en) System and method for implementing application open interface at terminal side
CN112235410B (en) Method and related device based on mapping of business language and system language
CN104216712B (en) A kind of application program acquisition methods, provide method and device
CN116560723A (en) System and method for quickly generating mobile terminal data acquisition software through zero code development

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20181204

WW01 Invention patent application withdrawn after publication