CN118555263A - Message processing system and method, message updating method and subscription request processing method - Google Patents
Message processing system and method, message updating method and subscription request processing method Download PDFInfo
- Publication number
- CN118555263A CN118555263A CN202411018829.4A CN202411018829A CN118555263A CN 118555263 A CN118555263 A CN 118555263A CN 202411018829 A CN202411018829 A CN 202411018829A CN 118555263 A CN118555263 A CN 118555263A
- Authority
- CN
- China
- Prior art keywords
- message
- field
- target
- subscription
- server
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/06—Message adaptation to terminal or network requirements
- H04L51/066—Format adaptation, e.g. format conversion or compression
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/18—Commands or executable codes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本说明书实施例提供消息处理系统和方法、消息更新方法及订阅请求处理方法,消息处理系统包括发送端,服务端和多个订阅端;发送端确定初始字段消息和关联服务端的消息格式,按照消息格式将初始字段消息转换为目标字段消息,并将目标字段消息发送至服务端;服务端基于目标字段消息将局部字段消息更新为全局字段消息;在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,对订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则;根据订阅信息在全局字段消息中提取字段信息;基于字段信息和字段配置规则生成目标消息,并将目标消息发送至目标订阅端。发送端和订阅端解耦,统一了消息格式。减轻了发送端的消息处理压力。
The embodiments of this specification provide a message processing system and method, a message update method, and a subscription request processing method. The message processing system includes a sender, a server, and multiple subscribers; the sender determines the message format of the initial field message and the associated server, converts the initial field message into a target field message according to the message format, and sends the target field message to the server; the server updates the local field message to a global field message based on the target field message; when receiving a subscription request submitted by a target subscriber among multiple subscribers, the subscription request is parsed, and subscription information and field configuration rules are determined according to the parsing result; field information is extracted from the global field message according to the subscription information; a target message is generated based on the field information and field configuration rules, and the target message is sent to the target subscriber. The sender and the subscriber are decoupled, and the message format is unified. The message processing pressure on the sender is reduced.
Description
技术领域Technical Field
本说明书实施例涉及计算机技术领域,特别涉及消息处理系统和方法、消息更新方法及订阅请求处理方法。The embodiments of the present specification relate to the field of computer technology, and in particular, to a message processing system and method, a message updating method, and a subscription request processing method.
背景技术Background Art
在消息的发布与订阅场景下,通常是由订阅端向发送端提交订阅请求,发送端直接处理接收到的订阅请求。基于MQ的消息通信模式中,消息发送端需要针对不同的订阅端构建不同格式的消息并发送。若订阅端A需要消息中的ID、名称、时间三个字段,订阅端B需要ID、描述、标签三个字段。发送端就需要分别构建这两种格式的消息并发送。这大大提高了发送端构建消息的复杂性。当有新的订阅端加入时,发送端又需要新增一套消息构建和发送流程。随着订阅端的增多,发送端需要构建和发送的消息种类迅速膨胀,重复劳动增加,提高了发送端的消息处理压力。因此,亟需一种较为有效的消息处理系统以解决上述问题。In the message publishing and subscription scenario, the subscriber usually submits a subscription request to the sender, and the sender directly processes the received subscription request. In the MQ-based message communication mode, the message sender needs to construct and send messages of different formats for different subscribers. If subscriber A needs three fields in the message: ID, name, and time, and subscriber B needs three fields: ID, description, and tag. The sender needs to construct and send messages of these two formats respectively. This greatly increases the complexity of message construction on the sender. When a new subscriber joins, the sender needs to add a new set of message construction and sending processes. With the increase in subscribers, the types of messages that the sender needs to construct and send expand rapidly, duplication of work increases, and the message processing pressure on the sender increases. Therefore, a more effective message processing system is urgently needed to solve the above problems.
发明内容Summary of the invention
有鉴于此,本说明书实施例提供了一种消息处理系统。本说明书一个或者多个实施例同时涉及一种消息处理方法,一种消息处理装置,一种消息更新方法,一种订阅请求处理方法,一种计算设备,一种计算机可读存储介质以及一种计算机程序产品,以解决现有技术中存在的技术缺陷。In view of this, an embodiment of this specification provides a message processing system. One or more embodiments of this specification also relate to a message processing method, a message processing device, a message update method, a subscription request processing method, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.
根据本说明书实施例的第一方面,提供了一种消息处理系统,包括发送端,服务端和多个订阅端;According to a first aspect of an embodiment of this specification, a message processing system is provided, including a sending end, a service end, and a plurality of subscribers;
所述发送端,用于确定初始字段消息和关联所述服务端的消息格式,按照所述消息格式将所述初始字段消息转换为目标字段消息,并将所述目标字段消息发送至所述服务端;The sending end is used to determine the message format of the initial field message and the associated server, convert the initial field message into a target field message according to the message format, and send the target field message to the server;
所述服务端,用于基于所述目标字段消息将局部字段消息更新为全局字段消息;在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,对所述订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则;根据所述订阅信息在所述全局字段消息中提取字段信息;基于所述字段信息和所述字段配置规则生成目标消息,并将所述目标消息发送至所述目标订阅端。The server is used to update the local field message to a global field message based on the target field message; when receiving a subscription request submitted by a target subscriber among multiple subscribers, parse the subscription request, and determine the subscription information and field configuration rules according to the parsing result; extract field information from the global field message according to the subscription information; generate a target message based on the field information and the field configuration rules, and send the target message to the target subscriber.
可选地,所述发送端,还用于在接收到针对所述目标字段消息的待更新消息的情况下,按照所述消息格式将所述待更新消息转换为更新消息,并将所述更新消息发送至所述服务端。Optionally, the sending end is further used to, upon receiving a message to be updated for the target field message, convert the message to be updated into an update message according to the message format, and send the update message to the server.
可选地,所述服务端,用于将所述目标字段消息添加至所述局部字段消息所在的消息集,根据添加结果确定所述消息集中存储的所述全局字段消息。Optionally, the server is used to add the target field message to the message set where the local field message is located, and determine the global field message stored in the message set according to the adding result.
可选地,所述服务端,用于确定所述订阅信息包含的至少一个订阅字段;调用消息拆分器,基于所述至少一个订阅字段对所述全局字段消息进行拆分,根据拆分结果确定与所述至少一个订阅字段分别对应的目标字段信息;由所述至少一个订阅字段分别对应的目标字段信息组成所述字段信息。Optionally, the server is used to determine at least one subscription field contained in the subscription information; call a message splitter to split the global field message based on the at least one subscription field, and determine the target field information corresponding to the at least one subscription field according to the splitting result; and the field information is composed of the target field information corresponding to the at least one subscription field.
可选地,所述服务端,用于在所述字段信息中确定与所述订阅信息包含的至少一个订阅字段分别对应的订阅字段信息,并按照所述字段配置规则对所述至少一个订阅字段以及所述的至少一个订阅字段分别对应的订阅字段信息进行组合,生成所述目标消息。Optionally, the server is used to determine in the field information subscription field information corresponding to at least one subscription field contained in the subscription information, and combine the at least one subscription field and the subscription field information corresponding to the at least one subscription field according to the field configuration rule to generate the target message.
可选地,所述服务端,用于调用解析器对所述字段配置规则进行解析,根据解析结果确定包含主题信息的订阅关系模型,并基于所述订阅关系模型对所述至少一个订阅字段以及所述的至少一个订阅字段分别对应的订阅字段信息进行组合,生成所述目标消息。Optionally, the server is used to call a parser to parse the field configuration rules, determine a subscription relationship model containing the topic information based on the parsing results, and combine the at least one subscription field and the subscription field information corresponding to the at least one subscription field based on the subscription relationship model to generate the target message.
可选地,所述服务端,还用于根据所述订阅请求携带的订阅端信息确定所述目标订阅端,并将所述目标消息发送至所述目标订阅端。Optionally, the server is further configured to determine the target subscriber according to the subscriber information carried in the subscription request, and send the target message to the target subscriber.
根据本说明书实施例的第二方面,提供了一种消息处理方法,应用于服务端,其中,所述服务端关联消息格式,包括:According to a second aspect of an embodiment of this specification, a message processing method is provided, which is applied to a server, wherein the server associates a message format, including:
接收发送端发送的目标字段消息,其中,所述目标字段消息按照所述消息格式对初始字段消息进行转换确定;Receiving a target field message sent by a sending end, wherein the target field message is determined by converting an initial field message according to the message format;
基于所述目标字段消息将局部字段消息更新为全局字段消息;updating the local field message to a global field message based on the target field message;
在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,对所述订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则;When receiving a subscription request submitted by a target subscriber among multiple subscribers, parsing the subscription request, and determining subscription information and field configuration rules according to the parsing result;
根据所述订阅信息在所述全局字段消息中提取字段信息;extracting field information from the global field message according to the subscription information;
基于所述字段信息和所述字段配置规则生成目标消息,并将所述目标消息发送至所述目标订阅端。A target message is generated based on the field information and the field configuration rule, and the target message is sent to the target subscriber.
根据本说明书实施例的第三方面,提供了一种消息处理装置,应用于服务端,其中,所述服务端关联消息格式,包括:According to a third aspect of an embodiment of this specification, a message processing device is provided, which is applied to a server, wherein the server associates a message format, including:
接收模块,被配置为接收发送端发送的目标字段消息,其中,所述目标字段消息按照所述消息格式对初始字段消息进行转换确定;A receiving module is configured to receive a target field message sent by a sending end, wherein the target field message is determined by converting the initial field message according to the message format;
更新模块,被配置为基于所述目标字段消息将局部字段消息更新为全局字段消息;an updating module, configured to update the local field message to a global field message based on the target field message;
解析模块,被配置为在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,对所述订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则;A parsing module is configured to parse the subscription request submitted by a target subscriber among multiple subscribers when receiving the subscription request, and determine the subscription information and field configuration rules according to the parsing result;
提取模块,被配置为根据所述订阅信息在所述全局字段消息中提取字段信息;An extraction module, configured to extract field information from the global field message according to the subscription information;
生成模块,被配置为基于所述字段信息和所述字段配置规则生成目标消息,并将所述目标消息发送至所述目标订阅端。A generating module is configured to generate a target message based on the field information and the field configuration rule, and send the target message to the target subscriber.
根据本说明书实施例的第四方面,提供了一种消息更新方法,应用于服务端,其中,所述服务端关联消息格式,包括:According to a fourth aspect of an embodiment of this specification, a message updating method is provided, which is applied to a server, wherein the server associates a message format, including:
接收发送端发送的目标字段消息,其中,所述目标字段消息按照所述消息格式对初始字段消息进行转换确定;Receiving a target field message sent by a sending end, wherein the target field message is determined by converting an initial field message according to the message format;
基于所述目标字段消息将局部字段消息更新为全局字段消息,其中,所述全局字段消息用于生成关联目标订阅端的订阅请求对应的目标消息。The local field message is updated to a global field message based on the target field message, wherein the global field message is used to generate a target message corresponding to a subscription request associated with a target subscriber.
根据本说明书实施例的第五方面,提供了一种消息更新装置,应用于服务端,其中,所述服务端关联消息格式,包括:According to a fifth aspect of the embodiments of this specification, a message updating device is provided, which is applied to a server, wherein the server associates a message format, including:
接收模块,被配置为接收发送端发送的目标字段消息,其中,所述目标字段消息按照所述消息格式对初始字段消息进行转换确定;A receiving module is configured to receive a target field message sent by a sending end, wherein the target field message is determined by converting the initial field message according to the message format;
生成模块,被配置为基于所述目标字段消息将局部字段消息更新为全局字段消息,其中,所述全局字段消息用于生成关联目标订阅端的订阅请求对应的目标消息。The generating module is configured to update the local field message into a global field message based on the target field message, wherein the global field message is used to generate a target message corresponding to a subscription request associated with a target subscriber.
根据本说明书实施例的第六方面,提供了一种订阅请求处理方法,应用于服务端,包括:According to a sixth aspect of an embodiment of this specification, a subscription request processing method is provided, which is applied to a server, including:
接收目标订阅端提交的订阅请求;Receive the subscription request submitted by the target subscriber;
对所述订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则;Parsing the subscription request, and determining subscription information and field configuration rules according to the parsing result;
根据所述订阅信息在全局字段消息中提取字段信息,其中,所述全局字段消息基于发送端发送的字段消息确定;Extracting field information from a global field message according to the subscription information, wherein the global field message is determined based on a field message sent by a sending end;
基于所述字段信息和所述字段配置规则生成目标消息,并将所述目标消息发送至所述目标订阅端。A target message is generated based on the field information and the field configuration rule, and the target message is sent to the target subscriber.
根据本说明书实施例的第七方面,提供了一种订阅请求处理装置,应用于服务端,包括:According to a seventh aspect of an embodiment of this specification, a subscription request processing device is provided, which is applied to a server, including:
接收模块,被配置为接收目标订阅端提交的订阅请求;A receiving module, configured to receive a subscription request submitted by a target subscriber;
解析模块,被配置为对所述订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则;A parsing module, configured to parse the subscription request and determine subscription information and field configuration rules according to the parsing result;
提取模块,被配置为根据所述订阅信息在全局字段消息中提取字段信息,其中,所述全局字段消息基于发送端发送的字段消息确定;an extraction module, configured to extract field information from a global field message according to the subscription information, wherein the global field message is determined based on a field message sent by a sending end;
生成模块,被配置为基于所述字段信息和所述字段配置规则生成目标消息,并将所述目标消息发送至所述目标订阅端。A generating module is configured to generate a target message based on the field information and the field configuration rule, and send the target message to the target subscriber.
根据本说明书实施例的第八方面,提供了一种计算设备,包括:According to an eighth aspect of the embodiments of this specification, a computing device is provided, including:
存储器和处理器;Memory and processor;
所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令,该计算机可执行指令被处理器执行时实现上述方法的步骤。The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the above method are implemented.
根据本说明书实施例的第九方面,提供了一种计算机可读存储介质,其存储有计算机可执行指令,该指令被处理器执行时实现上述方法的步骤。According to a ninth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and the instructions implement the steps of the above method when executed by a processor.
根据本说明书实施例的第十方面,提供了一种计算机程序产品,包括计算机程序或指令,该计算机程序或指令被处理器执行时实现上述方法的步骤。According to the tenth aspect of the embodiments of this specification, a computer program product is provided, including a computer program or instructions, which implement the steps of the above method when executed by a processor.
本说明书一个实施例提供的消息处理系统包括发送端,服务端和多个订阅端。发送端确定初始字段消息和关联服务端的消息格式,按照消息格式将初始字段消息转换为目标字段消息,并将目标字段消息发送至服务端。服务端基于目标字段消息将局部字段消息更新为全局字段消息。在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,由服务端对订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则。根据订阅信息在全局字段消息中提取字段信息。基于字段信息和字段配置规则生成目标消息,并将目标消息发送至目标订阅端。发送端只需要向服务端发送符合消息格式的目标字段消息,由服务端代替发送端接收订阅端的订阅请求,并对订阅请求进行处理。实现了发送端和订阅端的解耦,统一了消息格式。避免了发送端消息的冗余发送,减轻了发送端的消息处理压力,也降低了服务端构建订阅端所需的定制消息的复杂性。The message processing system provided by one embodiment of the present specification includes a sender, a server, and multiple subscribers. The sender determines the message format of the initial field message and the associated server, converts the initial field message into a target field message according to the message format, and sends the target field message to the server. The server updates the local field message to a global field message based on the target field message. In the case of receiving a subscription request submitted by a target subscriber among multiple subscribers, the server parses the subscription request and determines the subscription information and field configuration rules according to the parsing result. The field information is extracted from the global field message according to the subscription information. The target message is generated based on the field information and the field configuration rules, and the target message is sent to the target subscriber. The sender only needs to send a target field message that conforms to the message format to the server, and the server receives the subscription request of the subscriber instead of the sender and processes the subscription request. The decoupling of the sender and the subscriber is achieved, and the message format is unified. The redundant sending of the sender's message is avoided, the message processing pressure of the sender is reduced, and the complexity of the custom message required for the server to build the subscriber is reduced.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本说明书一个实施例提供的一种消息处理系统的示意图;FIG1 is a schematic diagram of a message processing system provided by an embodiment of the present specification;
图2是本说明书一个实施例提供的一种消息处理系统的结构图;FIG2 is a structural diagram of a message processing system provided by an embodiment of the present specification;
图3是本说明书一个实施例提供的一种消息处理系统的消息订阅示意图;FIG3 is a schematic diagram of message subscription of a message processing system provided by an embodiment of the present specification;
图4是本说明书一个实施例提供的一种消息处理系统的处理过程流程图;FIG4 is a flow chart of a processing process of a message processing system provided by an embodiment of the present specification;
图5是本说明书一个实施例提供的一种消息处理方法的流程图;FIG5 is a flow chart of a message processing method provided by an embodiment of the present specification;
图6是本说明书一个实施例提供的一种消息处理装置的结构示意图;FIG6 is a schematic diagram of the structure of a message processing device provided by an embodiment of this specification;
图7是本说明书一个实施例提供的一种消息更新方法的流程图;FIG7 is a flow chart of a message updating method provided by an embodiment of this specification;
图8是本说明书一个实施例提供的一种消息更新装置的结构示意图;FIG8 is a schematic diagram of the structure of a message updating device provided by an embodiment of this specification;
图9是本说明书一个实施例提供的一种订阅请求处理方法的流程图;FIG9 is a flowchart of a subscription request processing method provided by an embodiment of the present specification;
图10是本说明书一个实施例提供的一种订阅请求处理装置的结构示意图;FIG10 is a schematic diagram of the structure of a subscription request processing device provided by an embodiment of the present specification;
图11是本说明书一个实施例提供的一种计算设备的结构框图。FIG. 11 is a structural block diagram of a computing device provided in one embodiment of the present specification.
具体实施方式DETAILED DESCRIPTION
在下面的描述中阐述了很多具体细节以便于充分理解本说明书。但是本说明书能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本说明书内涵的情况下做类似推广,因此本说明书不受下面公开的具体实施的限制。Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
在本说明书一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本说明书一个或多个实施例中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
应当理解,尽管在本说明书一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
此外,需要说明的是,本说明书一个或多个实施例所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,并且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准,并提供有相应的操作入口,供用户选择授权或者拒绝。In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
首先,对本说明书一个或多个实施例涉及的名词术语进行解释。First, the terms involved in one or more embodiments of this specification are explained.
Pulsar:高性能、可扩展的分布式消息系统,它提供了发布/订阅模型来处理大规模的消息流。Pulsar的设计目标是提供一个高吞吐量、低延迟、持久化存储和高可用性的消息平台。Pulsar: A high-performance, scalable distributed messaging system that provides a publish/subscribe model to handle large-scale message streams. Pulsar is designed to provide a high-throughput, low-latency, persistent storage, and high-availability messaging platform.
MQ通信:消息队列(Message Queue)通信,是一种在分布式系统中进行进程间通信的方法。消息队列允许进程之间通过消息进行异步通信,其中消息被存储在一个队列中,直到被接收方消费。MQ communication: Message Queue communication is a method of inter-process communication in a distributed system. Message queues allow asynchronous communication between processes through messages, where messages are stored in a queue until they are consumed by the recipient.
图1示出了根据本说明书一个实施例提供的一种消息处理系统的示意图,消息处理系统包括发送端,服务端和多个订阅端。发送端确定初始字段消息和关联服务端的消息格式,消息格式为发送端和服务端之间统一的消息格式。按照消息格式将初始字段消息转换为目标字段消息,并将目标字段消息发送至服务端。服务端接收到目标字段消息后,由于服务端存储了局部字段消息,因此可以基于目标字段消息对局部字段消息进行更新,将目标字段消息添加至局部字段消息所在的存储位置,获得全局字段消息。在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,由服务端对订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则。根据订阅信息在全局字段消息中提取字段信息。基于字段信息和字段配置规则生成目标消息,并将目标消息发送至目标订阅端。FIG1 shows a schematic diagram of a message processing system provided according to an embodiment of the present specification, wherein the message processing system includes a sending end, a server end, and multiple subscribers. The sending end determines the message format of the initial field message and the associated server end, and the message format is a unified message format between the sending end and the server end. The initial field message is converted into a target field message according to the message format, and the target field message is sent to the server end. After the server end receives the target field message, since the server end stores the local field message, the local field message can be updated based on the target field message, and the target field message is added to the storage location where the local field message is located to obtain a global field message. When receiving a subscription request submitted by a target subscriber end among multiple subscriber ends, the server end parses the subscription request and determines the subscription information and field configuration rules based on the parsing results. Field information is extracted from the global field message based on the subscription information. A target message is generated based on the field information and the field configuration rules, and the target message is sent to the target subscriber end.
发送端只需要向服务端发送符合消息格式的目标字段消息,由服务端代替发送端接收订阅端的订阅请求,并对订阅请求进行处理。实现了发送端和订阅端的解耦,统一了消息格式。避免了发送端消息的冗余发送,减轻了发送端的消息处理压力,也降低了服务端构建订阅端所需的定制消息的复杂性。The sender only needs to send a target field message that conforms to the message format to the server. The server receives the subscription request from the subscriber on behalf of the sender and processes the subscription request. This achieves the decoupling of the sender and the subscriber and unifies the message format. It avoids redundant sending of messages on the sender, reduces the message processing pressure on the sender, and reduces the complexity of the server building the customized messages required for the subscriber.
在本说明书中,提供了一种消息处理方法,本说明书同时涉及一种消息处理方法,一种消息处理装置,一种消息更新方法,一种订阅请求处理方法,一种计算设备,一种计算机可读存储介质以及一种计算机程序产品,在下面的实施例中逐一进行详细说明。In this specification, a message processing method is provided. This specification also involves a message processing method, a message processing device, a message update method, a subscription request processing method, a computing device, a computer-readable storage medium and a computer program product, which are described in detail one by one in the following embodiments.
参见图2,图2示出了根据本说明书一个实施例提供的一种消息处理系统的结构图,消息处理系统200包括发送端210,服务端220和多个订阅端230。所述发送端210,用于确定初始字段消息和关联所述服务端220的消息格式,按照所述消息格式将所述初始字段消息转换为目标字段消息,并将所述目标字段消息发送至所述服务端220;所述服务端220,用于基于所述目标字段消息将局部字段消息更新为全局字段消息;在接收到多个订阅端230中的目标订阅端提交的订阅请求的情况下,对所述订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则;根据所述订阅信息在所述全局字段消息中提取字段信息;基于所述字段信息和所述字段配置规则生成目标消息,并将所述目标消息发送至所述目标订阅端。Referring to FIG. 2 , FIG. 2 shows a structural diagram of a message processing system provided according to an embodiment of the present specification, wherein the message processing system 200 includes a sending end 210, a server end 220, and multiple subscribers 230. The sending end 210 is used to determine the message format of the initial field message and the associated server end 220, convert the initial field message into a target field message according to the message format, and send the target field message to the server end 220; the server end 220 is used to update the local field message to a global field message based on the target field message; when receiving a subscription request submitted by a target subscriber among multiple subscribers 230, the subscription request is parsed, and subscription information and field configuration rules are determined according to the parsing result; field information is extracted from the global field message according to the subscription information; a target message is generated based on the field information and the field configuration rules, and the target message is sent to the target subscriber.
具体的,消息处理系统200包括发送端210,服务端220和多个订阅端230。发送端210可以是消息订阅场景下的消息持有方;订阅端是指存在消息订阅需求的消息需求方;服务端220可以视为发送端210和订阅端之间的媒介,服务端220对接发送端210时,用于接收发送端210发送的字段消息;服务端220对接订阅端时,用于接收订阅端提交的订阅请求,并对订阅请求进行处理。服务端220的存在,可以使发送端210和订阅端解耦,服务端220代替发送端210接收并处理订阅端的订阅请求。发送端210和服务端220均按照消息格式进行消息存储。初始字段消息是指发送端210接收到的未经过格式调整的字段消息;消息格式可以是消息存储维度的格式,例如以键值对的格式进行存储,消息格式还可以是字段编辑维度的格式,例如字段名称为英文,字段内容添加至括号中(lable(标签))。相应的,目标字段消息即为按照消息格式进行格式转换后的初始字段消息。Specifically, the message processing system 200 includes a sender 210, a server 220 and multiple subscribers 230. The sender 210 can be a message holder in a message subscription scenario; the subscriber refers to a message demander who has a message subscription demand; the server 220 can be regarded as a medium between the sender 210 and the subscriber. When the server 220 is connected to the sender 210, it is used to receive the field message sent by the sender 210; when the server 220 is connected to the subscriber, it is used to receive the subscription request submitted by the subscriber and process the subscription request. The existence of the server 220 can decouple the sender 210 and the subscriber. The server 220 receives and processes the subscription request of the subscriber instead of the sender 210. Both the sender 210 and the server 220 store messages according to the message format. The initial field message refers to the field message that has not been formatted and received by the sending end 210; the message format can be the format of the message storage dimension, such as storing in the format of key-value pairs, or the format of the field editing dimension, such as the field name is in English and the field content is added in brackets (label). Correspondingly, the target field message is the initial field message after format conversion according to the message format.
局部字段消息是指服务端220存储的字段消息,全局字段消息即为基于目标字段消息对局部字段消息进行更新后获得的字段消息。订阅请求是指订阅端向服务端220发送的用于订阅服务端220存储的全局字段消息中部分或全部字段的计算机指令。订阅信息即为订阅端订阅需求的描述信息,订阅信息中可以包含订阅端订阅的字段信息。字段配置规则是与订阅端对应的字段消息组合或排列规则。多个订阅端230中,每个订阅端的字段配置规则可以不同。字段信息可以是全局字段消息中字段对应的字段值。目标消息是指符合字段配置规则的消息,目标消息与订阅端提交的订阅请求对应,是对订阅请求的反馈。目标消息中包含订阅端所需的至少一个字段的字段信息,即,字段以及与字段对应的字段值。The local field message refers to the field message stored by the server 220, and the global field message is the field message obtained after the local field message is updated based on the target field message. The subscription request refers to the computer instruction sent by the subscriber to the server 220 for subscribing to some or all fields in the global field message stored by the server 220. The subscription information is the description information of the subscription requirements of the subscriber, and the subscription information may include the field information subscribed by the subscriber. The field configuration rule is the field message combination or arrangement rule corresponding to the subscriber. Among multiple subscribers 230, the field configuration rules of each subscriber may be different. The field information may be the field value corresponding to the field in the global field message. The target message refers to the message that complies with the field configuration rule. The target message corresponds to the subscription request submitted by the subscriber and is the feedback to the subscription request. The target message contains the field information of at least one field required by the subscriber, that is, the field and the field value corresponding to the field.
基于此,消息处理系统包括发送端210,服务端220和多个订阅端230。发送端210确定初始字段消息和关联服务端220的消息格式,消息格式为发送端210和服务端220之间统一的消息格式。按照消息格式将初始字段消息转换为目标字段消息,实现初始字段消息的格式统一后将目标字段消息发送至服务端220。服务端220接收到目标字段消息后,由于服务端220存储了局部字段消息,因此可以基于目标字段消息对局部字段消息进行更新,将目标字段消息添加至局部字段消息所在的存储位置,获得全局字段消息。在接收到多个订阅端230中的目标订阅端提交的订阅请求的情况下,由服务端220对订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则。根据订阅信息在全局字段消息中提取字段信息。基于字段信息和字段配置规则生成目标消息,并将目标消息发送至目标订阅端。Based on this, the message processing system includes a sending end 210, a server end 220 and multiple subscribers 230. The sending end 210 determines the message format of the initial field message and the associated server end 220, and the message format is a unified message format between the sending end 210 and the server end 220. The initial field message is converted into a target field message according to the message format, and the target field message is sent to the server end 220 after the format of the initial field message is unified. After the server end 220 receives the target field message, since the server end 220 stores the local field message, the local field message can be updated based on the target field message, and the target field message is added to the storage location where the local field message is located to obtain the global field message. In the case of receiving a subscription request submitted by a target subscriber among multiple subscribers 230, the server end 220 parses the subscription request and determines the subscription information and field configuration rules according to the parsing result. The field information is extracted from the global field message according to the subscription information. The target message is generated based on the field information and the field configuration rules, and the target message is sent to the target subscriber.
实际应用中,消息处理系统可以应用于各领域中的消息订阅场景。消息处理系统可以应用于金融交易领域中的股票行情订阅,可以应用于电子商务领域中的订单状态订阅和库存消息订阅;可以应用于社交媒体中的动态信息订阅;可以应用于新闻和媒体领域中的新闻、节目订阅;还可以应用于物流和运输中的航班信息、物流信息订阅。In practical applications, the message processing system can be applied to message subscription scenarios in various fields. The message processing system can be applied to stock quote subscriptions in the financial transaction field, order status subscriptions and inventory message subscriptions in the e-commerce field, dynamic information subscriptions in social media, news and program subscriptions in the news and media field, and flight information and logistics information subscriptions in logistics and transportation.
举例说明,在消息处理系统应用于新闻领域的情况下,订阅端可以是新闻订阅者。发送端和服务端组成新闻订阅平台。在发送端接收到新闻的标题、摘要、日期、类别等初始字段消息的情况下,确定与服务端关联的消息格式,将新闻的标题、摘要、日期、类别等初始字段消息转换为与消息格式对应的目标字段消息,并将目标字段消息发送至服务端。服务端基于目标字段消息对存储的导语、结语、背景、作者等局部字段消息进行更新,由新闻的标题、摘要、日期、类别、导语、结语、背景、作者等字段消息组成全局字段消息。在接收到订阅端1提交的订阅请求后,解析订阅请求,获得新闻的标题、摘要、日期组成的订阅信息,以及表示消息配置规则的字段配置规则。基于订阅信息对全局字段消息进行拆分,在全局字段消息中提取标题、摘要、日期分别对应的字段值组成字段信息,并按照字段配置规则生成目标消息发送至订阅端1。For example, in the case where the message processing system is applied to the news field, the subscriber can be a news subscriber. The sender and the server constitute a news subscription platform. When the sender receives the initial field messages such as the title, summary, date, and category of the news, the message format associated with the server is determined, and the initial field messages such as the title, summary, date, and category of the news are converted into target field messages corresponding to the message format, and the target field messages are sent to the server. The server updates the stored local field messages such as the introduction, conclusion, background, and author based on the target field message, and the global field message is composed of the field messages such as the title, summary, date, category, introduction, conclusion, background, and author of the news. After receiving the subscription request submitted by the subscriber 1, the subscription request is parsed to obtain the subscription information composed of the title, summary, and date of the news, as well as the field configuration rules representing the message configuration rules. The global field message is split based on the subscription information, and the field values corresponding to the title, summary, and date are extracted from the global field message to form the field information, and the target message is generated according to the field configuration rules and sent to the subscriber 1.
综上所述,发送端只需要向服务端发送符合消息格式的目标字段消息,由服务端代替发送端接收订阅端的订阅请求,并对订阅请求进行处理。实现了发送端和订阅端的解耦,统一了消息格式。避免了发送端消息的冗余发送,减轻了发送端的消息处理压力,也降低了服务端构建订阅端所需的定制消息的复杂性。In summary, the sender only needs to send a target field message that conforms to the message format to the server, and the server receives the subscription request from the subscriber on behalf of the sender and processes the subscription request. This achieves the decoupling of the sender and the subscriber, and unifies the message format. This avoids redundant sending of messages on the sender, reduces the message processing pressure on the sender, and reduces the complexity of the server building the customized messages required for the subscriber.
进一步的,考虑到不同字段的消息具有不同的消息格式,若将具有多种消息格式的字段消息发送至服务端220,则服务端220在后续处理订阅请求时,将消耗大量的资源和时间在消息的格式转换,因此可以在将待更新消息发送至服务端220之前基于消息格式进行格式转换,具体实施时,所述发送端210,还用于在接收到针对所述目标字段消息的待更新消息的情况下,按照所述消息格式将所述待更新消息转换为更新消息,并将所述更新消息发送至所述服务端220。Furthermore, considering that messages in different fields have different message formats, if field messages with multiple message formats are sent to the server 220, the server 220 will consume a lot of resources and time in the message format conversion when subsequently processing the subscription request. Therefore, the format conversion can be performed based on the message format before the message to be updated is sent to the server 220. In specific implementation, the sending end 210 is also used to convert the message to be updated into an update message according to the message format when receiving the message to be updated for the target field message, and send the update message to the server 220.
具体的,待更新消息是指发送端210接收到的除初始字段消息之外的新的消息字段。更新消息即为基于消息格式对待更新消息进行格式转换后获得的消息。Specifically, the message to be updated refers to a new message field other than the initial field message received by the sending end 210. The update message is a message obtained after format conversion of the message to be updated based on the message format.
基于此,发送端210在接收到针对目标字段消息的待更新消息的情况下,表示除初始字段消息之外,还包含其他新的消息字段。按照消息格式将待更新消息转换为更新消息,并将更新消息发送至服务端220。用于对服务端220存储的全局字段消息进行更新,将更新消息存储至全局字段消息中。Based on this, when the sender 210 receives a message to be updated for the target field message, it indicates that in addition to the initial field message, other new message fields are also included. The message to be updated is converted into an update message according to the message format, and the update message is sent to the server 220. It is used to update the global field message stored in the server 220 and store the update message in the global field message.
沿用上例,在发送端接收到关于新闻的“标签”字段“科技”这一待更新消息的情况下,按照消息格式对待更新消息进行格式转换,将“标签”字段“科技”这一待更新消息转换为lable(新闻标签)。将lable(新闻标签)这一更新消息发送至服务端。Using the above example, when the sender receives the update message about the "label" field "technology" of the news, it converts the update message according to the message format and converts the "label" field "technology" to label (news label). The label (news label) update message is sent to the server.
综上所述,在发送端接收到待更新消息的情况下,基于关联服务端的消息格式将待更新消息转换为更新消息。从而确保发送至服务端的消息具有统一的消息格式。In summary, when the sending end receives a message to be updated, the message to be updated is converted into an update message based on the message format of the associated server, thereby ensuring that the message sent to the server has a unified message format.
进一步的,考虑到局部字段消息在服务端220中占据一定的存储空间,因此,局部字段消息可以按照固定的数据结构进行存储,在接收到发送端210发送的目标字段消息的情况下按照固定的数据结构进行追加存储,具体实施时,所述服务端220,用于将所述目标字段消息添加至所述局部字段消息所在的消息集,根据添加结果确定所述消息集中存储的所述全局字段消息。Furthermore, considering that the local field message occupies a certain storage space in the server 220, the local field message can be stored according to a fixed data structure, and additional storage is performed according to the fixed data structure when the target field message sent by the sender 210 is received. In specific implementation, the server 220 is used to add the target field message to the message set where the local field message is located, and determine the global field message stored in the message set according to the addition result.
具体的,消息集是指服务端220存储接收自发送端210的字段消息的集合。消息集可以是消息集合,也可以是具有数据读写顺序的队列等数据结构。添加结果即为将目标字段消息添加至消息集的存储结果。Specifically, the message set refers to a set of field messages received from the sender 210 and stored by the server 220. The message set can be a message set or a data structure such as a queue with a data read and write order. The addition result is the storage result of adding the target field message to the message set.
基于此,服务端220将目标字段消息添加至局部字段消息所在的消息集后,消息集中存储的目标字段消息和局部字段消息组成的全局字段消息。Based on this, after the server 220 adds the target field message to the message set where the local field message is located, the target field message and the local field message stored in the message set form a global field message.
沿用上例,服务端存储导语、结语、背景、作者等局部字段消息。在接收到由新闻的标题、摘要、日期、类别、导语、结语、背景、作者等字段消息组成的目标字段消息后,将目标字段消息添加至局部字段消息所在的消息集。消息集中存储新闻的标题、摘要、日期、类别、导语、结语、背景、作者、导语、结语、背景、作者等全局字段消息。Using the above example, the server stores local field messages such as introduction, conclusion, background, and author. After receiving the target field message composed of news title, summary, date, category, introduction, conclusion, background, author, etc., the target field message is added to the message set where the local field message is located. The message set stores global field messages such as news title, summary, date, category, introduction, conclusion, background, author, etc.
综上所述,服务端将目标字段消息添加至局部字段消息所在的消息集,消息集中存储了全局字段消息。实现了目标字段消息添和局部字段消息的整合。In summary, the server adds the target field message to the message set where the local field message is located, and the message set stores the global field message, thus realizing the integration of adding the target field message and the local field message.
进一步的,考虑到服务端220存储的全局字段消息具有固定的消息格式,且全局字段消息中包含多个字段以及字段对应的字段值,在全局字段消息中提取字段信息时可以通过对全局字段消息中的字段消息进行拆分获得,具体实施时,所述服务端220,用于确定所述订阅信息包含的至少一个订阅字段;调用消息拆分器,基于所述至少一个订阅字段对所述全局字段消息进行拆分,根据拆分结果确定与所述至少一个订阅字段分别对应的目标字段信息;由所述至少一个订阅字段分别对应的目标字段信息组成所述字段信息。Furthermore, considering that the global field message stored in the server 220 has a fixed message format, and the global field message contains multiple fields and field values corresponding to the fields, when extracting field information in the global field message, it can be obtained by splitting the field message in the global field message. In specific implementation, the server 220 is used to determine at least one subscription field contained in the subscription information; call the message splitter to split the global field message based on the at least one subscription field, and determine the target field information corresponding to the at least one subscription field according to the splitting result; the field information is composed of the target field information corresponding to the at least one subscription field.
具体的,订阅字段是指订阅端需要订阅的消息字段,字段值即为消息字段对应的消息;消息拆分器是服务端220中用于进行字段消息拆分的组件。拆分结果即为基于至少一个订阅字段对全局字段消息进行拆分获得的消息拆分结果,拆分结果表示对全局字段消息进行拆分的拆分点,以及与拆分点对应的拆分字符串,例如基于字段消息title对“title(标题):标题1、abstract(摘要):摘要1、date(日期):日期1”这一全局字段消息进行拆分,拆分字符串即为“title(标题):标题1”。拆分字符串即为目标字段信息。Specifically, the subscription field refers to the message field that the subscriber needs to subscribe to, and the field value is the message corresponding to the message field; the message splitter is a component in the server 220 for splitting field messages. The split result is the message splitting result obtained by splitting the global field message based on at least one subscription field. The split result represents the split point for splitting the global field message, and the split string corresponding to the split point. For example, based on the field message title, the global field message "title: title 1, abstract: abstract 1, date: date 1" is split, and the split string is "title: title 1". The split string is the target field information.
基于此,服务端220确定订阅信息包含的至少一个订阅字段。调用消息拆分器,基于至少一个订阅字段确定全局字段消息的拆分点,并基于拆分点对全局字段消息进行拆分,获得与至少一个订阅字段分别对应的目标字段信息。由至少一个订阅字段分别对应的目标字段信息组成字段信息。Based on this, the server 220 determines at least one subscription field included in the subscription information. The message splitter is called to determine the split point of the global field message based on the at least one subscription field, and split the global field message based on the split point to obtain the target field information corresponding to the at least one subscription field. The target field information corresponding to the at least one subscription field constitutes the field information.
沿用上例,在订阅端1订阅了标题、摘要、日期等订阅字段的情况下,基于标题、摘要、日期对全局字段消息进行拆分,获得标题、摘要、日期分别对应的目标字段信息。由标题对应的目标字段信息、摘要对应的目标字段信息、日期分别对应的目标字段信息组成字段信息。Using the above example, when subscriber 1 subscribes to subscription fields such as title, summary, and date, the global field message is split based on title, summary, and date to obtain the target field information corresponding to the title, summary, and date. The field information is composed of the target field information corresponding to the title, the target field information corresponding to the summary, and the target field information corresponding to the date.
综上所述,通过调用消息拆分器,基于订阅信息包含的至少一个订阅字段对全局字段消息进行拆分,从而提高字段消息拆分的准确性。In summary, by calling the message splitter, the global field message is split based on at least one subscription field included in the subscription information, thereby improving the accuracy of field message splitting.
进一步的,考虑到与服务端220关联的订阅端包括多个,每个订阅端具有不同的字段配置规则,因此在向服务端220发送订阅请求时,需要将字段配置规则分装在订阅请求中。在服务端220生成目标消息时即可生成与字段配置规则匹配的目标消息,具体实施时,所述服务端220,用于在所述字段信息中确定与所述订阅信息包含的至少一个订阅字段分别对应的订阅字段信息,并按照所述字段配置规则对所述至少一个订阅字段以及所述的至少一个订阅字段分别对应的订阅字段信息进行组合,生成所述目标消息。Furthermore, considering that there are multiple subscribers associated with the server 220, each of which has different field configuration rules, it is necessary to package the field configuration rules in the subscription request when sending a subscription request to the server 220. When the server 220 generates a target message, a target message matching the field configuration rule can be generated. In specific implementation, the server 220 is used to determine the subscription field information corresponding to at least one subscription field included in the subscription information in the field information, and combine the at least one subscription field and the subscription field information corresponding to the at least one subscription field according to the field configuration rule to generate the target message.
基于此,订阅字段信息即为订阅字段对应的字段值。服务端220在字段信息中确定与订阅信息包含的至少一个订阅字段分别对应的订阅字段信息。按照字段配置规则对至少一个订阅字段以及至少一个订阅字段分别对应的订阅字段信息进行组合,生成目标消息。Based on this, the subscription field information is the field value corresponding to the subscription field. The server 220 determines the subscription field information corresponding to at least one subscription field included in the subscription information in the field information. The subscription field information corresponding to at least one subscription field and at least one subscription field is combined according to the field configuration rule to generate a target message.
沿用上例,在订阅端1订阅了标题、摘要、日期的情况下,确定字段配置规则,按照字段配置规则对字段标题、摘要、日期,以及各字段对应的目标字段信息进行组合,获得目标消息。Using the above example, when subscriber 1 subscribes to title, summary, and date, the field configuration rules are determined, and the field title, summary, date, and target field information corresponding to each field are combined according to the field configuration rules to obtain the target message.
综上所述,按照字段配置规则对至少一个订阅字段以及至少一个订阅字段分别对应的订阅字段信息进行组合,生成目标消息。从而获得满足订阅端的订阅需求的目标消息。In summary, at least one subscription field and the subscription field information respectively corresponding to at least one subscription field are combined according to the field configuration rule to generate a target message, thereby obtaining a target message that meets the subscription requirements of the subscriber.
进一步的,考虑到不同的订阅端具有不同的字段配置规则,字段配置规则表示订阅端的订阅关系模型,在生成目标消息时可以按照订阅关系模型实现,具体实施时,所述服务端220,用于调用解析器对所述字段配置规则进行解析,根据解析结果确定包含主题信息的订阅关系模型,并基于所述订阅关系模型对所述至少一个订阅字段以及所述的至少一个订阅字段分别对应的订阅字段信息进行组合,生成所述目标消息。Furthermore, considering that different subscribers have different field configuration rules, the field configuration rules represent the subscription relationship model of the subscriber, and can be implemented according to the subscription relationship model when generating the target message. In specific implementation, the server 220 is used to call the parser to parse the field configuration rules, determine the subscription relationship model containing the subject information according to the parsing results, and combine the at least one subscription field and the subscription field information corresponding to the at least one subscription field based on the subscription relationship model to generate the target message.
具体的,解析器为服务端220用于进行信息解析的组件。订阅关系模型包含订阅端需要订阅的主题信息和消息格式。Specifically, the parser is a component used for information parsing by the server 220. The subscription relationship model includes the subject information and message format that the subscriber needs to subscribe to.
基于此,服务端220调用解析器对字段配置规则进行解析,根据解析结果确定包含主题信息的订阅关系模型。订阅关系模型可以反映出订阅端匹配的消息格式。基于订阅关系模型对至少一个订阅字段以及至少一个订阅字段分别对应的订阅字段信息进行组合,生成与消息格式匹配的目标消息。Based on this, the server 220 calls the parser to parse the field configuration rule, and determines the subscription relationship model containing the subject information according to the parsing result. The subscription relationship model can reflect the message format matched by the subscriber. Based on the subscription relationship model, at least one subscription field and the subscription field information corresponding to at least one subscription field are combined to generate a target message matching the message format.
沿用上例,调用解析器对字段配置规则进行解析可以获得包含主题信息和消息格式的订阅关系模型:topic1-topic11: title,abstract,date。订阅关系模型包含源主题,待拆分的二级主题,主题信息之间以-分隔,冒号分隔符后部分为消息体的字段名信息。根据订阅关系模型对订阅字段和订阅字段信息进行组合,获得目标消息。Using the above example, calling the parser to parse the field configuration rules can obtain a subscription relationship model containing topic information and message format: topic1-topic11: title, abstract, date. The subscription relationship model contains the source topic, the secondary topic to be split, the topic information is separated by -, and the part after the colon separator is the field name information of the message body. Combine the subscription field and subscription field information according to the subscription relationship model to obtain the target message.
综上所述,基于订阅关系模型对至少一个订阅字段以及至少一个订阅字段分别对应的订阅字段信息进行组合,生成与消息格式匹配的目标消息。从而满足订阅端的消息格式和消息内容需求。In summary, at least one subscription field and the subscription field information corresponding to at least one subscription field are combined based on the subscription relationship model to generate a target message matching the message format, thereby meeting the message format and message content requirements of the subscriber.
进一步的,考虑到与服务端220对应的订阅端可以有多个,为了保证消息发送的准确性,可以在将目标消息发送至订阅端之前对目标消息所属的订阅端进行确定,具体实施时,所述服务端220,还用于根据所述订阅请求携带的订阅端信息确定所述目标订阅端,并将所述目标消息发送至所述目标订阅端。Furthermore, considering that there may be multiple subscribers corresponding to the server 220, in order to ensure the accuracy of message sending, the subscriber to which the target message belongs can be determined before sending the target message to the subscriber. In specific implementation, the server 220 is also used to determine the target subscriber based on the subscriber information carried by the subscription request, and send the target message to the target subscriber.
基于此,服务端220根据订阅请求携带的订阅端信息在多个订阅端230中确定目标订阅端,并将目标消息发送至目标订阅端。在将目标消息发送至目标订阅端之前进行目标消息所属订阅端的检测和确定。Based on this, the server 220 determines the target subscriber among the multiple subscribers 230 according to the subscriber information carried in the subscription request, and sends the target message to the target subscriber. Before sending the target message to the target subscriber, the subscriber to which the target message belongs is detected and determined.
沿用上例,确定订阅请求携带的订阅端信息:订阅端1,根据订阅端信息即可确定目标消息所属的订阅端即为目标订阅端。将目标消息发送至目标订阅端即可。Using the above example, determine the subscriber information carried in the subscription request: Subscriber 1. According to the subscriber information, it can be determined that the subscriber to which the target message belongs is the target subscriber. Send the target message to the target subscriber.
综上所述,在将目标消息发送至目标订阅端之前,对目标消息所属的订阅端进行检测和确定,提高消息发送的准确性。In summary, before sending the target message to the target subscriber, the subscriber to which the target message belongs is detected and determined to improve the accuracy of message sending.
本说明书一个实施例提供的消息处理系统包括发送端,服务端和多个订阅端。发送端确定初始字段消息和关联服务端的消息格式,按照消息格式将初始字段消息转换为目标字段消息,并将目标字段消息发送至服务端。服务端基于目标字段消息将局部字段消息更新为全局字段消息。在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,由服务端对订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则。根据订阅信息在全局字段消息中提取字段信息。基于字段信息和字段配置规则生成目标消息,并将目标消息发送至目标订阅端。发送端只需要向服务端发送符合消息格式的目标字段消息,由服务端代替发送端接收订阅端的订阅请求,并对订阅请求进行处理。实现了发送端和订阅端的解耦,统一了消息格式。避免了发送端消息的冗余发送,减轻了发送端的消息处理压力,也降低了服务端构建订阅端所需的定制消息的复杂性。The message processing system provided by one embodiment of the present specification includes a sender, a server, and multiple subscribers. The sender determines the message format of the initial field message and the associated server, converts the initial field message into a target field message according to the message format, and sends the target field message to the server. The server updates the local field message to a global field message based on the target field message. In the case of receiving a subscription request submitted by a target subscriber among multiple subscribers, the server parses the subscription request and determines the subscription information and field configuration rules according to the parsing result. The field information is extracted from the global field message according to the subscription information. The target message is generated based on the field information and the field configuration rules, and the target message is sent to the target subscriber. The sender only needs to send a target field message that conforms to the message format to the server, and the server receives the subscription request of the subscriber instead of the sender and processes the subscription request. The decoupling of the sender and the subscriber is achieved, and the message format is unified. The redundant sending of the sender's message is avoided, the message processing pressure of the sender is reduced, and the complexity of the custom message required for the server to build the subscriber is reduced.
下述结合附图3,以本说明书提供的消息处理方法在交易消息订阅的应用为例,对所述消息处理方法进行进一步说明。其中,图3示出了本说明书一个实施例提供的一种消息处理系统的消息订阅示意图,具体包括以下步骤。The following further describes the message processing method provided in this specification by taking the application of the message processing method in transaction message subscription as an example in conjunction with Figure 3. Figure 3 shows a message subscription schematic diagram of a message processing system provided in an embodiment of this specification, which specifically includes the following steps.
步骤302:发送端接收初始字段消息并确定消息格式,按照消息格式将初始字段消息转换为目标字段消息。Step 302: The sending end receives the initial field message and determines the message format, and converts the initial field message into a target field message according to the message format.
步骤304:发送端将目标字段消息发送至服务端。Step 304: The sender sends the target field message to the server.
消息处理系统可以应用于金融交易领域中的股票行情订阅。订阅端可以是风控系统、用户交易终端、数据分析系统等。在消息发送端,构造一个包含了所有可能字段的统一消息格式。例如,创建一个消息模板,其中包含ID、时间、名称、描述、标签等预定义字段,并确保每条发出的消息都填充了这些字段。当有新的实时数据(例如股票行情)到来时,发送端按照统一格式填充所有字段,并将完整的消息发布至Pulsar主题(Topic)上。The message processing system can be applied to stock quote subscriptions in the field of financial transactions. The subscriber can be a risk control system, a user trading terminal, a data analysis system, etc. On the message sending end, construct a unified message format that contains all possible fields. For example, create a message template that contains predefined fields such as ID, time, name, description, and tags, and ensure that each message sent is filled with these fields. When new real-time data (such as stock quotes) arrives, the sender fills in all fields in a unified format and publishes the complete message to the Pulsar topic.
实际应用中,如图4所示,发送端可以将messageid(消息ID)、ctime(时间)、StockID(股票ID)、StockCode(股票代码)、StockName(股票名称)、Industry(所属行业)、Market(上市市场)、ListedDate(上市日期)、SnapshotID(行情快照ID)、StockID(关联股票ID)、TradeDate(交易日期)、TradeTime(交易时间)、OpenPrice(开盘价)、ClosePrice(收盘价)、HighestPrice(最高价)、LowestPrice(最低价)LatestPrice(最新价)、ChangeRate(涨跌幅)、Volume(成交量)、Turnover(成交额)、PE(市盈率)、PB(市净率)、CirculateMarketValue(流通市值)等初始字段消息通过统一格式后发送至服务端。In actual applications, as shown in Figure 4, the sender can send initial field messages such as messageid (message ID), ctime (time), StockID (stock ID), StockCode (stock code), StockName (stock name), Industry (industry), Market (listing market), ListedDate (listing date), SnapshotID (market snapshot ID), StockID (associated stock ID), TradeDate (trading date), TradeTime (trading time), OpenPrice (opening price), ClosePrice (closing price), HighestPrice (highest price), LowestPrice (lowest price), LatestPrice (latest price), ChangeRate (rise and fall), Volume (trading volume), Turnover (trading amount), PE (price-earnings ratio), PB (price-to-book ratio), CirculateMarketValue (circulating market value) to the server in a unified format.
步骤306:多个订阅端中的目标订阅端向服务端提交订阅请求。Step 306: The target subscriber among the multiple subscribers submits a subscription request to the server.
服务端接收发送端发送的目标字段消息,基于Pulsar实现消息的拆分与重组。在服务端设置一个消息拆分器(Splitter)组件,用来实现对消息的拆分功能。订阅端在订阅Pulsar主题时,不仅指定主题,还提交它们各自的字段订阅清单。The server receives the target field message sent by the sender and splits and reassembles the message based on Pulsar. A message splitter component is set on the server to implement the message splitting function. When subscribing to a Pulsar topic, the subscriber not only specifies the topic, but also submits their respective field subscription lists.
订阅端A订阅了消息ID、时间、股票ID、股票代码和最新价等字段;订阅端B订阅了消息ID、时间、股票ID、股票代码、开盘价和收盘价等字段; 订阅端C订阅了消息ID、时间、股票ID、股票代码、股票名称、所属行业、上市市场和上市日期等字段。因此,各个订阅端可以基于所需字段创建订阅请求,并将订阅请求发送至服务端。Subscriber A subscribes to fields such as message ID, time, stock ID, stock code, and latest price; Subscriber B subscribes to fields such as message ID, time, stock ID, stock code, opening price, and closing price; Subscriber C subscribes to fields such as message ID, time, stock ID, stock code, stock name, industry, listing market, and listing date. Therefore, each subscriber can create a subscription request based on the required fields and send the subscription request to the server.
步骤308:服务端对订阅请求进行解析获得字段信息。Step 308: The server parses the subscription request to obtain field information.
订阅端在订阅消息时,会提交订阅字段清单。各订阅端的订阅信息如下:订阅端A订阅消息ID、时间、股票ID、股票代码和最新价等字段;订阅端B订阅消息ID、时间、股票ID、股票代码、开盘价和收盘价等字段;订阅端C订阅消息ID、时间、股票ID、股票代码、股票名称、所述行业、上市市场和上市日期等字段。When subscribing to a message, the subscriber submits a list of subscription fields. The subscription information of each subscriber is as follows: Subscriber A subscribes to fields such as message ID, time, stock ID, stock code, and latest price; Subscriber B subscribes to fields such as message ID, time, stock ID, stock code, opening price, and closing price; Subscriber C subscribes to fields such as message ID, time, stock ID, stock code, stock name, industry, listing market, and listing date.
步骤310:服务端基于字段信息对目标字段消息进行拆分获得目标字段值。Step 310: The server splits the target field message based on the field information to obtain the target field value.
服务端的消息拆分器内部包含一个订阅规则引擎,订阅端在订阅时需要提交订阅字段配置规则。规则引擎会解析订阅字段配置规则,保存订阅关系模型。The message splitter on the server contains a subscription rule engine. The subscriber needs to submit the subscription field configuration rules when subscribing. The rule engine will parse the subscription field configuration rules and save the subscription relationship model.
实际应用中,订阅关系模型可以是:topicA-topicA1:messageid,ctime,StockID,StockCode,atestPrice;topicA-topicA2:messageid,ctime,StockID,StockCode,OpenPrice,ClosePrice;topicA-topicA3:mssageid,ctime,StockID,StockCode,StockID,StockCode,Industry,Market,ListedDate等。订阅关系模型包含源主题,待拆分的二级主题,主题信息之间以-分隔,冒号分隔符后部分为消息体的字段名信息。拆分器利用组装器模块,根据每个订阅端的订阅字段清单,从原始消息中抽取相应的字段值,组合成符合订阅端需求的个性化消息。In actual applications, the subscription relationship model can be: topicA-topicA1:messageid, ctime, StockID, StockCode, atestPrice; topicA-topicA2:messageid, ctime, StockID, StockCode, OpenPrice, ClosePrice; topicA-topicA3:mssageid, ctime, StockID, StockCode, StockID, StockCode, Industry, Market, ListedDate, etc. The subscription relationship model contains the source topic, the secondary topic to be split, the topic information is separated by -, and the part after the colon separator is the field name information of the message body. The splitter uses the assembler module to extract the corresponding field values from the original message according to the subscription field list of each subscriber, and combine them into personalized messages that meet the needs of the subscriber.
步骤312:服务端基于目标字段值和字段信息构建目标消息。Step 312: The server constructs a target message based on the target field value and field information.
组装器模块根据订阅字段配置提取对应字段,组装为目标消息,进行消息投递。以订阅关系topicA-topicA1:messageid,ctime,StockID,StockCode,LatestPric为示例,从topicA中提取出的messageA会被拆分成messgaeA1,消息体中包含订阅5个字段信息。The assembler module extracts the corresponding fields according to the subscription field configuration, assembles them into the target message, and delivers the message. Taking the subscription relationship topicA-topicA1:messageid, ctime, StockID, StockCode, LatestPric as an example, the messageA extracted from topicA will be split into messagegaeA1, and the message body contains the subscription 5 field information.
步骤314:服务端将目标消息发送至多个订阅端中的目标订阅端。Step 314: The server sends the target message to a target subscriber among the multiple subscribers.
完成消息拆分和重组后,服务端的消息拆分器将个性化消息分别投递给对应的订阅端,每个订阅端仅接收到他们所订阅的字段数据。订阅端接收到服务端投递过来的、仅包含自己所需字段的消息,进行针对性的数据处理和业务逻辑执行。After completing the message splitting and reassembly, the message splitter on the server side delivers the personalized messages to the corresponding subscribers, and each subscriber receives only the field data they subscribe to. The subscriber receives the message delivered by the server that only contains the fields they need, and performs targeted data processing and business logic execution.
综上所述,发送端消息格式统一,只构建一种格式消息,新订阅端加入发送端也无需改动。服务端消息拆分器实现订阅灵活配置,订阅端只订阅需要的字段,避免不必要的数据传输。即使当字段较多时,个性化订阅也很容易实现。极大减少重复传输数据量,节省通信资源和流量成本。例如ID字段只传输一次即可。解耦发送端和订阅端,只要统一的消息格式不变,发送端和订阅端就可以独立扩展和演进。可轻松实现按字段计费,只计算订阅端订阅字段的消息量。通过在MQ通信中间加入消息拆分器实现统一格式消息发送和个性化订阅解耦,减少了构建消息的复杂性,提高了灵活性,同时也节省了系统资源和通信成本。In summary, the message format of the sender is unified, and only one format message is constructed. There is no need to change the sender when a new subscriber joins. The server-side message splitter realizes flexible subscription configuration, and the subscriber only subscribes to the required fields to avoid unnecessary data transmission. Even when there are many fields, personalized subscription is easy to implement. The amount of repeated data transmission is greatly reduced, saving communication resources and traffic costs. For example, the ID field only needs to be transmitted once. Decouple the sender and the subscriber. As long as the unified message format remains unchanged, the sender and the subscriber can be expanded and evolved independently. It is easy to implement billing by field, and only the message volume of the subscription field of the subscriber is calculated. By adding a message splitter in the middle of MQ communication to realize the decoupling of unified format message sending and personalized subscription, the complexity of building messages is reduced, flexibility is improved, and system resources and communication costs are also saved.
与上述系统实施例相对应,本说明书还提供了消息处理方法实施例,图5示出了本说明书一个实施例提供的一种消息处理方法的流程图。如图5所示,消息处理方法应用于服务端,其中,所述服务端关联消息格式,具体包括以下步骤:Corresponding to the above system embodiment, this specification also provides a message processing method embodiment, and Figure 5 shows a flow chart of a message processing method provided by an embodiment of this specification. As shown in Figure 5, the message processing method is applied to the server, wherein the server associates the message format, specifically including the following steps:
步骤502:接收发送端发送的目标字段消息,其中,所述目标字段消息按照所述消息格式对初始字段消息进行转换确定;Step 502: receiving a target field message sent by a transmitting end, wherein the target field message converts and determines the initial field message according to the message format;
步骤504:基于所述目标字段消息将局部字段消息更新为全局字段消息;Step 504: updating the local field message to a global field message based on the target field message;
步骤506:在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,对所述订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则;Step 506: when receiving a subscription request submitted by a target subscriber among multiple subscribers, parsing the subscription request, and determining subscription information and field configuration rules according to the parsing result;
步骤508:根据所述订阅信息在所述全局字段消息中提取字段信息;Step 508: extracting field information from the global field message according to the subscription information;
步骤510:基于所述字段信息和所述字段配置规则生成目标消息,并将所述目标消息发送至所述目标订阅端。Step 510: Generate a target message based on the field information and the field configuration rule, and send the target message to the target subscriber.
可选地,所述基于所述目标字段消息将局部字段消息更新为全局字段消息包括:将所述目标字段消息添加至所述局部字段消息所在的消息集,根据添加结果确定所述消息集中存储的所述全局字段消息。Optionally, updating the local field message to the global field message based on the target field message includes: adding the target field message to the message set where the local field message is located, and determining the global field message stored in the message set according to the adding result.
可选地,所述根据所述订阅信息在所述全局字段消息中提取字段信息,包括:确定所述订阅信息包含的至少一个订阅字段;调用消息拆分器,基于所述至少一个订阅字段对所述全局字段消息进行拆分,根据拆分结果确定与所述至少一个订阅字段分别对应的目标字段信息;由所述至少一个订阅字段分别对应的目标字段信息组成所述字段信息。Optionally, extracting field information from the global field message according to the subscription information includes: determining at least one subscription field contained in the subscription information; calling a message splitter to split the global field message based on the at least one subscription field, and determining target field information corresponding to the at least one subscription field according to the splitting result; and composing the field information by the target field information corresponding to the at least one subscription field.
可选地,所述基于所述字段信息和所述字段配置规则生成目标消息,包括:在所述字段信息中确定与所述订阅信息包含的至少一个订阅字段分别对应的订阅字段信息,并按照所述字段配置规则对所述至少一个订阅字段以及所述的至少一个订阅字段分别对应的订阅字段信息进行组合,生成所述目标消息。Optionally, generating the target message based on the field information and the field configuration rule includes: determining subscription field information corresponding to at least one subscription field contained in the subscription information in the field information, and combining the at least one subscription field and the subscription field information corresponding to the at least one subscription field according to the field configuration rule to generate the target message.
可选地,所述基于所述字段信息和所述字段配置规则生成目标消息,包括:调用解析器对所述字段配置规则进行解析,根据解析结果确定包含主题信息的订阅关系模型,并基于所述订阅关系模型对所述至少一个订阅字段以及所述的至少一个订阅字段分别对应的订阅字段信息进行组合,生成所述目标消息。Optionally, generating a target message based on the field information and the field configuration rules includes: calling a parser to parse the field configuration rules, determining a subscription relationship model containing the subject information based on the parsing results, and combining the at least one subscription field and the subscription field information corresponding to the at least one subscription field based on the subscription relationship model to generate the target message.
可选地,所述将所述目标消息发送至所述目标订阅端,还包括:根据所述订阅请求携带的订阅端信息确定所述目标订阅端,并将所述目标消息发送至所述目标订阅端。Optionally, sending the target message to the target subscriber further includes: determining the target subscriber according to the subscriber information carried in the subscription request, and sending the target message to the target subscriber.
实际应用中,消息处理方法包括发送端,服务端和多个订阅端。消息处理方法应用于服务端。接收发送端发送的目标字段消息。目标字段消息由发送端基于初始字段消息和消息格式生成,即,发送端确定初始字段消息和关联服务端的消息格式,消息格式为发送端和服务端之间统一的消息格式。按照消息格式将初始字段消息转换为目标字段消息,并将目标字段消息发送至服务端。服务端接收到目标字段消息后,由于服务端存储了局部字段消息,因此可以基于目标字段消息对局部字段消息进行更新,将目标字段消息添加至局部字段消息所在的存储位置,获得全局字段消息。在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,由服务端对订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则。根据订阅信息在全局字段消息中提取字段信息。基于字段信息和字段配置规则生成目标消息,并将目标消息发送至目标订阅端。In practical applications, the message processing method includes a sender, a server, and multiple subscribers. The message processing method is applied to the server. A target field message sent by the sender is received. The target field message is generated by the sender based on the initial field message and the message format, that is, the sender determines the message format of the initial field message and the associated server, and the message format is a unified message format between the sender and the server. The initial field message is converted into a target field message according to the message format, and the target field message is sent to the server. After the server receives the target field message, since the server stores the local field message, the local field message can be updated based on the target field message, and the target field message is added to the storage location where the local field message is located to obtain the global field message. In the case of receiving a subscription request submitted by a target subscriber among multiple subscribers, the server parses the subscription request and determines the subscription information and field configuration rules according to the parsing result. Field information is extracted from the global field message according to the subscription information. A target message is generated based on the field information and the field configuration rules, and the target message is sent to the target subscriber.
本说明书一个实施例提供的消息处理方法包括发送端,服务端和多个订阅端。发送端确定初始字段消息和关联服务端的消息格式,按照消息格式将初始字段消息转换为目标字段消息,并将目标字段消息发送至服务端。服务端基于目标字段消息将局部字段消息更新为全局字段消息。在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,由服务端对订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则。根据订阅信息在全局字段消息中提取字段信息。基于字段信息和字段配置规则生成目标消息,并将目标消息发送至目标订阅端。发送端只需要向服务端发送符合消息格式的目标字段消息,由服务端代替发送端接收订阅端的订阅请求,并对订阅请求进行处理。实现了发送端和订阅端的解耦,统一了消息格式。避免了发送端消息的冗余发送,减轻了发送端的消息处理压力,也降低了服务端构建订阅端所需的定制消息的复杂性。A message processing method provided by an embodiment of the present specification includes a sending end, a server end and multiple subscribers. The sending end determines the message format of the initial field message and the associated server end, converts the initial field message into a target field message according to the message format, and sends the target field message to the server end. The server end updates the local field message to a global field message based on the target field message. In the case of receiving a subscription request submitted by a target subscriber end among multiple subscriber ends, the server end parses the subscription request and determines the subscription information and field configuration rules according to the parsing result. Field information is extracted from the global field message according to the subscription information. A target message is generated based on the field information and the field configuration rules, and the target message is sent to the target subscriber end. The sending end only needs to send a target field message that conforms to the message format to the server end, and the server end receives the subscription request of the subscriber end instead of the sending end, and processes the subscription request. The decoupling of the sending end and the subscriber end is achieved, and the message format is unified. The redundant sending of the sending end message is avoided, the message processing pressure of the sending end is reduced, and the complexity of the custom message required for the server end to build the subscriber end is reduced.
与上述方法实施例相对应,本说明书还提供了消息处理装置实施例,图6示出了本说明书一个实施例提供的一种消息处理装置的结构示意图。如图6所示,消息处理装置应用于服务端,其中,所述服务端关联消息格式,该装置包括:Corresponding to the above method embodiment, this specification also provides a message processing device embodiment, and Figure 6 shows a structural schematic diagram of a message processing device provided by an embodiment of this specification. As shown in Figure 6, the message processing device is applied to the server, wherein the server associates the message format, and the device includes:
接收模块602,被配置为接收发送端发送的目标字段消息,其中,所述目标字段消息按照所述消息格式对初始字段消息进行转换确定;The receiving module 602 is configured to receive a target field message sent by a sending end, wherein the target field message is determined by converting the initial field message according to the message format;
更新模块604,被配置为基于所述目标字段消息将局部字段消息更新为全局字段消息;An updating module 604 is configured to update the local field message to a global field message based on the target field message;
解析模块606,被配置为在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,对所述订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则;The parsing module 606 is configured to parse the subscription request submitted by the target subscriber among the multiple subscribers when receiving the subscription request, and determine the subscription information and field configuration rules according to the parsing result;
提取模块608,被配置为根据所述订阅信息在所述全局字段消息中提取字段信息;An extraction module 608 is configured to extract field information from the global field message according to the subscription information;
生成模块610,被配置为基于所述字段信息和所述字段配置规则生成目标消息,并将所述目标消息发送至所述目标订阅端。The generating module 610 is configured to generate a target message based on the field information and the field configuration rule, and send the target message to the target subscriber.
一个可选地实施例,所述更新模块604,进一步被配置为:将所述目标字段消息添加至所述局部字段消息所在的消息集,根据添加结果确定所述消息集中存储的所述全局字段消息。In an optional embodiment, the updating module 604 is further configured to: add the target field message to the message set where the local field message is located, and determine the global field message stored in the message set according to the adding result.
一个可选地实施例,所述提取模块608,进一步被配置为:确定所述订阅信息包含的至少一个订阅字段;调用消息拆分器,基于所述至少一个订阅字段对所述全局字段消息进行拆分,根据拆分结果确定与所述至少一个订阅字段分别对应的目标字段信息;由所述至少一个订阅字段分别对应的目标字段信息组成所述字段信息。In an optional embodiment, the extraction module 608 is further configured to: determine at least one subscription field contained in the subscription information; call a message splitter to split the global field message based on the at least one subscription field, and determine the target field information corresponding to the at least one subscription field according to the splitting result; and form the field information by the target field information corresponding to the at least one subscription field.
一个可选地实施例,所述生成模块610,进一步被配置为:在所述字段信息中确定与所述订阅信息包含的至少一个订阅字段分别对应的订阅字段信息,并按照所述字段配置规则对所述至少一个订阅字段以及所述的至少一个订阅字段分别对应的订阅字段信息进行组合,生成所述目标消息。In an optional embodiment, the generation module 610 is further configured to: determine in the field information the subscription field information corresponding to at least one subscription field contained in the subscription information, and combine the at least one subscription field and the subscription field information corresponding to the at least one subscription field according to the field configuration rule to generate the target message.
一个可选地实施例,所述生成模块610,进一步被配置为:调用解析器对所述字段配置规则进行解析,根据解析结果确定包含主题信息的订阅关系模型,并基于所述订阅关系模型对所述至少一个订阅字段以及所述的至少一个订阅字段分别对应的订阅字段信息进行组合,生成所述目标消息。In an optional embodiment, the generation module 610 is further configured to: call a parser to parse the field configuration rules, determine a subscription relationship model containing the topic information based on the parsing results, and combine the at least one subscription field and the subscription field information corresponding to the at least one subscription field based on the subscription relationship model to generate the target message.
一个可选地实施例,所述生成模块610,还被配置为:根据所述订阅请求携带的订阅端信息确定所述目标订阅端,并将所述目标消息发送至所述目标订阅端。In an optional embodiment, the generating module 610 is further configured to: determine the target subscriber according to the subscriber information carried in the subscription request, and send the target message to the target subscriber.
本说明书一个实施例提供的消息处理装置包括发送端,服务端和多个订阅端。发送端确定初始字段消息和关联服务端的消息格式,按照消息格式将初始字段消息转换为目标字段消息,并将目标字段消息发送至服务端。服务端基于目标字段消息将局部字段消息更新为全局字段消息。在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,由服务端对订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则。根据订阅信息在全局字段消息中提取字段信息。基于字段信息和字段配置规则生成目标消息,并将目标消息发送至目标订阅端。发送端只需要向服务端发送符合消息格式的目标字段消息,由服务端代替发送端接收订阅端的订阅请求,并对订阅请求进行处理。实现了发送端和订阅端的解耦,统一了消息格式。避免了发送端消息的冗余发送,减轻了发送端的消息处理压力,也降低了服务端构建订阅端所需的定制消息的复杂性。A message processing device provided by an embodiment of the present specification includes a sending end, a service end and multiple subscribers. The sending end determines the message format of the initial field message and the associated service end, converts the initial field message into a target field message according to the message format, and sends the target field message to the service end. The service end updates the local field message to a global field message based on the target field message. In the case of receiving a subscription request submitted by a target subscriber among multiple subscribers, the service end parses the subscription request and determines the subscription information and field configuration rules according to the parsing result. Field information is extracted from the global field message according to the subscription information. A target message is generated based on the field information and the field configuration rules, and the target message is sent to the target subscriber. The sending end only needs to send a target field message that conforms to the message format to the service end, and the service end receives the subscription request of the subscriber end instead of the sending end, and processes the subscription request. The decoupling of the sending end and the subscriber end is achieved, and the message format is unified. The redundant sending of the sending end message is avoided, the message processing pressure of the sending end is reduced, and the complexity of the custom message required for the server end to build the subscriber end is reduced.
上述为本实施例的一种消息处理装置的示意性方案。需要说明的是,该消息处理装置的技术方案与上述的消息处理方法的技术方案属于同一构思,消息处理装置的技术方案未详细描述的细节内容,均可以参见上述消息处理方法的技术方案的描述。The above is a schematic scheme of a message processing device of this embodiment. It should be noted that the technical scheme of the message processing device and the technical scheme of the message processing method described above are of the same concept, and the details not described in detail in the technical scheme of the message processing device can be found in the description of the technical scheme of the message processing method described above.
与上述系统实施例相对应,本说明书还提供了消息更新方法实施例,图7示出了根据本说明书一个实施例提供的一种消息更新方法的流程图。消息更新方法应用于服务端,其中,所述服务端关联消息格式。如图7所示,具体包括以下步骤:Corresponding to the above system embodiment, this specification also provides a message update method embodiment. FIG7 shows a flow chart of a message update method provided according to an embodiment of this specification. The message update method is applied to the server, wherein the server associates the message format. As shown in FIG7, it specifically includes the following steps:
步骤702:接收发送端发送的目标字段消息,其中,所述目标字段消息按照所述消息格式对初始字段消息进行转换确定;Step 702: receiving a target field message sent by a transmitting end, wherein the target field message converts and determines the initial field message according to the message format;
步骤704:基于所述目标字段消息将局部字段消息更新为全局字段消息,其中,所述全局字段消息用于生成关联目标订阅端的订阅请求对应的目标消息。Step 704: Based on the target field message, the local field message is updated to a global field message, wherein the global field message is used to generate a target message corresponding to a subscription request associated with a target subscriber.
实际应用中,消息更新方法应用于服务端。接收发送端发送的目标字段消息。目标字段消息由发送端基于初始字段消息和消息格式生成,即,发送端确定初始字段消息和关联服务端的消息格式,消息格式为发送端和服务端之间统一的消息格式。按照消息格式将初始字段消息转换为目标字段消息,并将目标字段消息发送至服务端。服务端接收到目标字段消息后,由于服务端存储了局部字段消息,因此可以基于目标字段消息对局部字段消息进行更新,将目标字段消息添加至局部字段消息所在的存储位置,获得全局字段消息。在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,可以基于全局字段消息生成订阅端需要的目标消息。In practical applications, the message update method is applied to the server. Receive the target field message sent by the sender. The target field message is generated by the sender based on the initial field message and the message format, that is, the sender determines the message format of the initial field message and the associated server, and the message format is a unified message format between the sender and the server. Convert the initial field message into a target field message according to the message format, and send the target field message to the server. After the server receives the target field message, since the server stores the local field message, it can update the local field message based on the target field message, add the target field message to the storage location of the local field message, and obtain the global field message. In the case of receiving a subscription request submitted by a target subscriber among multiple subscribers, the target message required by the subscriber can be generated based on the global field message.
综上所述,发送端只需要向服务端发送符合消息格式的目标字段消息,由服务端代替发送端接收订阅端的订阅请求,并对订阅请求进行处理。实现了发送端和订阅端的解耦,统一了消息格式。避免了发送端消息的冗余发送,减轻了发送端的消息处理压力。In summary, the sender only needs to send a target field message that conforms to the message format to the server, and the server receives the subscription request from the subscriber on behalf of the sender and processes the subscription request. This achieves the decoupling of the sender and the subscriber, unifies the message format, avoids redundant sending of messages on the sender, and reduces the message processing pressure on the sender.
与上述方法实施例相对应,本说明书还提供了消息更新装置实施例,图8示出了本说明书一个实施例提供的一种消息更新装置的结构示意图。消息更新装置应用于服务端,其中,所述服务端关联消息格式。如图8所示,该装置包括:Corresponding to the above method embodiment, this specification also provides a message updating device embodiment, and FIG8 shows a schematic diagram of the structure of a message updating device provided by an embodiment of this specification. The message updating device is applied to a server, wherein the server associates a message format. As shown in FIG8, the device includes:
接收模块802,被配置为接收发送端发送的目标字段消息,其中,所述目标字段消息按照所述消息格式对初始字段消息进行转换确定;The receiving module 802 is configured to receive a target field message sent by a sending end, wherein the target field message is determined by converting the initial field message according to the message format;
生成模块804,被配置为基于所述目标字段消息将局部字段消息更新为全局字段消息,其中,所述全局字段消息用于生成关联目标订阅端的订阅请求对应的目标消息。The generating module 804 is configured to update the local field message into a global field message based on the target field message, wherein the global field message is used to generate a target message corresponding to a subscription request associated with a target subscriber.
综上所述,发送端只需要向服务端发送符合消息格式的目标字段消息,由服务端代替发送端接收订阅端的订阅请求,并对订阅请求进行处理。实现了发送端和订阅端的解耦,统一了消息格式。避免了发送端消息的冗余发送,减轻了发送端的消息处理压力。In summary, the sender only needs to send a target field message that conforms to the message format to the server, and the server receives the subscription request from the subscriber on behalf of the sender and processes the subscription request. This achieves the decoupling of the sender and the subscriber, unifies the message format, avoids redundant sending of messages on the sender, and reduces the message processing pressure on the sender.
上述为本实施例的一种消息更新装置的示意性方案。需要说明的是,该消息更新装置的技术方案与上述的消息更新方法的技术方案属于同一构思,消息更新装置的技术方案未详细描述的细节内容,均可以参见上述消息更新方法的技术方案的描述。The above is a schematic scheme of a message updating device of this embodiment. It should be noted that the technical scheme of the message updating device and the technical scheme of the message updating method described above are of the same concept, and the details not described in detail in the technical scheme of the message updating device can be found in the description of the technical scheme of the message updating method described above.
与上述系统实施例相对应,本说明书还提供了订阅请求处理方法实施例,图9示出了根据本说明书一个实施例提供的一种订阅请求处理方法的流程图。订阅请求处理方法,应用于服务端。如图9所示,具体包括以下步骤:Corresponding to the above system embodiment, this specification also provides a subscription request processing method embodiment. FIG9 shows a flowchart of a subscription request processing method provided according to an embodiment of this specification. The subscription request processing method is applied to the server. As shown in FIG9, it specifically includes the following steps:
步骤902:接收目标订阅端提交的订阅请求;Step 902: receiving a subscription request submitted by a target subscriber;
步骤904:对所述订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则;Step 904: Parse the subscription request, and determine subscription information and field configuration rules according to the parsing result;
步骤906:根据所述订阅信息在全局字段消息中提取字段信息,其中,所述全局字段消息基于发送端发送的字段消息确定;Step 906: extracting field information from a global field message according to the subscription information, wherein the global field message is determined based on a field message sent by the sender;
步骤908:基于所述字段信息和所述字段配置规则生成目标消息,并将所述目标消息发送至所述目标订阅端。Step 908: Generate a target message based on the field information and the field configuration rule, and send the target message to the target subscriber.
实际应用中,订阅请求处理方法应用于服务端。在接收到多个订阅端中的目标订阅端提交的订阅请求的情况下,由服务端对订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则。根据订阅信息在全局字段消息中提取字段信息。基于字段信息和字段配置规则生成目标消息,并将目标消息发送至目标订阅端。其中,全局字段消息是基于发送端发送的字段消息确定。服务端接收到发送端发送的字段消息后,由于服务端存储了局部字段消息,因此可以基于字段消息对局部字段消息进行更新,将字段消息添加至局部字段消息所在的存储位置,获得全局字段消息。In practical applications, the subscription request processing method is applied to the server. When receiving a subscription request submitted by a target subscriber among multiple subscribers, the server parses the subscription request and determines the subscription information and field configuration rules based on the parsing results. Extract field information from the global field message based on the subscription information. Generate a target message based on the field information and the field configuration rules, and send the target message to the target subscriber. Among them, the global field message is determined based on the field message sent by the sender. After the server receives the field message sent by the sender, since the server stores the local field message, it can update the local field message based on the field message, add the field message to the storage location where the local field message is located, and obtain the global field message.
综上所述,服务端代替发送端接收订阅端的订阅请求,并对订阅请求进行处理。实现了发送端和订阅端的解耦,统一了消息格式。也降低了服务端构建订阅端所需的定制消息的复杂性。In summary, the server receives the subscription request from the subscriber instead of the sender and processes the subscription request. This decouples the sender and the subscriber and unifies the message format. It also reduces the complexity of the custom message required by the server to build the subscriber.
与上述方法实施例相对应,本说明书还提供了订阅请求处理装置实施例,图10示出了本说明书一个实施例提供的一种订阅请求处理装置的结构示意图。订阅请求处理装置,应用于服务端。如图10所示,该装置包括:Corresponding to the above method embodiment, this specification also provides a subscription request processing device embodiment. FIG10 shows a schematic diagram of the structure of a subscription request processing device provided by an embodiment of this specification. The subscription request processing device is applied to the server. As shown in FIG10, the device includes:
接收模块1002,被配置为接收目标订阅端提交的订阅请求;The receiving module 1002 is configured to receive a subscription request submitted by a target subscriber;
解析模块1004,被配置为对所述订阅请求进行解析,根据解析结果确定订阅信息和字段配置规则;The parsing module 1004 is configured to parse the subscription request and determine the subscription information and field configuration rules according to the parsing result;
提取模块1006,被配置为根据所述订阅信息在全局字段消息中提取字段信息,其中,所述全局字段消息基于发送端发送的字段消息确定;An extraction module 1006 is configured to extract field information from a global field message according to the subscription information, wherein the global field message is determined based on a field message sent by a sending end;
生成模块1008,被配置为基于所述字段信息和所述字段配置规则生成目标消息,并将所述目标消息发送至所述目标订阅端。The generating module 1008 is configured to generate a target message based on the field information and the field configuration rule, and send the target message to the target subscriber.
综上所述,服务端代替发送端接收订阅端的订阅请求,并对订阅请求进行处理。实现了发送端和订阅端的解耦,统一了消息格式。也降低了服务端构建订阅端所需的定制消息的复杂性。In summary, the server receives the subscription request from the subscriber instead of the sender and processes the subscription request. This decouples the sender and the subscriber and unifies the message format. It also reduces the complexity of the custom message required by the server to build the subscriber.
上述为本实施例的一种订阅请求处理装置的示意性方案。需要说明的是,该订阅请求处理装置的技术方案与上述的订阅请求处理方法的技术方案属于同一构思,订阅请求处理装置的技术方案未详细描述的细节内容,均可以参见上述订阅请求处理方法的技术方案的描述。The above is a schematic scheme of a subscription request processing device of this embodiment. It should be noted that the technical scheme of the subscription request processing device and the technical scheme of the subscription request processing method described above belong to the same concept, and the details not described in detail in the technical scheme of the subscription request processing device can be found in the description of the technical scheme of the subscription request processing method described above.
图11示出了根据本说明书一个实施例提供的一种计算设备1100的结构框图。该计算设备1100的部件包括但不限于存储器1110和处理器1120。处理器1120与存储器1110通过总线1130相连接,数据库1150用于保存数据。Fig. 11 shows a block diagram of a computing device 1100 according to an embodiment of the present specification. The components of the computing device 1100 include but are not limited to a memory 1110 and a processor 1120. The processor 1120 is connected to the memory 1110 via a bus 1130, and a database 1150 is used to store data.
计算设备1100还包括接入设备1140,接入设备1140使得计算设备1100能够经由一个或多个网络1160通信。这些网络的示例包括公用交换电话网(PSTN,Public SwitchedTelephone Network)、局域网(LAN,Local Area Network)、广域网(WAN,Wide AreaNetwork)、个域网(PAN,Personal Area Network)或诸如因特网的通信网络的组合。接入设备1140可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC,networkinterface controller))中的一个或多个,诸如IEEE802.11无线局域网(WLAN,WirelessLocal Area Network)无线接口、全球微波互联接入(Wi-MAX,WorldwideInteroperability for Microwave Access)接口、以太网接口、通用串行总线(USB,Universal Serial Bus)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC,Near FieldCommunication)。The computing device 1100 also includes an access device 1140 that enables the computing device 1100 to communicate via one or more networks 1160. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1140 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).
在本说明书的一个实施例中,计算设备1100的上述部件以及图11中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图11所示的计算设备结构框图仅仅是出于示例的目的,而不是对本说明书范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In one embodiment of the present specification, the above components of the computing device 1100 and other components not shown in FIG. 11 may also be connected to each other, for example, through a bus. It should be understood that the computing device structure block diagram shown in FIG. 11 is only for illustrative purposes and is not intended to limit the scope of the present specification. Those skilled in the art may add or replace other components as needed.
计算设备1100可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或个人计算机(PC,Personal Computer)的静止计算设备。计算设备1100还可以是移动式或静止式的服务器。The computing device 1100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 1100 may also be a mobile or stationary server.
其中,处理器1120用于执行如下计算机可执行指令,该计算机可执行指令被处理器执行时实现上述消息处理方法的步骤。The processor 1120 is used to execute the following computer executable instructions, which implement the steps of the above-mentioned message processing method when executed by the processor.
上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的消息处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述消息处理方法的技术方案的描述。The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above message processing method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above message processing method.
本说明书一实施例还提供一种计算机可读存储介质,其存储有计算机可执行指令,该计算机可执行指令被处理器执行时实现上述消息处理方法的步骤。An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which can implement the steps of the above-mentioned message processing method when executed by a processor.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的消息处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述消息处理方法的技术方案的描述。The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the message processing method described above are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the message processing method described above.
本说明书一实施例还提供一种计算机程序产品,包括计算机程序或指令,该计算机程序或指令被处理器执行时实现上述消息处理方法的步骤。An embodiment of the present specification also provides a computer program product, including a computer program or instructions, which implement the steps of the above-mentioned message processing method when executed by a processor.
上述为本实施例的一种计算机程序产品的示意性方案。需要说明的是,该计算机程序产品的技术方案与上述的消息处理方法的技术方案属于同一构思,计算机程序产品的技术方案未详细描述的细节内容,均可以参见上述消息处理方法的技术方案的描述。The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the message processing method described above are of the same concept, and the details not described in detail in the technical scheme of the computer program product can be found in the description of the technical scheme of the message processing method described above.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据专利实践的要求进行适当的增减,例如在某些地区,根据专利实践,计算机可读介质不包括电载波信号和电信信号。The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本说明书实施例并不受所描述的动作顺序的限制,因为依据本说明书实施例,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本说明书实施例所必须的。It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
以上公开的本说明书优选实施例只是用于帮助阐述本说明书。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本说明书实施例的内容,可作很多的修改和变化。本说明书选取并具体描述这些实施例,是为了更好地解释本说明书实施例的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本说明书。The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can understand and use this specification well.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411018829.4A CN118555263A (en) | 2024-07-29 | 2024-07-29 | Message processing system and method, message updating method and subscription request processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411018829.4A CN118555263A (en) | 2024-07-29 | 2024-07-29 | Message processing system and method, message updating method and subscription request processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118555263A true CN118555263A (en) | 2024-08-27 |
Family
ID=92453418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411018829.4A Pending CN118555263A (en) | 2024-07-29 | 2024-07-29 | Message processing system and method, message updating method and subscription request processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118555263A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120089610A1 (en) * | 2010-10-08 | 2012-04-12 | Salesforce.Com, Inc. | Structured Data In A Business Networking Feed |
CN102469032A (en) * | 2010-10-29 | 2012-05-23 | 国际商业机器公司 | Method and system for issuing-ordering message transmission |
CN103020056A (en) * | 2011-09-20 | 2013-04-03 | 佳都新太科技股份有限公司 | Subscription pushing engine for cross-open-platform social intercourse information optimizing computation |
CN110278231A (en) * | 2018-03-16 | 2019-09-24 | 中移(苏州)软件技术有限公司 | A data subscription distribution method and system |
CN111651281A (en) * | 2020-04-27 | 2020-09-11 | 北京中交兴路信息科技有限公司 | Message publishing and subscribing method and system |
CN112528083A (en) * | 2020-12-10 | 2021-03-19 | 天津(滨海)人工智能军民融合创新中心 | Message customization method based on distributed semantic template distribution |
CN114979265A (en) * | 2022-05-24 | 2022-08-30 | 树根互联股份有限公司 | Message subscription method and device, computer equipment and computer readable storage medium |
-
2024
- 2024-07-29 CN CN202411018829.4A patent/CN118555263A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120089610A1 (en) * | 2010-10-08 | 2012-04-12 | Salesforce.Com, Inc. | Structured Data In A Business Networking Feed |
CN102469032A (en) * | 2010-10-29 | 2012-05-23 | 国际商业机器公司 | Method and system for issuing-ordering message transmission |
CN103020056A (en) * | 2011-09-20 | 2013-04-03 | 佳都新太科技股份有限公司 | Subscription pushing engine for cross-open-platform social intercourse information optimizing computation |
CN110278231A (en) * | 2018-03-16 | 2019-09-24 | 中移(苏州)软件技术有限公司 | A data subscription distribution method and system |
CN111651281A (en) * | 2020-04-27 | 2020-09-11 | 北京中交兴路信息科技有限公司 | Message publishing and subscribing method and system |
CN112528083A (en) * | 2020-12-10 | 2021-03-19 | 天津(滨海)人工智能军民融合创新中心 | Message customization method based on distributed semantic template distribution |
CN114979265A (en) * | 2022-05-24 | 2022-08-30 | 树根互联股份有限公司 | Message subscription method and device, computer equipment and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
付戈 等: "面向多应用多租户的消息数据订阅 关键技术研究", 技术研究, 30 June 2017 (2017-06-30), pages 1 - 4 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113011969B (en) | Banking business processing method, device, medium and electronic equipment based on 5G message | |
CN102158423B (en) | Upgrade via chat group keeping track of content item | |
US11431847B2 (en) | Intermediary device for data message network routing and enhancement in a contact center environment | |
JP4495137B2 (en) | Service broker integration layer to support telecommunications client service requests | |
US8472987B2 (en) | Short message service (SMS) message integration with customer relationship management (CRM) applications | |
US8104044B1 (en) | System and method for client-side widget communication | |
US8375094B2 (en) | Creating a message readable by a plurality of heterogeneous recipients | |
KR101740274B1 (en) | Method and device for serching emoticon | |
US9465852B1 (en) | Data format for processing information | |
US20040078424A1 (en) | Web services via instant messaging | |
JP2009532785A (en) | System and method for searching different data stores via a remote device | |
KR20040053165A (en) | Wireless messaging services using publish/subscribe systems | |
TW200422903A (en) | System and method for improved client server communications of email messages | |
US20070074215A1 (en) | Stateless server-side automation of web service requests using dynamically generated web service interfaces | |
CN112866268B (en) | Message processing method and system | |
US20010056470A1 (en) | Electronic mail transmission/reception system and devices therefor | |
CN112737918B (en) | Method and device for processing mass-sending message in instant communication system | |
US7454461B2 (en) | Data processing information feeder framework | |
CN111680032B (en) | Method and device for processing information sending task and electronic equipment | |
CN118555263A (en) | Message processing system and method, message updating method and subscription request processing method | |
CN113282590A (en) | Interface joint debugging method and device based on 5G message | |
CN115103034B (en) | A method and device for message protocol conversion | |
CN110336847B (en) | Payment message transmission system and method | |
CN117459905B (en) | Message processing method, device and system | |
CN113347460B (en) | Live broadcast system building platform and message transmission method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20240827 |