Message transmission method, electronic equipment and storage medium
Through the combination of load balancing server and RocketMQ cluster, a variety of interactive business functions between users and communication terminals are realized, solving the problem of low message transmission efficiency in the 5G era, reducing enterprise operating costs, and improving market competitiveness.
Patent Information
- Application Number
- CN202410960358.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-24
AI Technical Summary
In the 5G era, enterprises are faced with massive and time-sensitive business information processing needs. Existing message transmission methods are inefficient, resulting in high operation and management costs, making it difficult to achieve precise management and precision marketing.
Distribute messages to the target interface server through the load balancing server, aggregate them to the RocketMQ cluster for review, transmit them to the communication gateway and send them to the operator, receive feedback status and generate a report, realizing various interactive business functions between users and communication terminals, improving Message transmission efficiency.
It improves the efficiency of message transmission, reduces enterprise operation and management costs, and enhances the competitiveness of enterprises in market competition.
Smart Images

Figure CN118694736A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a message transmission method, an electronic device and a storage medium. Background Art
[0002] With the promotion of 5G and full services, the development trend of corporate business information is globalization, mass and time-effective. Every day, hundreds of millions of users handle various businesses through text messages, instant messaging, and various websites; millions of companies promote products and services through electronic platforms. It can be said that the 5G era has promoted the leap of the entire market economy, and at the same time, it has also put forward new market competition requirements for enterprises. Only by seizing the opportunities of the times and giving full play to the advantages of new technologies in terms of convenience, speed and timeliness can enterprises significantly reduce their operating and management costs internally, achieve precise management, and externally obtain business opportunities faster and carry out precision marketing, so that enterprises can be invincible in the fierce market competition.
[0003] In view of this, there is an urgent need to propose an innovative message transmission method that can enable users to implement various interactive business functions between the Internet and other communication terminals, improve message transmission efficiency, thereby improving enterprise work efficiency and reducing enterprise costs. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present application provides a message transmission method, an electronic device and a storage medium. The message transmission method enables users to implement various interactive business functions between the Internet and other communication terminals, improves the efficiency of message transmission, thereby improving the work efficiency of the enterprise and reducing the cost of the enterprise.
[0005] The first aspect of the present application provides a message transmission method, comprising:
[0006] Get the user's message to be transmitted;
[0007] Distribute the messages to be transmitted to the target interface server through the load balancing server;
[0008] Aggregate the messages to be transmitted in the target interface server into the first RocketMQ cluster;
[0009] Review and determine the messages to be transmitted in the first RocketMQ cluster, and obtain review-exempt messages and review-approved messages;
[0010] Transmitting the review-free message and the review-approved message to the communication gateway, and sending the review-free message and the review-approved message to the operator through the communication gateway, so that the operator can send the review-free message and the review-approved message to the communication terminal;
[0011] Receive the message sending status fed back by the operator through the communication gateway, generate a message status report and report formation information based on the message sending status, and aggregate the message status report into the second RocketMQ cluster;
[0012] In response to the report formation information, the message status report in the second RocketMQ cluster is transmitted to the third RocketMQ cluster and a report push instruction is generated;
[0013] A message status report is sent to the user in response to the report push instruction.
[0014] In one implementation, reviewing and determining the message to be transmitted in the first RocketMQ cluster includes:
[0015] Asynchronously store the submission records of the messages to be transmitted;
[0016] Check whether there is an unreported signature in the message to be transmitted;
[0017] Determine the carrier to which the message to be transmitted belongs;
[0018] Receive the review-free identification, review-free verification code and review-free channel application of the message to be transmitted;
[0019] Determine whether the user corresponding to the message to be transmitted exists in the whitelist or blacklist;
[0020] Determine whether there are illegal keywords in the message to be transmitted based on the preset keyword library;
[0021] Receive provincial information of the message to be transmitted, and determine the information diversion channel based on the provincial information;
[0022] Generates sending timing information of the message to be transmitted and marks the message to be transmitted with an audit tag.
[0023] In one embodiment, transmitting the review-free message and the review-approved message to the communication gateway includes:
[0024] The approval message is stored in the first MySQL database;
[0025] Store the review-free messages in the first Redis cluster;
[0026] Transmitting the review-exempt messages in the first Redis cluster to the communication gateway according to a preset first priority, a preset second priority, or a preset third priority; wherein the first priority, the preset second priority, and the preset third priority are determined according to the message types of the reviewed messages and the review-exempt messages;
[0027] The approved message in the first MySQL database is transmitted to the communication gateway according to the preset third priority.
[0028] In one embodiment, after transmitting the review exemption message and the review approval message to the communication gateway, and before sending the review exemption message and the review approval message to the operator through the communication gateway, the method further includes:
[0029] Cache the user's user data in memory;
[0030] If the cache time of the user data in the memory exceeds the preset time, the user data is stored in the second Redis cluster.
[0031] In one implementation, generating a message status report and report formation information based on a message sending status includes:
[0032] Obtain user data matching the message sending status in the memory or the second Redis cluster;
[0033] A message status report and report formation information are generated based on the message sending status and user data matching the message sending status.
[0034] In one embodiment, after aggregating the message status report into the second RocketMQ cluster, the method further includes:
[0035] Transfer the message status report from the second RocketMQ cluster to the second MySQL database;
[0036] Receive a report active acquisition instruction sent by a user, and store the report active acquisition instruction in a third Redis cluster;
[0037] Responding to the report active acquisition instruction in the third Redis cluster, acquiring the message status report in the second MySQL database;
[0038] The obtained message status report is fed back to the user.
[0039] In one embodiment, sending the message status report to the user in response to the report push instruction includes:
[0040] In response to the report push instruction, the message status report is sent to the user in real time according to the interface service provided by the user.
[0041] In one embodiment, after the load balancing server distributes the message to be transmitted to the target interface server, the method further includes:
[0042] Receive the deduction information generated by the target interface server, and store the deduction information in the fourth RocketMQ cluster;
[0043] Transfer the deduction information in the fourth RocketMQ cluster to the third MySQL database;
[0044] In response to the scheduled fee deduction statistics instruction, statistics are collected on the fee deduction information in the third MySQL database to obtain fee deduction statistics information.
[0045] A second aspect of the present application provides an electronic device, including:
[0046] Processor; and
[0047] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0048] A third aspect of the present application provides a non-transitory machine-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.
[0049] The technical solution provided by this application may have the following beneficial effects:
[0050] The message transmission method, electronic device and storage medium provided by the present application obtain the user's messages to be transmitted, and then distribute the messages to be transmitted to the target interface server through the load balancing server, and aggregate the messages to be transmitted in the target interface server into the first RocketMQ cluster. Then, the messages to be transmitted in the first RocketMQ cluster are reviewed and determined to obtain the review-free messages and the review-approved messages to ensure the standardization of the transmitted messages. Furthermore, the review-free messages and the review-approved messages are transmitted to the communication gateway, and the review-free messages and the review-approved messages are sent to the operator through the communication gateway, so that the operator can send the review-free messages and the review-approved messages to the communication terminal. This allows users to realize a variety of interactive business functions between the Internet and other communication terminals.
[0051] Furthermore, the present application can receive the message sending status fed back by the operator through the communication gateway, generate a message status report and report formation information based on the message sending status, and aggregate the message status report into the second RocketMQ cluster, and then transmit the message status report in the second RocketMQ cluster to the third RocketMQ cluster in response to the report formation information and generate a report push instruction, and send the message status report to the user in response to the report push instruction. Thus, the user can know whether the message has been delivered in time.
[0052] In general, this application enables users to implement various interactive business functions between other communication terminals through the Internet, improve message transmission efficiency, thereby improving enterprise work efficiency and reducing enterprise costs.
[0053] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The above and other objects, features and advantages of the present application will become more apparent through a more detailed description of exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0055] Figure 1 This is one of the flowcharts of the message transmission method shown in the embodiment of the present application;
[0056] Figure 2 This is the second flow chart of the message transmission method shown in the embodiment of the present application;
[0057] Figure 3 This is the third flow chart of the message transmission method shown in the embodiment of the present application;
[0058] Figure 4 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0060] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application 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 herein refers to and includes any or all possible combinations of one or more associated listed items.
[0061] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this 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 this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0062] With the promotion of 5G and full services, the development trend of corporate business information is globalization, mass and time-effective. Every day, hundreds of millions of users handle various businesses through text messages, instant messaging, and various websites; millions of companies promote products and services through electronic platforms. It can be said that the 5G era has promoted the leap of the entire market economy, and at the same time, it has also put forward new market competition requirements for enterprises. Only by seizing the opportunities of the times and giving full play to the advantages of new technologies in terms of convenience, speed and timeliness can enterprises significantly reduce their operating and management costs internally, achieve precise management, and externally obtain business opportunities faster and carry out precision marketing, so that enterprises can be invincible in the fierce market competition.
[0063] In view of this, there is an urgent need to propose an innovative message transmission method that can enable users to implement various interactive business functions between the Internet and other communication terminals, improve message transmission efficiency, thereby improving enterprise work efficiency and reducing enterprise costs.
[0064] In response to the above problems, an embodiment of the present application provides a message transmission method, which enables users to implement various interactive business functions between other communication terminals through the Internet, improve message transmission efficiency, thereby improving enterprise work efficiency and reducing enterprise costs.
[0065] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0066] Figure 1 This is one of the flow diagrams of the message transmission method shown in the embodiment of the present application, please refer to Figure 1 , the message transmission method shown in the embodiment of the present application may include:
[0067] In step 101, the user's message to be transmitted is obtained. In the embodiment of the present application, the message to be transmitted may be a message data packet, and the message to be transmitted may include but is not limited to voice messages, short messages, video messages, multi-party calls, instant messages, electronic faxes, and files. It is understandable that in actual applications, the form of the message to be transmitted may be diverse, depending on the actual application situation, and is not limited here.
[0068] In step 102, the message to be transmitted is distributed to the target interface server through the load balancing server. In the embodiment of the present application, the type of the target interface server may include but is not limited to cmpp, webservice, http, etc., and multiple modes are used in parallel, which can be compatible with data exchange with other systems and can be flexibly configured using XML format files. Among them, the single-threaded single request of http supports batch submission of 1,000 numbers, and the response time is within 2 seconds. Users can submit in the form of thread pool.
[0069] A load-balancing server is a server that distributes load. Through the load-balancing server, service requests are evenly distributed to the services that are actually executed, thereby ensuring the response speed of the entire system.
[0070] In step 103, the messages to be transmitted in the target interface server are aggregated into the first RocketMQ cluster. RocketMQ is a pure Java, distributed, queue model open source message middleware that supports transaction messages, sequential messages, batch messages, scheduled messages, message backtracking, etc. Its main functions are asynchronous decoupling and traffic peak shaving.
[0071] In step 104, the messages to be transmitted in the first RocketMQ cluster are audited and determined to obtain audit-free messages and audit-passed messages. Auditing the messages to be transmitted in the first RocketMQ cluster is essentially to perform message format verification and authentication on the messages to be transmitted in the first RocketMQ cluster to ensure the standardization of the messages to be transmitted. The audit-free message refers to a message that is exempt from audit determination, and the audit-passed message refers to a message that has passed the audit determination.
[0072] In step 105, the review-free message and the review-passed message are transmitted to the communication gateway, and the review-free message and the review-passed message are sent to the operator through the communication gateway. In the embodiment of the present application, the communication gateway can support standard protocols such as cmpp, sgip, smgp, and http, and can be directly connected to the operator, so that the operator can send the review-free message and the review-passed message to the communication terminal, which can be, for example, a mobile phone or other device.
[0073] In step 106, the message sending status fed back by the operator is received through the communication gateway, and a message status report and report formation information are generated based on the message sending status, and the message status report is summarized in the second RocketMQ cluster. It is understandable that the message sending status may include but is not limited to sending failure and sending success. The above-mentioned report formation information refers to the information that the message status report has been formed.
[0074] In step 107, in response to the report formation information, the message status report in the second RocketMQ cluster is transmitted to the third RocketMQ cluster and a report push instruction is generated. In the embodiment of the present application, the report push instruction refers to an instruction to push the message status report to the user.
[0075] In step 108, a message status report is sent to the user in response to the report push instruction, so that the user can know whether the message has been delivered in time, so that the user can make the next operation in time.
[0076] This application obtains the user's to-be-transmitted messages, and then distributes the to-be-transmitted messages to the target interface server through the load balancing server, and aggregates the to-be-transmitted messages in the target interface server into the first RocketMQ cluster. Then, the to-be-transmitted messages in the first RocketMQ cluster are reviewed and determined, and the exempted and reviewed messages are obtained to ensure the standardization of the transmitted messages. Further, the exempted and reviewed messages are transmitted to the communication gateway, and the exempted and reviewed messages are sent to the operator through the communication gateway, so that the operator can send the exempted and reviewed messages to the communication terminal. Thus, users can realize a variety of interactive business functions between the Internet and other communication terminals. Further, this application can receive the message sending status fed back by the operator through the communication gateway, and generate a message status report and report formation information based on the message sending status, and aggregate the message status report into the second RocketMQ cluster, and then transmit the message status report in the second RocketMQ cluster to the third RocketMQ cluster in response to the report formation information and generate a report push instruction, and send the message status report to the user in response to the report push instruction. Thus, the user can know in time whether the message has been delivered. In general, this application enables users to implement various interactive business functions between other communication terminals through the Internet, improve message transmission efficiency, thereby improving enterprise work efficiency and reducing enterprise costs.
[0077] Figure 2 This is the second flow chart of the message transmission method shown in the embodiment of the present application, please refer to Figure 2 In some embodiments, the message transmission method shown in the embodiment of the present application may include:
[0078] In step 201, the load balancing server distributes the message to be transmitted to the target interface server. In the embodiment of the present application, the content of step 201 is substantially the same as that of step 102, and will not be described in detail here.
[0079] In step 202, the deduction information generated by the target interface server is received, and the deduction statistics information is generated based on the deduction information. In an embodiment of the present application, specifically, the deduction information generated by the target interface server can be first received, and the deduction information can be stored in the fourth RocketMQ cluster. The deduction information in the fourth RocketMQ cluster can then be transferred to the third MySQL database. Then, the deduction information in the third MySQL database can be counted in response to the timed deduction statistics instruction to obtain the deduction statistics information. Among them, the timed deduction statistics instruction can set the timer at 2 a.m., without a unique limit.
[0080] In step 203, the messages to be transmitted in the target interface server are aggregated into the first RocketMQ cluster. In the embodiment of the present application, the content of step 203 is substantially the same as that of step 103, and will not be repeated here.
[0081] In step 204, the messages to be transmitted in the first RocketMQ cluster are reviewed and determined to obtain exempted messages and approved messages. In the implementation of this application, specifically, the submission records of the messages to be transmitted can be asynchronously stored, and then the message to be transmitted is retrieved to see if there is an unreported signature. If there is an unreported signature, it means that the user has not signed and registered with the operator. Then the operator to which the message to be transmitted belongs is determined. Then the exempted identification, exempted verification code and exempted channel application of the message to be transmitted are received. It can be understood that if there is an exempted identification, exempted verification code and exempted channel application, it means that the message to be transmitted is an exempted message. Then it is determined whether the user corresponding to the message to be transmitted exists in the whitelist or blacklist. If on the blacklist, the message to be transmitted is rejected. Then, based on the preset keyword library, it is determined whether there are illegal keywords in the message to be transmitted. If there are illegal keywords, the message to be transmitted is rejected. In addition, intelligent monitoring and interception functions can be realized through comprehensive factors (such as sending behavior patterns, port traffic, success rate of sending, customer industry, etc.), and at the same time, it has manual review monitoring and interception functions, and professional manual reviewers are responsible for review work. Then, the provincial information of the message to be transmitted is received, and the information diversion channel is determined based on the provincial information. The provincial information refers to the information of the province to which the message to be transmitted needs to be sent. Then, the sending timing information of the message to be transmitted and the review tag for marking the message to be transmitted are generated. The sending timing information and the review tag can be attached to the exempted review message and the approved review message, so as to distinguish the messages and set the sending time of each message.
[0082] In step 205, the review-free message and the review-passed message are transmitted to the communication gateway, and the review-free message and the review-passed message are sent to the operator through the communication gateway. In the process of transmitting the review-free message and the review-passed message to the communication gateway, the review-free message can be first stored in the first MySQL database; and then the review-free message is stored in the first Redis cluster. The redis cluster is a horizontal expansion of redis, that is, N Redis nodes are started, and the entire data is distributed and stored in these N nodes, and each node stores 1 / N of the total data. Redis (Remote Dictionary Server), that is, remote dictionary service, is an open source log-type, Key-Value database written in ANSI C language, supports the network, can be based on memory and can be persistent, and provides APIs in multiple languages. Then, the review-free message in the first Redis cluster is transmitted to the communication gateway according to the preset first priority, the preset second priority or the preset third priority. Among them, the first priority, the preset second priority and the preset third priority are determined according to the message type of the review-free message and the review-free message. For example, instant messages and instant files are the highest priority messages, such as the first priority. At the same time, the approval message in the first MySQL database is transmitted to the communication gateway according to the preset third priority, so that the operator can send the exemption message and the approval message to the communication terminal.
[0083] Figure 3 This is the third flow chart of the message transmission method shown in the embodiment of the present application, please refer to Figure 3 In some embodiments, the message transmission method shown in the embodiment of the present application may include:
[0084] In step 301, the review-free message and the review-passed message are transmitted to the communication gateway. In the embodiment of the present application, the content of step 301 is substantially the same as that of step 205, and will not be repeated here.
[0085] In step 302, the user data of the user is cached in the memory. If the cache time of the user data in the memory exceeds the preset time, the user data is stored in the second Redis cluster. The preset time can be set to 20 seconds, which depends on the actual application situation and is not a unique limitation.
[0086] In step 303, the review-free message and the review-approved message are sent to the operator through the communication gateway, so that the operator can send the review-free message and the review-approved message to the communication terminal.
[0087] In step 304, the message sending status fed back by the operator is received through the communication gateway, and a message status report and report formation information are generated based on the message sending status, and the message status report is aggregated into the second RocketMQ cluster.
[0088] In the embodiment of the present application, user data matching the message sending status can be first obtained in the memory or the second Redis cluster, and then a message status report and report formation information are generated based on the message sending status and the user data matching the message sending status. In this way, the message status report can be accurately fed back to the user according to the user data.
[0089] In step 305, in response to the report formation information, the message status report in the second RocketMQ cluster is transmitted to the third RocketMQ cluster and a report push instruction is generated. In the embodiment of the present application, the content of step 305 is substantially the same as that of step 107, and will not be repeated here.
[0090] In step 306, a report active acquisition instruction sent by the user is received, and the message status report is fed back to the user in response to the report active acquisition instruction. In an embodiment of the present application, the message status report can be first transferred from the second RocketMQ cluster to the second MySQL database, and then the report active acquisition instruction sent by the user is received, and the report active acquisition instruction is stored in the third Redis cluster. Then, in response to the report active acquisition instruction in the third Redis cluster, the message status report is obtained in the second MySQL database, and the obtained message status report is fed back to the user.
[0091] It can be understood that the execution methods shown in step 305 and step 306 can be executed one by one or simultaneously. When executed simultaneously, the message status report can be divided into an emergency message status report and a non-emergency message status report. The emergency message status report can be pushed by executing step 305, and the non-emergency message status report can be pushed by executing step 306.
[0092] In step 307, the message status report is sent to the user in response to the report push instruction. Specifically, the message status report can be sent to the user in real time according to the interface service provided by the user in response to the report push instruction.
[0093] In the embodiment of the present application, a system platform for running the above-mentioned message transmission method can be established. In the process of establishing the system platform, each functional module, interface module, and gateway module can be designed independently of each other, and the failure or update of a single module does not affect the use of the overall platform or other modules. Each module can be expanded horizontally according to the requirements of the data level, so as to meet the needs of capacity expansion without system-level transformation. The industry's popular Java can be used as the main programming language, and mature and stable frameworks and open source tools (RocketMQ, Memery Cache, Redis, etc.) can be used. With object-oriented design ideas and component technology, the system adopts a three-layer architecture, namely, the application layer, the logic layer, and the data layer, which is flexible and safe. Software and hardware devices can be used for load balancing, with large capacity, multi-concurrency, and multi-task impact; the data server uses a cluster method to withstand massive data storage and multi-client links; the core service components in the system avoid the occurrence of failure phenomena. The system scalability can also be fully considered, and the overall design adopts modular distributed deployment to support later modular expansion and network expansion. The platform main framework not only meets the current business expansion, but also fully considers the access of new business modules in the future and the sustainability of the platform. Maintainability can also be divided into two aspects: hardware and software. When deploying hardware, dual-machine hot standby is used to fully consider the installation, upgrade, replacement, and failure of hardware equipment. The maintainability of software fully considers the clear and easy-to-understand architecture, while ensuring the friendly and easy-to-operate management interface. In addition, the text log (log) + cache (MemoryCache) + queue mechanism (RocketMQ) + DB + cluster can be used to ensure efficient and stable data transmission and access.
[0094] Furthermore, the system platform can perform automatic dialing tests, and the time interval for automatic dialing tests is one hour. At every hour, the mobile phone number and dialing test content will be dialed through the self-provided cross-network service dialing test mobile phone number, and multi-granularity dialing test reports such as hours, days, weeks, and months will be provided. The dialing test time interval can also be customized as required. The system platform can also provide monthly business analysis reports based on customer industries (such as government, finance, logistics, and commerce), SMS content types (such as verification codes, order notifications, membership services, marketing promotions, etc.), and based on sending traffic, success rate, etc. This is conducive to providing strategic support for enterprises with various data. The system platform can also monitor the sending success rate, failure rate, and unknown rate of message channels in real time. When the traffic decreases or increases month-on-month, or when abnormal data in a certain channel is submitted too frequently, the user can be notified by email, phone, or SMS according to the user's requirements. The system platform considers the application of hardware firewall, operating system firewall, encryption, authentication, certificate and other technical applications in network architecture; network connection adopts dedicated line or VPN; platform management also focuses on security, and adopts multi-pronged measures such as system login security verification, authority control, log record, abnormal SMS and voice alarm to eliminate security loopholes and make the system safe and reliable. At the same time, the system platform fully considers the information security protection function, and ensures the information security involved in the business by setting data access permission strategy, platform authority function construction, and standardizing maintenance processes. The system platform fully considers the scalability of the system and adopts service-oriented architecture (SOA). The overall design adopts modular distributed deployment to support later modular expansion and network expansion. The main framework of the platform not only meets the current business expansion, but also fully considers the access of new business modules in the future and the sustainability of the platform.
[0095] The performance indicators of the system platform are as follows:
[0096] 1. Performance analysis
[0097] System online performance analysis: estimated daily transaction volume, daily average, peak value, node response speed, etc.;
[0098] Batch performance analysis: batch sending data volume, processing time, batch processing results;
[0099] Performance capacity analysis and suggestions: The data backup cycle is to do a level 0 backup (full backup) every Sunday; a level 1 backup (backup since level 0 or level 1) on Wednesday; and a level 2 backup (backup since level 1 or level 2) on Monday, Tuesday, Thursday, Friday, and Saturday. This improves data security and shortens data recovery time.
[0100] System supported operation mode: 7×24;
[0101] Cross-system information interaction methods: http, socket, ftp, mq; data including permission control mainly uses http, and real-time data mainly uses MQ.
[0102] 2. Main performance indicators
[0103] CMPP, SGIP, and SMGP interfaces support multiple connections (within 100 connections for a single account).
[0104] The rate of a single channel can reach 1000 per second.
[0105] The reception success rate of SMS forwarding reaches over 98%.
[0106] Supports forwarding of long text messages with more than 70 words.
[0107] The SMS service code shall not exceed 18 digits to ensure that the corresponding enterprise identification code and other business codes can be added to the extension of the service code.
[0108] Under the premise of hardware performance guarantee, it can meet the sending of 100 million messages per day.
[0109] The arrival time of industry text messages is within 10 seconds, and most of them can be arrived within 5 seconds.
[0110] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides an electronic device for executing a message transmission method and a corresponding embodiment.
[0111] Figure 4 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.
[0112] See also Figure 4 , the electronic device 1000 includes a memory 1010 and a processor 1020 .
[0113] The processor 1020 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0114] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0115] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.
[0116] The scheme of the present application has been described in detail above with reference to the accompanying drawings. In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, refer to the relevant description of other embodiments. Those skilled in the art should also know that the actions and modules involved in the description are not necessarily required for the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application can be adjusted in order, merged and deleted according to actual needs, and the modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0117] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0118] Alternatively, the present application can also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or electronic device, server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0119] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the application herein may be implemented as electronic hardware, computer software, or combinations of both.
[0120] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, a program segment or a code, and the part of the module, the program segment or the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or the flow chart, and the combination of the square boxes in the block diagram and / or the flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0121] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A message transmission method, characterized in that: include: Get the user's message to be transmitted; Allocating the message to be transmitted to the target interface server through the load balancing server; Aggregate the messages to be transmitted in the target interface server into the first RocketMQ cluster; Review and determine the messages to be transmitted in the first RocketMQ cluster to obtain review-exempt messages and review-approved messages; Transmitting the review-free message and the review-approved message to a communication gateway, and sending the review-free message and the review-approved message to an operator through the communication gateway, so that the operator can send the review-free message and the review-approved message to a communication terminal; Receive the message sending status fed back by the operator through the communication gateway, generate a message status report and report formation information based on the message sending status, and aggregate the message status report into the second RocketMQ cluster; In response to the report formation information, the message status report in the second RocketMQ cluster is transmitted to the third RocketMQ cluster and a report push instruction is generated; The message status report is sent to the user in response to the report push instruction.
2. The message transmission method according to claim 1, characterized in that: The auditing and determining of the message to be transmitted in the first RocketMQ cluster includes: Asynchronously storing the submission record of the message to be transmitted; Retrieve whether there is an unreported signature in the message to be transmitted; Determining the operator to which the message to be transmitted belongs; Receive the review-free identification, review-free verification code and review-free channel application of the message to be transmitted; Determine whether the user corresponding to the message to be transmitted is in the whitelist or the blacklist; Determining whether there are illegal keywords in the message to be transmitted based on a preset keyword library; Receiving provincial information of the message to be transmitted, and determining an information diversion channel based on the provincial information; Generate sending timing information of the message to be transmitted and mark the message to be transmitted with an audit tag.
3. The message transmission method according to claim 1, characterized in that: The transmitting the review-free message and the review-approved message to the communication gateway comprises: Storing the approval message in the first MySQL database; Storing the review-free message in the first Redis cluster; Transmitting the review-exempt messages in the first Redis cluster to the communication gateway according to a preset first priority, a preset second priority, or a preset third priority; wherein the first priority, the preset second priority, and the preset third priority are determined according to the message types of the reviewed messages and the review-exempt messages; The approved message in the first MySQL database is transmitted to the communication gateway according to the preset third priority.
4. The message transmission method according to claim 1, characterized in that: After transmitting the review-free message and the review-approved message to the communication gateway, and before sending the review-free message and the review-approved message to the operator through the communication gateway, the method further includes: caching user data of the user into a memory; If the cache time of the user data in the memory exceeds a preset time, the user data is stored in the second Redis cluster.
5. The message transmission method according to claim 4, characterized in that: The generating of the message status report and the report formation information based on the message sending status comprises: Acquire user data matching the message sending status in the memory or the second Redis cluster; The message status report and the report formation information are generated based on the message sending status and user data matching the message sending status.
6. The message transmission method according to claim 1, characterized in that: After aggregating the message status report into the second RocketMQ cluster, the method further includes: Transferring the message status report from the second RocketMQ cluster to a second MySQL database; Receiving the report active acquisition instruction sent by the user, and storing the report active acquisition instruction in the third Redis cluster; Responding to the report active acquisition instruction in the third Redis cluster, acquiring the message status report in the second MySQL database; The acquired message status report is fed back to the user.
7. The message transmission method according to claim 1, characterized in that: The sending the message status report to the user in response to the report push instruction comprises: In response to the report push instruction, the message status report is sent to the user in real time according to the interface service provided by the user.
8. The message transmission method according to claim 1, characterized in that: After the load balancing server distributes the message to be transmitted to the target interface server, the method further includes: Receive the deduction information generated by the target interface server, and store the deduction information in the fourth RocketMQ cluster; Transferring the deduction information in the fourth RocketMQ cluster to the third MySQL database; In response to the scheduled deduction statistics instruction, statistics are collected on the deduction information in the third MySQL database to obtain deduction statistics information.
9. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 8.
10. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 8.
