CN108650642B - Short message high-efficiency sending method and cross-province short message high-efficiency sending method - Google Patents
Short message high-efficiency sending method and cross-province short message high-efficiency sending method Download PDFInfo
- Publication number
- CN108650642B CN108650642B CN201810437894.9A CN201810437894A CN108650642B CN 108650642 B CN108650642 B CN 108650642B CN 201810437894 A CN201810437894 A CN 201810437894A CN 108650642 B CN108650642 B CN 108650642B
- Authority
- CN
- China
- Prior art keywords
- data
- short message
- tasks
- reading
- sending
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
Abstract
The invention relates to the technical field of information, and discloses a short message high-efficiency sending method and a cross-province short message high-efficiency sending method.A flow optimization design is adopted, classification processing is carried out by adopting an independent tabulation or common tabulation mode according to the size of a short message sending task, and short messages subjected to classification processing can be reasonably distributed according to the utilization degree of a server; through the reasonably designed sending method, the method can be popularized to the rapid sending of the trans-provincial short messages, the directional sending of the short messages can be rapidly carried out by reading the marking result of the short message task, and the trans-provincial short message sending efficiency is improved.
Description
Technical Field
The invention relates to the technical field of information, in particular to a short message high-efficiency sending method and a cross-province short message high-efficiency sending method.
Background
In the big data era, data storage is larger and larger, and online shopping users are more and more. In order to give timely care to the customer, the merchant sends the preferential activity information to the customer through short messages. The expansion of the base number of the customers enables the short message outlet speed to become a bottleneck once. The delay in the text message represents the perception that some customers may miss the event or even lack the attention. In order to solve the problem, the system short message sending technology is greatly improved and optimized, distributed cache is added, and technologies of multi-server load balancing, multi-level data disassembly and the like are utilized. Only when the speed of the short message outlet is increased, the subsequent channel congestion can be effectively avoided and the short message can be quickly sent.
Disclosure of Invention
The invention aims to provide a short message high-efficiency sending method and a cross-provincial short message high-efficiency sending method so as to solve the problems.
In order to achieve the technical purpose and achieve the technical effect, the invention discloses a short message high-efficiency sending method, which comprises the following steps:
data allocation: simply accounting and counting according to the data quantity of the sent short messages, and distributing the data to each short message sending server in a balanced manner;
data reading: performing single-thread reading and recording on less than 1 ten thousand short message data, and performing multi-thread batch reading and recording on more than or equal to 1 ten thousand short message data;
data splitting: classifying the size of the tasks according to the number of the sending people, directly entering a data using step for small tasks, and preferentially splitting a table structure for large tasks and then entering the data using step;
data usage: and for the small tasks, a common table structure is adopted for reading the tasks, for the large tasks, the tasks are read according to the split independent table structure, wherein the large tasks read data from the independent table structure to the memory for reading and operating the list, and after the tasks are completed, the tasks are removed from the list and the memory is released.
The simple accounting statistics of the data quantity of the short messages in the data distribution comprises the following steps:
step 1: grouping according to the ip of the server, and counting the number of unfinished tasks in each group;
step 2: adding newly generated tasks to the ip group with the least unfinished tasks;
and 3, step 3: and submitting the newly added tasks to different servers according to the ip group.
In the data splitting step, the tasks with the number of sent people less than 1 ten thousand are regarded as small tasks, and the tasks with the number of sent people more than 1 ten thousand are regarded as large tasks.
Preferably, the method further comprises data integration, wherein the data integration is performed after the data use is completed, and the specific steps are as follows:
error data screening: judging the validity of the mobile phone number of the data, and repeatedly sending the data, screening blacklists and unsubscribing factors in the system;
marking by an operator: marking the screened data by three operators according to the number segments of the operators;
saving and marking: and (4) performing provincial marking on the data marked by the operator according to the provincial number segment.
The invention also discloses a high-efficiency trans-provincial short message sending method, which comprises the sending method and also comprises the following steps:
step S1: opening a provincial short message channel and a common short message channel, and acquiring short message data of corresponding types;
step S2: reading the operator marking result of the short message data, and classifying the provincial short messages and the common short messages according to different operators;
and step S3: and reading the classification result in the step S2, further reading the province marking result in the short message data, and sending the province marking short messages and the common short messages of each operator in sequence, wherein each operator adopts an independent thread to send the province marking short messages and the common short messages in parallel.
The invention has the following beneficial effects:
1. according to the invention, through flow optimization design, classification processing is carried out by adopting an independent tabulation or common tabulation mode according to the size of the short message sending task, and the classified short messages can be reasonably distributed according to the utilization degree of the server.
2. The method can be popularized to the rapid sending of the trans-provincial short message information through the reasonably designed sending method, the directional sending of the short message can be rapidly carried out through reading the marking result of the short message task, and the trans-provincial short message sending efficiency is improved.
Drawings
Fig. 1 is a schematic diagram of efficient transmission according to the present invention.
FIG. 2 is a diagram of efficient trans-provincial delivery of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments.
Example 1
As shown in fig. 1, the invention discloses a method for efficiently sending a short message, which comprises the following steps:
data allocation: simply accounting and counting according to the data quantity of the sent short messages, and distributing the data quantity to each short message sending server in a balanced manner;
data reading: performing single-thread reading and recording on less than 1 ten thousand short message data, and performing multi-thread batch reading and recording on more than or equal to 1 ten thousand short message data;
data splitting: classifying the size of the tasks according to the number of the sending people, directly entering a data using step for small tasks, and preferentially splitting a table structure for large tasks and then entering the data using step;
data usage: and for the small tasks, a common table structure is adopted for reading the tasks, for the large tasks, the tasks are read according to the split independent table structure, wherein the large tasks read data from the independent table structure to the memory for reading and operating the list, and after the tasks are completed, the tasks are removed from the list and the memory is released.
Data integration:
error data screening: judging the validity of the mobile phone number of the data, and repeatedly sending, screening blacklists and unsubscribing factors in the system;
marking by an operator: marking the screened data by three operators according to the number segments of the operators;
saving and marking: and (4) performing provincial marking on the data marked by the operator according to the provincial number segment.
The simple accounting statistics of the data quantity of the short messages in the data distribution comprises the following steps:
step 1: grouping according to the ip of the server, and counting the number of unfinished tasks in each group;
step 2: adding the newly generated task to the ip group of the least uncompleted tasks;
and step 3: and submitting the newly added tasks to different servers according to the ip group.
In the data splitting step, the tasks with the number of sent people less than 1 ten thousand are regarded as small tasks, and the tasks with the number of sent people more than 1 ten thousand are regarded as large tasks.
Example 2
As shown in fig. 2, the present invention also discloses a high-efficiency trans-provincial short message sending method, which comprises the sending method, and further comprises the following steps:
step S1: opening a provincial division short message channel and a common short message channel, and acquiring short message data of corresponding types;
step S2: reading the operator marking result of the short message data, and classifying the provincial short messages and the common short messages according to different operators;
and step S3: and reading the classification result of the step S2, further reading the province marking result in the short message data, and sequentially sending the province short message and the common short message of each operator, wherein each operator adopts an independent thread to send the short messages simultaneously.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention.
Claims (1)
1. A short message high-efficiency sending method is characterized by comprising the following steps: data allocation: simply accounting and counting according to the data quantity of the sent short messages, and distributing the data quantity to each short message sending server in a balanced manner;
the simple accounting statistics of the data quantity of the short messages in the data distribution comprises the following steps:
step 1: grouping according to the ip of the server, and counting the number of unfinished tasks in each group; step 2: adding the newly generated task to the ip group of the least uncompleted tasks; and step 3: submitting the newly added tasks in the ip group to different servers; data reading: performing single-thread reading and entry on the short message data of less than 1 ten thousand, and performing multi-thread batch reading and entry on the short message data of more than or equal to 1 ten thousand; data splitting: classifying the size of the tasks according to the number of the sending people, directly entering a data using step for small tasks, and preferentially splitting a table structure for large tasks and then entering the data using step; data usage: the method comprises the following steps that a common table structure is adopted for small tasks to carry out task reading, and for large tasks, task reading is carried out according to a split independent table structure, wherein the large tasks read data from the independent table structure to a memory to carry out reading and operation of a list, and after the tasks are completed, the tasks are removed from the list, and the memory is released;
in the data splitting step, tasks with the number of sent people less than 1 ten thousand are regarded as small tasks, and tasks with the number of sent people more than 1 ten thousand are regarded as large tasks;
the method also comprises data integration, wherein the data integration is carried out after the data use is finished, and the specific steps are as follows: error data screening: judging the validity of the mobile phone number of the data, and repeatedly sending the data, screening blacklists and unsubscribing factors in the system;
marking by an operator: marking the screened data by three operators according to the number segments of the operators; saving and marking: marking the data marked by the operator according to the province number segment; further comprising the steps of: step S1: opening a provincial short message channel and a common short message channel, and acquiring short message data of corresponding types;
step S2: reading the operator marking result of the short message data, and classifying the province short messages and the common short messages according to different operators;
and step S3: and reading the classification result in the step S2, further reading the province marking result in the short message data, and sending the province marking short messages and the common short messages of each operator in sequence, wherein each operator adopts an independent thread to send the province marking short messages and the common short messages in parallel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810437894.9A CN108650642B (en) | 2018-05-09 | 2018-05-09 | Short message high-efficiency sending method and cross-province short message high-efficiency sending method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810437894.9A CN108650642B (en) | 2018-05-09 | 2018-05-09 | Short message high-efficiency sending method and cross-province short message high-efficiency sending method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108650642A CN108650642A (en) | 2018-10-12 |
CN108650642B true CN108650642B (en) | 2022-11-11 |
Family
ID=63754106
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810437894.9A Active CN108650642B (en) | 2018-05-09 | 2018-05-09 | Short message high-efficiency sending method and cross-province short message high-efficiency sending method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108650642B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431734B (en) * | 2008-11-07 | 2011-07-13 | 中兴通讯股份有限公司 | Method and system for group sending short messages |
CN103645942B (en) * | 2013-12-12 | 2017-02-01 | 北京奇安信科技有限公司 | Message queue based write and read method and system of shared memory |
CN106412861B (en) * | 2016-09-28 | 2017-11-28 | 海南港澳资讯产业股份有限公司 | A kind of short message distribution method and system |
CN107333248B (en) * | 2017-06-29 | 2018-05-29 | 北京鸿联九五信息产业有限公司 | A kind of real-time sending method of short message and system |
CN107566508A (en) * | 2017-09-19 | 2018-01-09 | 广东电网有限责任公司信息中心 | A kind of short message micro services system for automating O&M |
-
2018
- 2018-05-09 CN CN201810437894.9A patent/CN108650642B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108650642A (en) | 2018-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021190087A1 (en) | Task execution method, device and system, and server | |
CN107659547A (en) | A kind of flow path processing method and device and server based on event | |
CN104793938A (en) | Notification bar message display method and system | |
CN105955807B (en) | Task processing system and method | |
CN105915647A (en) | System and method for improving short message sending performance | |
CN102957712A (en) | Method and system for loading website resources | |
US20160089608A1 (en) | Computer-implemented method for determining game mechanics in business process gamification | |
CN102467411A (en) | Workflow processing and workflow agent method, device and system | |
CN103139100A (en) | Business handling method and business handling system | |
CN103353957A (en) | Realization method of human-centered cooperative workflow system and apparatus thereof | |
CN107729137A (en) | Server, the method and storage medium of the decryption of block chain sign test | |
CN102006174B (en) | Data processing method and device based on online behavior of mobile phone user | |
CN114820080A (en) | User grouping method, system, device and medium based on crowd circulation | |
WO2021056739A1 (en) | Performance analysis method, device, computer apparatus and storage medium | |
CN101751397A (en) | Method and device for importing files into database | |
CN102136096B (en) | Dynamic traffic control method and device for service and concurrency control system | |
WO2021190088A1 (en) | Task distribution method and apparatus, and task execution system and server | |
CN112506887B (en) | Vehicle terminal CAN bus data processing method and device | |
CN108650642B (en) | Short message high-efficiency sending method and cross-province short message high-efficiency sending method | |
CN104468710A (en) | Mixed big data processing system and method | |
CN102685162A (en) | Cloud computing acceleration method and system | |
CN111708970B (en) | Method for managing converged media account | |
CN110233892A (en) | CDN hot point resource processing method, system and global backing dispatch system | |
CN111797314A (en) | Data processing method, device, equipment and storage medium | |
CN106503958A (en) | A kind of smart office system and method based on Internet of Things |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information |
Address after: 361101 1-3F, Zone D, innovation building, software park, Xiamen Torch High tech Zone, Xiamen City, Fujian Province Applicant after: Xiamen Nanxun Co.,Ltd. Address before: 361008 Fujian province Xiamen software park two sunrise Road No. 22 unit 401 Applicant before: XIAMEN NASCENT SOFTWARE TECHNOLOGY CO.,LTD. |
|
CB02 | Change of applicant information | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |