Message communication platform

By designing a message communication platform, creating consumption queues and distributing messages based on preset configuration information, the communication problems of various types of message consumers are solved, and the effective transmission and efficient distribution of messages are achieved.

CN118555255APending Publication Date: 2024-08-27SHENZHEN BOWO SMART TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410696348.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing message communication technology is difficult to communicate effectively when faced with multiple types of message consumers, and fails to provide an effective solution.

Method used

A message communication platform is designed. Through the message service module, message queue creation module, message storage module and message sending module, consumption queues corresponding to different types are created according to the preset configuration information, and the messages to be sent are distributed through these queues. For multiple types of message consumers, including user terminals and servers.

Benefits of technology

It achieves effective message communication when facing multiple types of message consumers, ensures that messages can be distributed to various terminals and servers according to configuration information, and improves the reliability and efficiency of message delivery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555255A
    Figure CN118555255A
Patent Text Reader

Abstract

A message communication platform comprises a message service module, a message queue creation module, a message storage module and a message sending module, and can create a consumption queue corresponding to a first consumption end and / or a second consumption end according to preset configuration information. The configuration information comprises the first consumption end, the first consumption end is a user terminal for receiving the to-be-sent message, and the second consumption end is a server for receiving the to-be-sent message and sends the stored to-be-sent message to the first consumption end and / or the second consumption end through the corresponding message queue; the message communication platform can effectively carry out message communication when facing various types of message consumption ends.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of message communication, and in particular to a message communication platform. Background Art

[0002] The smart park management system is an important part of modern management. Based on scientific and technological means, it provides a complete solution for the park, combining traditional park management methods with informatization and digitalization. The various business subsystems of the system involve a large number of message communications, and messages need to be delivered to various types of message consumers, such as the ecological environment early warning subsystem. When the system predicts possible risks after analyzing the collected environmental data, the generated early warning will be delivered to the corresponding department heads, corporate responsible persons, hazard disposal personnel and on-duty personnel through computer terminals, mobile terminals, SMS or mail servers and other message consumers.

[0003] At present, there are endless studies on message communication technology, such as: a message communication system proposed in the patent with application number 201810745624.4, which increases the message capacity by adding message queues with the same message topic, and multiple message queues work simultaneously to reduce message processing; a method and system for improving the speed of real-time message communication proposed in the patent with application number 202011628523.2, by providing a transit server deployed on multiple regional backbone networks, so that the messages generated by the collection end enter the server network with the shortest path, and after processing, they are pushed to the data push server closest to the user, and then pushed to the user through the data push server, providing a simple and easy-to-implement solution, which can improve the speed of information generated from the collection end to the server end, and the speed of information sent from the server end to the user terminal, and reduce the risk of message loss, thereby saving time, speeding up message processing and increasing system stability.

[0004] However, these studies all focus on speeding up message processing and reducing the risk of message loss, and do not provide solutions for how to effectively communicate messages when facing various types of message consumers. Summary of the invention

[0005] The message communication platform proposed by the present invention can effectively perform message communication when facing various types of message consumption terminals.

[0006] In a first aspect, a message communication platform is provided in an embodiment, including: a message service module, which is used to provide a service for message sending for a message production end, and the service at least includes a message sending service, and the message sending service can be called by the message production end to send the message to be sent to a message storage module, and the message consumer end of the message to be sent includes at least one of a first consumer end and a second consumer end, the first consumer end is a user terminal that receives the message to be sent, and the second consumer end is a server that receives the message to be sent; a message queue creation module, which is used to create a consumption queue corresponding to the first consumer end and / or corresponding to the second consumer end according to preset configuration information, and the configuration information at least includes the first consumer end; a message storage module, which is used to store the received message to be sent; a message sending module, which is used to distribute the stored message to be sent to the first consumer end and / or the second consumer end through the corresponding message queue.

[0007] In some embodiments, the service also includes a message configuration acquisition service, which can be called by the message production end to obtain the configuration information; the message sending module is also used to classify the stored messages to be sent according to the first consumer end, and distribute the classified stored messages to be sent to the first consumer end through the corresponding message queue.

[0008] In some embodiments, the message configuration service for obtaining includes: all message configuration services and specific message services. The all message configuration services can be called by the message production end to obtain the configuration information of all the messages to be sent by the message production end, and the specific message configuration service can be called by the message production end to obtain the configuration information of the messages to be sent specified by the message production end.

[0009] In some embodiments, the first consumer end includes at least one of a computer terminal, a mobile terminal and a browser, and the second consumer end includes at least one of a text message server and a mail server; the creation of a message queue corresponding to the first consumer end and / or the creation of a consumer queue corresponding to the second consumer end according to preset configuration information includes: when the service is started, creating a message queue corresponding to the second consumer end; when the message sending service is called, determining whether all message queues corresponding to the first consumer ends included in the configuration information exist; if not, determining that there is no first consumer end with a message queue; and creating a message queue corresponding to the first consumer end.

[0010] Some embodiments further include: a message monitoring module, wherein the message monitoring module is used to monitor the message transmission status in the message communication platform.

[0011] In some embodiments, it further includes: a message configuration module, wherein the message configuration module is used to be called by a user to configure the first consumer end.

[0012] In some embodiments, the message configuration module is also used to be called by a user to configure a sending strategy of the message production end.

[0013] In some embodiments, the service also includes a message publishing service and a message subscription service. The message publishing service can be called by the message production end to publish messages, and the message subscription service can be called by the message consumption end to subscribe to messages. When the message publishing service is called by the message production end to publish a message to be sent, the message to be sent is broadcast by the message subscription service to all message consumption ends that have subscribed to the message.

[0014] Some embodiments further include: a configuration item management module, which is used to set the maximum retention time of the message to be sent in the message queue to ensure that the message consumer can receive the message to be sent within the maximum retention time.

[0015] In some embodiments, the message communication platform further includes: a security assurance module, wherein the security assurance module is used to provide a security authentication mechanism for the service to prevent illegal calls to the message communication platform.

[0016] According to the message communication platform of the above embodiment, it is possible to create a consumption queue corresponding to the first consumer end and / or corresponding to the second consumer end according to preset configuration information, and send the stored messages to be sent to the first consumer end and / or the second consumer end through the corresponding message queue. The configuration information includes the first consumer end, the first consumer end is a user terminal that receives the messages to be sent, and the second consumer end is a server that receives the messages to be sent. The message communication platform can effectively perform message communication when facing multiple types of message consumers. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of the structure of the message communication platform provided by the present invention;

[0018] Figure 2 A flowchart of creating a message queue corresponding to a first consumer end and / or creating a consumer queue corresponding to a second consumer end according to an embodiment;

[0019] Figure 3 A schematic diagram of the structure of a message communication platform according to an embodiment;

[0020] Figure 4 A schematic diagram of the structure of a message communication platform according to another embodiment;

[0021] Figure 5 A schematic diagram of the structure of a message communication platform according to another embodiment;

[0022] Figure 6 A schematic diagram of the structure of a message communication platform according to another embodiment. DETAILED DESCRIPTION

[0023] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.

[0024] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.

[0025] The serial numbers assigned to the components in this article, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning.

[0026] Existing message communication platforms usually focus on speeding up message processing and reducing the risk of message loss, and do not provide solutions for how to effectively perform message communication when facing multiple types of message consumers. To address the above problems, the message communication platform proposed in the present invention can create a consumption queue corresponding to a first consumer end and / or corresponding to a second consumer end according to preset configuration information, and send the stored messages to be sent to the first consumer end and / or the second consumer end through the created message queue. The first consumer end is a user terminal that receives the messages to be sent, and the second consumer end is a server that receives the messages to be sent. The message communication platform can effectively perform message communication when facing multiple types of message consumers.

[0027] Please refer to Figure 1In one embodiment of the present invention, a message communication platform is provided, including: a message service module 100, which is used to provide a service for message sending for a message production end, and the service at least includes a message sending service. The message sending service can be called by the message production end to send the message to be sent to the message storage module, and the message consumer end of the message to be sent includes at least one of a first consumer end and a second consumer end, the first consumer end is a user terminal that receives the message to be sent, and the second consumer end is a server that receives the message to be sent; a message queue creation module 200, which is used to create a consumption queue corresponding to the first consumer end and / or corresponding to the second consumer end according to preset configuration information, and the configuration information at least includes the first consumer end; a message storage module 300, which is used to store the received message to be sent; a message sending module 400, which is used to distribute the stored message to be sent to the first consumer end and / or the second consumer end through the corresponding message queue.

[0028] In some embodiments, for the message communication platform applied to the comprehensive management system of a smart park, the message production end can be various business application systems, such as: safety supervision subsystem, ecological environment early warning subsystem, etc. The message production end can be set according to actual needs during application, and this article does not limit it.

[0029] In some embodiments, the message communication platform implements message communication based on JMS (JAVA Message Service). JMS is a JAVA message service application program interface and a message service standard / specification. It makes distributed communication less coupled and message services more reliable and asynchronous.

[0030] In some embodiments, the message communication platform provides a message sending service, through which message sending specifications can be defined. The message sending specifications that can be defined include but are not limited to message production end information, message consumption end information, message content, the maximum retention time of the message in the message queue, scheduled message sending (including sending at fixed time intervals and sending at specified time points), etc.

[0031] In some embodiments, the message storage module 300 stores the messages to be sent in a database to facilitate historical message viewing and message statistics.

[0032] In some embodiments, the first consumer terminal includes a computer terminal, a mobile terminal and a browser, and the second consumer terminal includes at least one of a text message server and an email server.

[0033] In some embodiments, the service also includes a message configuration acquisition service, which can be called by the message production end to obtain configuration information; the message sending module is also used to classify the stored messages to be sent according to the first consumer end, and distribute the classified stored messages to be sent to the first consumer end through the corresponding message queue.

[0034] In some embodiments, the first consumer end receiving the message may be specified, the first consumer end receiving the message may be written into the configuration information, and the configuration information may be obtained by calling a message configuration service before the message production end sends the message.

[0035] In some embodiments, obtaining message configuration services includes: all message configuration services and specific message services. All message configuration services can be called by the message production end to obtain the configuration information of all messages to be sent by the message production end. The specific message configuration service can be called by the message production end to obtain the configuration information of the specified messages to be sent by the message production end. In actual application, corresponding content can be added to the configuration information as needed, which is not limited in this article.

[0036] In some embodiments, a message queue corresponding to the first consumer end and / or a consumer queue corresponding to the second consumer end is created according to preset configuration information, such as Figure 2 As shown, including:

[0037] S10: When the service is started, a message queue corresponding to the second consumer end is created.

[0038] In some embodiments, when the Tomcat server (a free, open-source Web application server) is started, the service provided by the message communication platform is started and two message queues are created, the two message queues corresponding to the SMS server and the mail server respectively.

[0039] S20: When the message sending service is called, it is determined whether all message queues corresponding to the first consumer end included in the configuration information exist.

[0040] S30: If not, determine that the first consumer end of the message queue does not exist.

[0041] S40: Create a message queue corresponding to the first consumer end.

[0042] In some embodiments, the first consumer end in the configuration information includes a computer terminal, a mobile terminal and a browser. When the message sending service is called, it is first determined whether the message queue corresponding to the computer terminal and the message queue corresponding to the mobile terminal both exist. If at least one does not exist, the first consumer end in which the message queue does not exist is determined, and a message queue corresponding to the first consumer end is created. For example, if the message queue corresponding to the computer terminal does not exist, a message queue corresponding to the computer terminal is created until the message queue corresponding to the computer terminal, the message queue corresponding to the mobile terminal and the message queue corresponding to the browser all exist.

[0043] In some embodiments, the messages to be sent include at least PC messages sent to computer terminals, APP messages sent to mobile terminals, browser messages sent to browsers, SMS messages sent to SMS servers, and email messages sent to email servers. For PC messages, each computer terminal has an exclusive message queue, for browser messages, each browser has an exclusive message queue, for APP messages, each mobile terminal has an exclusive message queue, all SMS messages share one message queue, and all email messages share one message queue.

[0044] In some embodiments, the message queue is named as follows: message production end KEY_receiving user ID_terminal identification, where the message production end KEY corresponds to the configuration in the "Application Management-Application Login" menu in the message communication platform, and the receiving user ID is passed by the message production end when calling the message sending service. The terminal identification can be defined as follows: computer terminal: pc, mobile terminal: app. Since there will be a large number of message communications with browsers in the smart park comprehensive management system, the browser can also be set as a message consumer end, and the browser's terminal identification is defined as: bs (the English word for browser is browser).

[0045] In some embodiments, Figure 3 As shown, the message communication platform also includes: a message configuration module 500, and the message configuration module 500 is used to be called by the user to configure the first consumer end.

[0046] In some embodiments, the message configuration module 500 is also used to be called by the user to configure the sending strategy of the message production end; for example: when sending a message, if the message consumption ends receiving the message are not online, the message is only sent to the first message consumption end that logs in, and other message consumption ends that log in later will no longer be reminded.

[0047] In some embodiments, the service also includes a message publishing service and a message subscription service. The message publishing service can be called by the message production end to publish messages, and the message subscription service can be called by the message consumption end to subscribe to messages. When the message publishing service is called by the message production end to publish the message to be sent, the message to be sent is broadcast by the message subscription service to all message consumers that have subscribed to the message.

[0048] In some embodiments, the messaging platform follows a “publish-subscribe” model, in which the message producer is called a publisher and the message consumer is called a subscriber.

[0049] In some embodiments, there is message communication between various business application systems in the smart park comprehensive management system, such as: user information distribution, pollution source information distribution, department information distribution, task distribution, etc. The message production end is each business subsystem, and the message consumption end is a computer terminal and / or mobile terminal and / or browser. The business subsystem calls the message publishing service to publish messages for subscription by related computer terminals, mobile terminals, and browsers. The associated business application system can actively push messages to each computer terminal and / or mobile terminal and / or browser that has subscribed to the service.

[0050] In some embodiments, Figure 4 As shown, the message communication platform further includes a message monitoring module 600, and the message monitoring module 600 is used to monitor the message transmission status in the message communication platform.

[0051] In some embodiments, the message monitoring module 600 mainly monitors the message delivery status, records the publisher, subscriber, publishing time, publishing content, time consumption, message status, etc. of the message, and forms a message record log to facilitate system administrators to understand the system status in a timely manner.

[0052] In some embodiments, for messages that fail to call a service or distribute a message, the message communication platform can resend these messages; for messages that fail to send, the administrator / message consumer can cancel the message based on actual conditions to prevent spam messages.

[0053] In some embodiments, Figure 5 As shown, the message communication platform also includes: a configuration item management module 700, which is used to set the maximum retention time of the message to be sent in the message queue to ensure that the message consumer can receive the message to be sent within the maximum retention time. For example, the maximum retention time can be set to 3 days.

[0054] In some embodiments, the message communication platform also provides a message statistics function, which mainly counts the published and subscribed messages, including the number of times sent, the number of successes, the time consumed, the number of times received, the success rate, etc., to facilitate system administrators to timely understand the operation and usage of each business application system.

[0055] In some embodiments, Figure 6 As shown, the message communication platform also includes: a security assurance module 800, which is used to provide a security authentication mechanism for services to prevent illegal calls to the message communication platform.

[0056] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.

Claims

1. A message communication platform, characterized in that: include: A message service module is used to provide a message production end with a service for sending a message, wherein the service at least includes a message sending service, and the message sending service can be called by the message production end to send a message to be sent to the message storage module, and the message consumer end of the message to be sent includes at least one of a first consumer end and a second consumer end, wherein the first consumer end is a user terminal that receives the message to be sent, and the second consumer end is a server that receives the message to be sent; A message queue creation module, used to create a consumption queue corresponding to the first consumer end and / or corresponding to the second consumer end according to preset configuration information, wherein the configuration information at least includes the first consumer end; A message storage module, used for storing the received message to be sent; The message sending module is used to distribute the stored messages to be sent to the first consumer end and / or the second consumer end through the corresponding message queue.

2. The message communication platform according to claim 1, characterized in that: The service also includes a message configuration acquisition service, which can be called by the message production end to acquire the configuration information; The message sending module is further used to classify the stored messages to be sent according to the first consumer end, and distribute the classified stored messages to be sent to the first consumer end through the corresponding message queue.

3. The message communication platform as claimed in claim 2, characterized in that: The message configuration acquisition service includes: all message configuration services and specific message services. The all message configuration services can be called by the message production end to obtain the configuration information of all the messages to be sent by the message production end. The specific message configuration service can be called by the message production end to obtain the configuration information of the specified messages to be sent by the message production end.

4. The message communication platform as claimed in claim 3, characterized in that: The first consumer terminal includes at least one of a computer terminal, a mobile terminal and a browser, and the second consumer terminal includes at least one of a short message server and a mail server; The creating a message queue corresponding to the first consumer end and / or creating a consumption queue corresponding to the second consumer end according to the preset configuration information includes: When the service is started, creating a message queue corresponding to the second consumer end; When the message sending service is called, determining whether all message queues corresponding to the first consumer ends included in the configuration information exist; If not, it is determined that the first consumer end of the message queue does not exist; Create a message queue corresponding to the first consumer end.

5. The message communication platform according to claim 1, characterized in that: Also includes: A message monitoring module, wherein the message monitoring module is used to monitor the message transmission status in the message communication platform.

6. The message communication platform according to claim 1, characterized in that: Also includes: A message configuration module, wherein the message configuration module is used to be called by a user to configure the first consumer end.

7. The message communication platform according to claim 6, characterized in that: The message configuration module is also used to be called by the user to configure the sending strategy of the message production end.

8. The message communication platform according to claim 1, characterized in that: The service also includes a message publishing service and a message subscription service. The message publishing service can be called by the message production end to publish messages, and the message subscription service can be called by the message consumption end to subscribe to messages. When the message publishing service is called by the message producing end to publish the message to be sent, the message to be sent is broadcasted by the message subscribing service to all message consuming ends that have subscribed to the message.

9. The message communication platform according to claim 1, characterized in that: Also includes: A configuration item management module is used to set the maximum retention time of the message to be sent in the message queue to ensure that the message consumer can receive the message to be sent within the maximum retention time.

10. The message communication platform according to claim 1, characterized in that: The message communication platform also includes: a security assurance module, which is used to provide a security authentication mechanism for the service to prevent illegal calls to the message communication platform.