TW201732729A - Service processing method and device - Google Patents

Service processing method and device Download PDF

Info

Publication number
TW201732729A
TW201732729A TW105142525A TW105142525A TW201732729A TW 201732729 A TW201732729 A TW 201732729A TW 105142525 A TW105142525 A TW 105142525A TW 105142525 A TW105142525 A TW 105142525A TW 201732729 A TW201732729 A TW 201732729A
Authority
TW
Taiwan
Prior art keywords
short message
sms
weight
service
sps
Prior art date
Application number
TW105142525A
Other languages
Chinese (zh)
Other versions
TWI656504B (en
Inventor
yun-rong Liao
Original Assignee
Alibaba Group Services Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Services Ltd filed Critical Alibaba Group Services Ltd
Publication of TW201732729A publication Critical patent/TW201732729A/en
Application granted granted Critical
Publication of TWI656504B publication Critical patent/TWI656504B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

This disclosure involves a service processing method and device. The method comprises: when receiving a short message sending request, respectively generating a weight interval corresponding to various short message SPs according to the weights of a plurality of short message SPs used for providing a short message sending service corresponding to the short message sending request, the ratios of the weights to a weight sum corresponding to the ratios of volumes of the short message sending service borne by the SPs; generating a random number in a union set of the weight intervals corresponding to the various SPs, and if the random number is in the weight interval of a short message SP, then determining the short message SP as a target SP; and allocating a short message sending service corresponding to the short message sending request to the target SP. This disclosure enables the change of short message SPs to be more flexible.

Description

業務處理方法和裝置 Business processing method and device

本發明涉及網路技術,尤其涉及一種業務處理方法和裝置。 The present invention relates to network technologies, and in particular, to a service processing method and apparatus.

簡訊服務提供者即簡訊SP(Service Provider)是在電信運營商的平臺下,通過提供短資訊手機增值服務盈利的機構,負責根據使用者的需求開發並提供適合使用者使用的簡訊服務。相關技術中,業務配置和簡訊SP是強關聯的,即某個業務的簡訊發送配置為固定由某個SP處理。這種方式的缺陷是,固定將業務分配在某個SP上,不利於簡訊SP的變更,異常恢復時也需要人工處理,業務分配不靈活。 The SMS Provider (Service Provider) is a provider of profitable short-term mobile phone value-added services under the platform of a telecom operator. It is responsible for developing and providing a short message service suitable for users according to the needs of users. In the related art, the service configuration and the SMS SP are strongly associated, that is, the SMS transmission of a certain service is configured to be fixedly processed by an SP. The drawback of this method is that the fixed allocation of services to an SP is not conducive to the change of the SMS SP, and the manual recovery is also required when the abnormal recovery is performed, and the service allocation is not flexible.

為克服相關技術中存在的問題,本發明提供一種業務處理方法和裝置,以實現簡訊SP的靈活變更。 To overcome the problems in the related art, the present invention provides a service processing method and apparatus for implementing flexible changes of the SMS SP.

根據本發明實施例的第一態樣,提供一種業務處理方法,包括: 在接收到簡訊發送請求時,根據用於提供所述簡訊發送請求對應的簡訊發送業務的多個簡訊SP的權重,分別產生各個簡訊SP對應的權重區間,所述權重占總權重和的比例對應所述SP承擔的簡訊發送業務的業務量比例;在所述各個簡訊SP對應的權重區間的聯集範圍內,產生一個亂數,若所述亂數位於一個簡訊SP的權重區間,則確定所述簡訊SP為目標SP;將所述簡訊發送請求對應的簡訊發送業務,分配至所述目標SP。 According to a first aspect of the embodiments of the present invention, a service processing method is provided, including: When receiving the short message sending request, the weight interval corresponding to each short message SP is generated according to the weights of the plurality of short message SPs for providing the short message sending service corresponding to the short message sending request, and the weights correspond to the proportion of the total weight sum a traffic ratio of the SMS transmission service that the SP bears; in the association range of the weight interval corresponding to each SMS SP, a random number is generated, and if the random number is located in the weight interval of a SMS SP, The short message SP is the target SP; the short message sending service corresponding to the short message sending request is allocated to the target SP.

根據本發明實施例的第二態樣,提供一種業務處理裝置,包括:區間產生模組,用於在接收到簡訊發送請求時,根據用於提供所述簡訊發送請求對應的簡訊發送業務的多個簡訊SP的權重,分別產生各個簡訊SP對應的權重區間,所述權重占總權重和的比例對應所述SP承擔的簡訊發送業務的業務量比例;隨機確定模組,用於在所述各個簡訊SP對應的權重區間的聯集範圍內,產生一個亂數,若所述亂數位於一個簡訊SP的權重區間,則確定所述簡訊SP為目標SP;業務分配模組,用於將所述簡訊發送請求對應的簡訊發送業務,分配至所述目標SP。 According to a second aspect of the present invention, a service processing apparatus is provided, including: an interval generation module, configured to: when receiving a short message sending request, send a service according to a short message sent to provide the short message sending request The weights of the SMS SPs respectively generate the weight intervals corresponding to the respective SMS SPs, the ratio of the weights to the sum of the total weights corresponds to the proportion of the traffic volume of the SMS transmission service undertaken by the SP; and the random determination module is used for each of the foregoing a random number is generated in the association range of the weight interval corresponding to the SMS SP. If the random number is located in the weight interval of a SMS SP, the SMS SP is determined to be the target SP; the service allocation module is configured to The short message sends a service corresponding to the short message sending request, and is allocated to the target SP.

本發明的實施例提供的技術方案可以包括以下有益效果:通過設置SP的權重,並根據該權重向各個SP分配業務,使得可以通過權重的變更實現各個SP之間業務分配 的變更,從而使得簡訊SP的變更更加靈活。 The technical solution provided by the embodiment of the present invention may include the following beneficial effects: by setting the weight of the SP, and assigning a service to each SP according to the weight, so that the service allocation between the SPs can be realized through the change of the weight. The changes made the SMS SP changes more flexible.

應當理解的是,以上的一般描述和後文的細節描述僅是示例性和解釋性的,並不能限制本發明。 The above general description and the following detailed description are intended to be illustrative and not restrictive.

11‧‧‧伺服器 11‧‧‧Server

12‧‧‧簡訊SP集群 12‧‧‧SMS SP cluster

13‧‧‧簡訊SP 13‧‧‧SMS SP

14‧‧‧簡訊SP 14‧‧‧SMS SP

15‧‧‧簡訊SP 15‧‧‧SMS SP

16‧‧‧後臺系統 16‧‧‧Backstage system

201-302‧‧‧步驟 201-302‧‧‧Steps

41‧‧‧區間產生模組 41‧‧‧Interval generation module

42‧‧‧隨機確定模組 42‧‧‧ Random Determination Module

43‧‧‧業務分配模組 43‧‧‧Business Distribution Module

44‧‧‧監控接收模組 44‧‧‧Monitoring Receiver Module

45‧‧‧資料剔除模組 45‧‧‧ data rejection module

46‧‧‧狀態接收模組 46‧‧‧Status Receiver Module

47‧‧‧資料處理模組 47‧‧‧ Data Processing Module

48‧‧‧資料儲存模組 48‧‧‧Data storage module

此處的圖式被併入說明書中並構成本說明書的一部分,示出了符合本發明的實施例,並與說明書一起用於解釋本發明的原理。 The drawings, which are incorporated in and constitute a part

圖1是根據一示例性實施例示出的一種業務處理的應用系統;圖2是根據一示例性實施例示出的一種業務處理方法的流程圖;圖3是根據一示例性實施例示出的另一種業務處理方法的流程圖;圖4是根據一示例性實施例示出的一種業務處理裝置的結構圖;圖5是根據一示例性實施例示出的另一種業務處理裝置的結構圖;圖6是根據一示例性實施例示出的又一種業務處理裝置的結構圖。 FIG. 1 is a flowchart of a service processing method according to an exemplary embodiment; FIG. 2 is a flowchart of a service processing method according to an exemplary embodiment; FIG. 3 is another flowchart according to an exemplary embodiment. FIG. 4 is a structural diagram of a service processing apparatus according to an exemplary embodiment; FIG. 5 is a structural diagram of another service processing apparatus according to an exemplary embodiment; FIG. A block diagram of still another business processing apparatus shown in an exemplary embodiment.

這裡將詳細地對示例性實施例進行說明,其示例表示在圖式中。下面的描述涉及圖式時,除非另有表示,不同 圖式中的相同數字表示相同或相似的要素。以下示例性實施例中所描述的實施方式並不代表與本發明相一致的所有實施方式。相反,它們僅是與如所附申請專利範圍中所詳述的、本發明的一些態樣相一致的裝置和方法的例子。 Exemplary embodiments will be described in detail herein, examples of which are illustrated in the drawings. The following description refers to the schema, unless otherwise indicated, different The same numbers in the drawings indicate the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.

圖1示例了本申請的業務處理方法的應用系統,如圖1所示,伺服器11可以接收簡訊發送請求,例如,某個業務機構需要進行群發簡訊,向一組特定的人群發送該業務機構設定的簡訊資訊。伺服器11可以根據該簡訊發送請求,指示簡訊SP集群12中的任一簡訊SP處理該業務,例如,可以將上述簡訊發送請求對應的簡訊發送業務分配至簡訊SP13,由簡訊SP13將業務機構設定的簡訊資訊發送至特定的人群。 FIG. 1 illustrates an application system of the service processing method of the present application. As shown in FIG. 1, the server 11 can receive a short message sending request. For example, a certain business organization needs to perform a group sending short message to send the business organization to a specific group of people. Set the newsletter information. The server 11 may instruct the SMS SP 12 to process the service according to the SMS sending request. For example, the SMS sending service corresponding to the SMS sending request may be allocated to the SMS SP13, and the SMS SP13 sets the service organization. Newsletter information is sent to specific people.

本例子中,如果伺服器11接收到大量的簡訊發送請求,可以將這些請求對應的業務分配至簡訊SP集群12中的各個SP,由這些多個SP共同承擔簡訊發送業務。例如,假設伺服器11接收到100份簡訊發送業務需要處理,那麼可以將其中的20份分配給簡訊SP13處理,將其中的10份分配給簡訊SP14處理,其餘的業務分配給簡訊SP15進行處理。即,伺服器11相當於一個分流的設備,可以將簡訊發送的請求業務流分配至多個簡訊SP。 In this example, if the server 11 receives a large number of SMS transmission requests, the services corresponding to the requests may be allocated to the SPs in the SMS SP cluster 12, and the multiple SPs jointly bear the SMS transmission service. For example, suppose the server 11 receives 100 copies of the short message transmission service, and then 20 of them can be assigned to the short message SP13 for processing, 10 of which are assigned to the short message SP14 for processing, and the remaining services are allocated to the short message SP15 for processing. That is, the server 11 is equivalent to a shunt device, and can distribute the request service flow sent by the short message to a plurality of short message SPs.

在一個例子中,伺服器11可以根據在後臺系統16上配置的策略來執行簡訊發送業務的分流,該策略可以是簡訊SP集群12中的各個SP的權重,該權重占總權重和的比例對應SP承擔的簡訊發送業務的業務量比例。例如, 假設簡訊SP集群12中共有四台簡訊SP設備,可以通過後臺系統16配置這四台設備的權重分別為[SP15:SP13:SP14:SP17]=[10:20:10:30],通過該權重比例可以得知,伺服器11在分配簡訊發送業務時,其中的1/7的業務量分配給SP15,2/7的業務量分配給SP13,1/7的業務量分配給SP14,且3/7的業務量分配給SP17,即通過權重配比限定了各個簡訊SP之間的業務比例。此外,配置的SP權重可以是正整數。 In an example, the server 11 may perform the offloading of the SMS sending service according to the policy configured on the background system 16, which may be the weight of each SP in the SMS SP cluster 12, the weight corresponding to the total weight sum. SP is responsible for the proportion of traffic sent by the newsletter. E.g, Assuming that there are four SMS SP devices in the SMS SP cluster 12, the weights of the four devices can be configured by the background system 16 as [SP15: SP13: SP14: SP17] = [10:20:10:30], and the weight is passed. According to the ratio, when the server 11 allocates the short message transmission service, 1/7 of the traffic is allocated to the SP15, 2/7 of the traffic is allocated to the SP13, and the 1/7 traffic is allocated to the SP14, and 3/ The traffic of 7 is allocated to SP17, that is, the proportion of services between the individual SMS SPs is limited by the weight ratio. In addition, the configured SP weight can be a positive integer.

而對於其中一個簡訊發送業務,伺服器11可以根據圖2所示的業務處理方法的流程,將該簡訊發送業務發送至某個簡訊SP。如圖2所示:在步驟201中,在接收到簡訊發送請求時,根據用於提供簡訊發送請求對應的簡訊發送業務的多個簡訊SP的權重,分別產生各個簡訊SP對應的權重區間。 For one of the short message sending services, the server 11 can send the short message sending service to a certain short message SP according to the flow of the business processing method shown in FIG. 2. As shown in FIG. 2, in step 201, when receiving the short message sending request, the weight interval corresponding to each short message SP is generated according to the weights of the plurality of short message SPs for providing the short message sending service corresponding to the short message sending request.

例如,伺服器11在接收到簡訊發送請求時,可以根據各個簡訊SP的權重,分別產生各個簡訊SP對應的權重區間。在產生權重區間時,最小值是1,最大值可以設定為各個權重的總和(即總權重和)加1,而各個區間的範圍為[上一個區間的最大值,上一個區間的最大值+當前權重值)。 For example, when receiving the short message sending request, the server 11 may generate a weight interval corresponding to each short message SP according to the weight of each short message SP. When the weight interval is generated, the minimum value is 1, and the maximum value can be set to the sum of the individual weights (ie, the total weight sum) plus one, and the range of each interval is [the maximum value of the previous interval, the maximum value of the previous interval + Current weight value).

仍以上述的權重配置[SP15:SP13:SP14:SP17]=[10:20:10:30]為例,可以產生如下權重區間:SP15對應的權重區間:[1,11);SP13對應的權重區間:[11,31); SP14對應的權重區間:[31,41);SP17對應的權重區間:[41,71);在另一個例子中,也可以將各個簡訊SP的權重進行排序,如,[SP15:SP14:SP13:SP17]=[10:10:20:30],然後再按照上述的方法產生各自對應的權重區間,包括:SP15對應的權重區間:[1,11);SP14對應的權重區間:[11,21);SP13對應的權重區間:[21,41);SP17對應的權重區間:[41,71);在步驟202中,在各個簡訊SP對應的權重區間的聯集範圍內,產生一個亂數,若該亂數位於一個簡訊SP的權重區間,則確定該簡訊SP為目標SP。 Still taking the above weight configuration [SP15: SP13: SP14: SP17] = [10: 20: 10: 30] as an example, the following weight interval can be generated: the weight interval corresponding to SP15: [1, 11); the weight corresponding to SP13 Interval: [11, 31); SP14 corresponds to the weight interval: [31, 41); SP17 corresponds to the weight interval: [41, 71); in another example, the weight of each SMS SP can also be sorted, for example, [SP15: SP14: SP13: SP17]=[10:10:20:30], and then generate corresponding weight intervals according to the above method, including: SP15 corresponding weight interval: [1, 11); SP14 corresponding weight interval: [11, 21 ); the weight interval corresponding to SP13: [21, 41); the weight interval corresponding to SP17: [41, 71); in step 202, a random number is generated within the union range of the weight interval corresponding to each SMS SP, If the random number is in the weight interval of a short message SP, it is determined that the short message SP is the target SP.

例如,各個簡訊SP對應的權重區間的聯集範圍內,即[1,71),在該範圍內產生一個亂數,並且將該亂數分別與各個權重區間進行比較,判斷亂數位于哪個權重區間。比如,假設產生了一個亂數52,可以得到該52位於SP17對應的權重區間[41,71)。 For example, within the joint range of the weight interval corresponding to each SMS SP, that is, [1, 71), a random number is generated in the range, and the random number is compared with each weight interval to determine which weight the random number is located. Interval. For example, suppose a random number 52 is generated, and the weight interval [41, 71] corresponding to the 52 is obtained.

本例子中,如果亂數落入了某個權重區間,就可以表示該權重區間對應的簡訊SP被選中,該SP可以稱為目標SP。此外,亂數落入某個權重區間的概率,與該權重區間在權重區間聯集[1,71)中的所占比例也是基本一致的,比如,SP17對應的權重區間[41,71)最長,那麼亂數落入該區間的概率也相對較大,因此,這種通過配置權重、以及隨機匹配的方式,可以使得伺服器在分流時按照配置 的權重比例分配業務量。 In this example, if the random number falls within a certain weight interval, it can be indicated that the SMS SP corresponding to the weight interval is selected, and the SP can be referred to as the target SP. In addition, the probability that the random number falls within a certain weight interval is basically the same as the proportion of the weight interval in the weight interval combination [1, 71). For example, the weight interval [41, 71) corresponding to SP17 is the longest. Then, the probability that the random number falls into the interval is relatively large. Therefore, by configuring the weight and the random matching, the server can be configured according to the splitting. The weight ratio is assigned to the business volume.

在步驟203中,將簡訊發送請求對應的簡訊發送業務,分配至目標SP。 In step 203, the short message transmission service corresponding to the short message transmission request is allocated to the target SP.

例如,目標SP可以根據簡訊發送請求的要求,發送對應的簡訊發送業務,比如,可以向特定人群發送業務機構設定的簡訊內容。 For example, the target SP may send a corresponding short message sending service according to the request of the short message sending request, for example, the short message content set by the business organization may be sent to a specific group.

在本例子的業務處理方法中,後臺系統16在配置各個SP的權重後,可以將SP對應的權重儲存在資料庫中,並且,可以將各SP的權重發送到伺服器11,由伺服器11快取在本地,這樣伺服器11可以在接收到簡訊發送請求時,儘快的查詢權重產生權重區間,並使用隨機匹配方式選擇目標SP。此外,如果各個SP的權重沒有變化,伺服器11也可以在首次產生權重區間後進行儲存,下一次再接收到簡訊發送請求時就可以直接根據該權重區間選擇目標SP,進一步提高了目標SP的確定速度。 In the service processing method of the example, after the background system 16 configures the weights of the SPs, the weights corresponding to the SPs may be stored in the database, and the weights of the SPs may be sent to the server 11, by the server 11. The cache is local, so that the server 11 can generate a weighting interval as soon as possible after receiving the short message sending request, and select the target SP by using a random matching method. In addition, if the weight of each SP does not change, the server 11 may also store the weight after the first generation of the weight interval, and then select the target SP according to the weight interval next time after receiving the short message transmission request, further improving the target SP. Determine the speed.

通過為多個簡訊SP配置權重,可以靈活的變更某個SP的業務,比如,如果想要降低向某個SP分配的業務量,降低其權重即可,或者,如果要停止向某個SP分配簡訊發送業務,則將其權重設置為零即可。只要根據實際業務需求或者SP的服務能力設置好用於承擔簡訊發送業務的各SP的權重,伺服器就可以根據該權重實現簡訊發送業務的自動分流。後臺系統還可以更新各個SP的權重,更新後的SP權重可以稱為新配置資料,該新配置資料可以由後臺系統發送至伺服器,由伺服器將新配置資料 快取在本地。 By configuring weights for multiple SMS SPs, you can flexibly change the service of an SP. For example, if you want to reduce the amount of traffic allocated to an SP, reduce its weight, or if you want to stop assigning to an SP. If the SMS sends the service, set its weight to zero. As long as the weights of the SPs for carrying the SMS transmission service are set according to the actual service requirements or the service capabilities of the SP, the server can implement automatic traffic distribution of the SMS transmission service according to the weight. The background system can also update the weight of each SP. The updated SP weight can be called new configuration data, and the new configuration data can be sent to the server by the background system, and the new configuration data is sent by the server. The cache is local.

應用本例子的業務處理方法,還可以在簡訊SP發生異常時,快速剔除故障的SP,例如,如果不再與某個簡訊SP合作開展簡訊發送業務,或者某個簡訊SP的簡訊發送成功率比較低,都可以通過本例子的業務處理方法剔除對應的SP。圖3示例了該業務處理方法的流程圖,可以包括:在步驟301中,獲取監控清除命令,該命令攜帶待剔除的SP標識。 Applying the service processing method of this example, you can quickly remove the faulty SP when the SMS SP is abnormal. For example, if you do not cooperate with a SMS SP to send SMS messages, or a SMS SP's SMS delivery success rate comparison Low, you can use the business processing method of this example to eliminate the corresponding SP. FIG. 3 illustrates a flowchart of the service processing method, which may include: in step 301, acquiring a monitoring clear command, where the command carries the SP identifier to be culled.

例如,伺服器可以獲取到監控清除命令,該命令主要是用於通知哪些簡訊SP將剔除,不再接收簡訊發送業務。例如,該監控清除命令可以是監控平臺通過監控各個簡訊SP的發送成功率和持續時間確定,示例性的,監控平臺可以設定一個SP的剔除條件包括:發送成功率低於預設的成功率閾值85%,且持續時間大於或等於時間閾值3分鐘(成功率閾值和時間閾值的數值可以調整)。如果監控平臺監控到某個SP發送簡訊時滿足了上述剔除條件,則確定可以剔除該SP,產生監控清除命令發送至伺服器,並可以在命令中攜帶待剔除的簡訊SP的SP標識。該監控平臺可以是伺服器之外設置的一個監控平臺,或者也可以是設置在伺服器上的監控平臺。 For example, the server can obtain a monitoring clear command, which is mainly used to notify which SMS SPs will be rejected, and no longer receive the SMS sending service. For example, the monitoring clear command may be determined by the monitoring platform by monitoring the sending success rate and duration of each short message SP. For example, the monitoring platform may set an RP culling condition including: the sending success rate is lower than a preset success rate threshold. 85%, and the duration is greater than or equal to the time threshold of 3 minutes (the value of the success rate threshold and the time threshold can be adjusted). If the monitoring platform monitors that the SP does not meet the foregoing culling condition, it is determined that the SP can be culled, the monitoring clear command is sent to the server, and the SP identifier of the SMS SP to be culled can be carried in the command. The monitoring platform may be a monitoring platform set outside the server, or may be a monitoring platform set on the server.

在步驟302中,根據所述監控清除命令,剔除所述SP標識對應的簡訊SP的權重,並修改後臺系統中所述簡訊SP的配置資料狀態為不可用,以使得所述簡訊SP不再 承擔簡訊發送業務。 In step 302, according to the monitoring and clearing command, the weight of the SMS SP corresponding to the SP identifier is removed, and the configuration data status of the SMS SP in the background system is modified to be unavailable, so that the SMS SP is no longer Bear the newsletter sending business.

例如,伺服器在獲取到監控清除命令後,可以剔除伺服器本地快取的SP配置資訊,包括該SP標識對應的簡訊SP的權重,並且,也將更改後臺系統中該SP的配置資料狀態為不可用。這樣,後續當伺服器再接收到簡訊發送請求,計算待分配的目標SP時,已經剔除權重的SP,將不會再有對應的權重區間,也不會再被分配簡訊發送業務。 For example, after obtaining the monitoring and clearing command, the server may remove the SP configuration information of the local cache of the server, including the weight of the SMS SP corresponding to the SP identifier, and also change the configuration data status of the SP in the background system to unavailable. In this way, when the server receives the short message transmission request and calculates the target SP to be allocated, the SP that has already removed the weight will not have the corresponding weight interval, and will not be assigned the short message to send the service.

此外,伺服器獲取監控清除命令之外,監控平臺還可以根據該命令通知該被剔除的簡訊SP的負責人,以使得負責人知曉其SP已經被剔除,不再處理簡訊發送業務。 In addition, the server obtains the monitoring and clearing command, and the monitoring platform can also notify the person in charge of the rejected SMS SP according to the command, so that the person in charge knows that the SP has been culled and no longer processes the short message sending service.

本例子的業務處理方法,可以通過監控SP的簡訊發送日誌,在簡訊SP的簡訊發送成功率較低時自動通知伺服器,並由伺服器剔除對應SP的權重,實現了快速剔除掉異常SP,減少業務風險。 The service processing method of the example can send a log by monitoring the SP newsletter, and automatically notify the server when the short message sending success rate of the SMS SP is low, and the server removes the weight of the corresponding SP, thereby realizing the quick rejection of the abnormal SP. Reduce business risk.

在另一個例子中,還可以由管理人員在後臺系統更改SP的配置資料狀態。比如,如果當前階段某個簡訊SP出現故障,不適宜處理簡訊發送業務,可以將後臺系統的資料庫中該SP的配置資料狀態設置為不可用;或者,當不再與某個簡訊SP合作時,還可以將後臺系統中剔除掉該SP的配置資料。後臺系統在SP的配置資料狀態變更後,可以向伺服器發送資料狀態通知,例如,可以通知伺服器配置資料狀態為不可用的簡訊SP。伺服器將根據資料狀態通知,如果某個SP的狀態為不可用,則可以剔除本機伺服器快取的該SP的配置資料,包括該SP對應的權重, 從而該簡訊SP將不再承擔簡訊發送業務。 In another example, the configuration data status of the SP can also be changed by the administrator in the background system. For example, if a newsletter SP in the current stage fails and is not suitable for processing the short message sending service, the status of the configuration data of the SP in the database of the background system may be set to be unavailable; or, when no longer cooperate with a newsletter SP. It is also possible to remove the configuration data of the SP from the background system. After the configuration status of the SP is changed, the background system can send a data status notification to the server. For example, the server can notify the server that the configuration data status is unavailable. The server will notify according to the data status. If the status of an SP is unavailable, the configuration data of the SP cached by the local server may be removed, including the weight corresponding to the SP. Therefore, the SMS SP will no longer bear the SMS sending service.

本申請還提供了一種業務處理裝置,該裝置可以執行上述的業務處理方法,如圖4所示,該裝置可以包括:區間產生模組41、隨機確定模組42和業務分配模組43。 The present application further provides a service processing apparatus, which can perform the above-described service processing method. As shown in FIG. 4, the apparatus may include an interval generation module 41, a random determination module 42, and a service distribution module 43.

區間產生模組41,用於在接收到簡訊發送請求時,根據用於提供所述簡訊發送請求對應的簡訊發送業務的多個簡訊SP的權重,分別產生各個簡訊SP對應的權重區間,所述權重占總權重和的比例對應所述SP承擔的簡訊發送業務的業務量比例;隨機確定模組42,用於在所述各個簡訊SP對應的權重區間的聯集範圍內,產生一個亂數,若所述亂數位於一個簡訊SP的權重區間,則確定所述簡訊SP為目標SP;業務分配模組43,用於將所述簡訊發送請求對應的簡訊發送業務,分配至所述目標SP。 The interval generation module 41 is configured to generate, according to the weights of the plurality of SMS SPs for providing the SMS transmission service corresponding to the SMS transmission request, the weight interval corresponding to each SMS SP, when the SMS transmission request is received, The ratio of the sum of the weights to the total weights corresponds to the proportion of the traffic volume of the SMS transmission service undertaken by the SP; the random determination module 42 is configured to generate a random number in the association range of the weight intervals corresponding to the respective SMS SPs. If the random number is located in the weight interval of the short message SP, the short message SP is determined to be the target SP, and the service distribution module 43 is configured to allocate the short message sending service corresponding to the short message sending request to the target SP.

參見圖5,該裝置還可以包括:監控接收模組44和資料剔除模組45。 Referring to FIG. 5, the apparatus may further include: a monitoring receiving module 44 and a data culling module 45.

監控接收模組44,用於獲取監控清除命令,所述監控清除命令攜帶待剔除的SP標識;資料剔除模組45,用於根據所述監控清除命令,剔除所述SP標識對應的簡訊SP的權重,並修改後臺系統中所述簡訊SP的配置資料狀態為不可用,以使得所述簡訊SP不再承擔簡訊發送業務。 The monitoring receiving module 44 is configured to obtain a monitoring and clearing command, where the monitoring and clearing command carries the SP identifier to be culled; the data culling module 45 is configured to: according to the monitoring and clearing command, cull the SMS corresponding to the SP identifier Weighting, and modifying the configuration data status of the SMS SP in the background system is unavailable, so that the SMS SP no longer bears the SMS sending service.

在一個例子中,監控接收模組44,用於:分別監控所述多個簡訊SP的發送成功率和持續時間;若一個簡訊 SP的發送成功率低於預設的成功率閾值,且持續時間達到時間閾值,則確定剔除所述簡訊SP。 In an example, the monitoring receiving module 44 is configured to separately monitor the sending success rate and duration of the plurality of short message SPs; If the transmission success rate of the SP is lower than the preset success rate threshold and the duration reaches the time threshold, it is determined that the SMS SP is rejected.

在一個例子中,參見圖6,該裝置還可以包括:狀態接收模組46和資料處理模組47,其中,狀態接收模組46,用於接收後臺系統發送的資料狀態通知,所述資料狀態通知用於指示配置資料狀態為不可用的簡訊SP;資料處理模組47,用於根據所述資料狀態通知,將所述簡訊SP的權重剔除,以使得所述簡訊SP不再處理簡訊發送業務。 In an example, referring to FIG. 6, the device may further include: a status receiving module 46 and a data processing module 47, wherein the status receiving module 46 is configured to receive a data status notification sent by the background system, where the data status is The notification is used to indicate that the configuration data status is unavailable. The data processing module 47 is configured to: according to the data status notification, remove the weight of the short message SP, so that the short message SP does not process the short message sending service. .

在一個例子中,該裝置還可以包括:資料儲存模組48,用於接收後臺系統發送的新配置資料,所述新配置資料包括所述多個簡訊SP各自的權重;將所述新配置資料快取在本機伺服器。 In an example, the device may further include: a data storage module 48, configured to receive new configuration data sent by the background system, where the new configuration data includes respective weights of the plurality of short message SPs; and the new configuration data is Cache on the local server.

本例子的業務處理裝置,可以設置在伺服器,通過該裝置,伺服器可以將接收到的簡訊發送請求對應的簡訊發送業務分配至某個SP,並且可以通過改變SP的權重實現靈活的變更簡訊發送業務在各個SP之間的分流比例。 The service processing device of this example may be disposed in a server, and the server may allocate the short message sending service corresponding to the received short message sending request to an SP, and may implement flexible change of the short message by changing the weight of the SP. The split ratio of the sending service between the SPs.

本領域中具有通常知識者在考慮說明書及實踐這裡發明的發明後,將容易想到本發明的其它實施方案。本發明旨在涵蓋本發明的任何變型、用途或者適應性變化,這些變型、用途或者適應性變化遵循本發明的一般性原理並包括本發明未發明的本技術領域中的公知常識或慣用技術手段。說明書和實施例僅被視為示例性的,本發明的真正範 圍和精神由下面的申請專利範圍指出。 Other embodiments of the invention will be apparent to those skilled in the <RTIgt; The present invention is intended to cover any variations, uses, or adaptations of the present invention, which are in accordance with the general principles of the invention and include common general knowledge or conventional technical means in the art to which the invention is not invented. . The description and examples are to be considered as illustrative only, the true scope of the invention The scope and spirit are indicated by the scope of the patent application below.

應當理解的是,本發明並不局限於上面已經描述並在圖式中示出的精確結構,並且可以在不脫離其範圍進行各種修改和改變。本發明的範圍僅由所附的申請專利範圍來限制。 It is to be understood that the invention is not limited to the precise structures shown and described in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the invention is limited only by the scope of the appended claims.

Claims (10)

一種業務處理方法,其特徵在於,包括:在接收到簡訊發送請求時,根據用於提供該簡訊發送請求對應的簡訊發送業務的多個簡訊SP的權重,分別產生各個簡訊SP對應的權重區間,該權重占總權重和的比例對應該SP承擔的簡訊發送業務的業務量比例;在該各個簡訊SP對應的權重區間的聯集範圍內,產生一個亂數,若該亂數位於一個簡訊SP的權重區間,則確定該簡訊SP為目標SP;將該簡訊發送請求對應的簡訊發送業務,分配至該目標SP。 A service processing method, comprising: when receiving a short message sending request, generating a weight interval corresponding to each short message SP according to a weight of a plurality of short message SPs for providing a short message sending service corresponding to the short message sending request, The ratio of the weight to the sum of the total weights corresponds to the proportion of the traffic volume of the SMS sending service undertaken by the SP; in the joint range of the weight interval corresponding to each of the SMS SPs, a random number is generated, if the random number is located in a newsletter SP The weight interval determines that the short message SP is the target SP; the short message sending service corresponding to the short message sending request is allocated to the target SP. 根據請求項1所述的方法,其中,該方法還包括:獲取監控清除命令,該監控清除命令攜帶待剔除的SP標識;根據該監控清除命令,剔除該SP標識對應的簡訊SP的權重,並修改後臺系統中該簡訊SP的配置資料狀態為不可用,以使得該簡訊SP不再承擔簡訊發送業務。 The method of claim 1, wherein the method further comprises: acquiring a monitoring clear command, the monitoring clear command carrying the SP identifier to be culled; and removing the weight of the SMS SP corresponding to the SP identifier according to the monitoring clear command, and Modifying the configuration data status of the SMS SP in the background system is unavailable, so that the SMS SP no longer bears the SMS sending service. 根據請求項2所述的方法,其中,該獲取監控清除命令,包括:分別監控該多個簡訊SP的發送成功率和持續時間;若一個簡訊SP的發送成功率低於預設的成功率閾值,且持續時間達到時間閾值,則確定剔除該簡訊SP。 The method of claim 2, wherein the acquiring the monitoring clear command comprises: separately monitoring the sending success rate and duration of the plurality of short message SPs; if the sending success rate of a short message SP is lower than a preset success rate threshold And the duration reaches the time threshold, then it is determined that the SMS SP is rejected. 根據請求項1所述的方法,其中,該方法還包括:接收後臺系統發送的資料狀態通知,該資料狀態通知 用於指示配置資料狀態為不可用的簡訊SP;根據該資料狀態通知,將該簡訊SP的權重剔除,以使得該簡訊SP不再處理簡訊發送業務。 The method of claim 1, wherein the method further comprises: receiving a data status notification sent by the background system, the data status notification The short message SP is used to indicate that the configuration data status is unavailable; according to the data status notification, the weight of the short message SP is removed, so that the short message SP does not process the short message sending service. 根據請求項1所述的方法,其中,該方法還包括:接收後臺系統發送的新配置資料,該新配置資料包括該多個簡訊SP各自的權重;將該新配置資料快取在本機伺服器。 The method of claim 1, wherein the method further comprises: receiving new configuration data sent by the background system, where the new configuration data includes respective weights of the plurality of short message SPs; and the new configuration data is cached in the local servo. Device. 一種業務處理裝置,其特徵在於,包括:區間產生模組,用於在接收到簡訊發送請求時,根據用於提供該簡訊發送請求對應的簡訊發送業務的多個簡訊SP的權重,分別產生各個簡訊SP對應的權重區間,該權重占總權重和的比例對應該SP承擔的簡訊發送業務的業務量比例;隨機確定模組,用於在該各個簡訊SP對應的權重區間的聯集範圍內,產生一個亂數,若該亂數位於一個簡訊SP的權重區間,則確定該簡訊SP為目標SP;業務分配模組,用於將該簡訊發送請求對應的簡訊發送業務,分配至該目標SP。 A service processing device, comprising: a section generating module, configured to generate, according to a weight of a plurality of short message SPs for providing a short message sending service corresponding to the short message sending request, when receiving the short message sending request The weight interval corresponding to the SMS SP, the ratio of the weight to the sum of the total weights and the proportion of the traffic volume of the short message sending service that the SP bears; the random determining module is used in the joint range of the weight interval corresponding to each of the short message SPs, A random number is generated. If the random number is located in the weight interval of the short message SP, the short message SP is determined to be the target SP. The service distribution module is configured to allocate the short message sending service corresponding to the short message sending request to the target SP. 根據請求項6所述的裝置,其中,還包括:監控接收模組,用於獲取監控清除命令,該監控清除命令攜帶待剔除的SP標識;資料剔除模組,用於根據該監控清除命令,剔除該SP標識對應的簡訊SP的權重,並修改後臺系統中該簡訊SP的配置資料狀態為不可用,以使得該簡訊SP不再承擔 簡訊發送業務。 The device of claim 6, further comprising: a monitoring receiving module, configured to acquire a monitoring clear command, the monitoring clear command carrying an SP identifier to be culled; and a data culling module, configured to clear the command according to the monitoring The weight of the SMS SP corresponding to the SP identifier is removed, and the configuration data status of the SMS SP in the background system is modified to be unavailable, so that the SMS SP no longer bears The newsletter sends the business. 根據請求項7所述的裝置,其中,該監控接收模組,用於:分別監控該多個簡訊SP的發送成功率和持續時間;若一個簡訊SP的發送成功率低於預設的成功率閾值,且持續時間達到時間閾值,則確定剔除該簡訊SP。 The device of claim 7, wherein the monitoring receiving module is configured to separately monitor a sending success rate and a duration of the plurality of short message SPs; if a sending success rate of the short message SP is lower than a preset success rate The threshold is determined, and the duration reaches the time threshold, and it is determined that the SMS SP is rejected. 根據請求項6所述的裝置,其中,還包括:狀態接收模組,用於接收後臺系統發送的資料狀態通知,該資料狀態通知用於指示配置資料狀態為不可用的簡訊SP;資料處理模組,用於根據該資料狀態通知,將該簡訊SP的權重剔除,以使得該簡訊SP不再處理簡訊發送業務。 The device of claim 6, further comprising: a status receiving module, configured to receive a data status notification sent by the background system, the data status notification is used to indicate that the configuration data status is unavailable, and the data processing mode is The group is configured to remove the weight of the SMS SP according to the data status notification, so that the SMS SP does not process the SMS sending service. 根據請求項6所述的裝置,其中,還包括:資料儲存模組,用於接收後臺系統發送的新配置資料,該新配置資料包括該多個簡訊SP各自的權重;將該新配置資料快取在本機伺服器。 The device of claim 6, further comprising: a data storage module, configured to receive new configuration data sent by the background system, where the new configuration data includes respective weights of the plurality of short message SPs; Take the local server.
TW105142525A 2016-01-14 2016-12-21 Business processing method and device TWI656504B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
??201610024395.8 2016-01-14
CN201610024395.8A CN106973368A (en) 2016-01-14 2016-01-14 Method and device for business processing

Publications (2)

Publication Number Publication Date
TW201732729A true TW201732729A (en) 2017-09-16
TWI656504B TWI656504B (en) 2019-04-11

Family

ID=59310851

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105142525A TWI656504B (en) 2016-01-14 2016-12-21 Business processing method and device

Country Status (3)

Country Link
CN (1) CN106973368A (en)
TW (1) TWI656504B (en)
WO (1) WO2017121284A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108834087B (en) * 2018-07-03 2021-08-24 平安科技(深圳)有限公司 Short message sending method and device, computer equipment and storage medium
CN111432357B (en) * 2020-02-24 2022-07-08 车智互联(北京)科技有限公司 Information processing method and system and computing equipment
CN112235428B (en) * 2020-12-16 2021-03-30 太平金融科技服务(上海)有限公司 Call request processing method and device, computer equipment and storage medium
CN115103321B (en) * 2022-06-25 2023-05-16 平安银行股份有限公司 Short message sending method and device, computer equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8638679B2 (en) * 2009-05-28 2014-01-28 Qualcomm Incorporated Method and apparatus that facilitates automatic assistance for positioning of access point base stations
CN101917484A (en) * 2010-08-23 2010-12-15 中兴通讯股份有限公司 Load balancing system and method for service data request
CN102724105B (en) * 2011-03-30 2016-03-09 腾讯科技(深圳)有限公司 A kind of load-balancing method and device
JP2013090072A (en) * 2011-10-17 2013-05-13 Hitachi Ltd Service provision system
CN102394931B (en) * 2011-11-04 2013-12-18 北京邮电大学 Cloud-based user visit request scheduling method
US9179273B2 (en) * 2011-12-06 2015-11-03 Samsung Electronics Co., Ltd. Apparatus and method for delivering short message service efficiently in wireless communication system
US20130305378A1 (en) * 2012-05-09 2013-11-14 Visa Europe Limited Method and system for establishing trust between a service provider and a client of the service provider
TW201405328A (en) * 2012-07-31 2014-02-01 Ibm Method and system of selecting benchmark via social network service for activity coaching
TWI536303B (en) * 2014-01-10 2016-06-01 Chunghwa Telecom Co Ltd Find the contact method and system for the person you want to contact with

Also Published As

Publication number Publication date
WO2017121284A1 (en) 2017-07-20
CN106973368A (en) 2017-07-21
TWI656504B (en) 2019-04-11

Similar Documents

Publication Publication Date Title
TWI656504B (en) Business processing method and device
AU2017404110B2 (en) Agent allocation method and device, server, and storage medium
CN110769038B (en) Server scheduling method and device, storage medium and electronic equipment
WO2017161762A1 (en) Data transmission method, device and system
CN109167674B (en) Service node scoring method, Domain Name System (DNS) scheduling method and server
CN109768879B (en) Method and device for determining target service server and server
CN110225137B (en) Service request processing method, system, server and storage medium
US9729347B2 (en) System and method for selection of a conference bridge master server
US20210344971A1 (en) A method and system for downloading a data resource
US20240146691A1 (en) Data processing method, livestreaming method, authentication server, and live data server
CN109379445A (en) A kind of sending method and device of PUSH message
CN105763485A (en) Resource distribution method, device and server
CN111385357B (en) Network resource management method and device, computer equipment and storage medium
CN110855424B (en) Method and device for synthesizing asymmetric flow xDR in DPI field
CN106658348A (en) Method and device for managing monitoring resources and CSE
KR20120125184A (en) Network acceing method and apparatus thereof
CN112671813B (en) Server determination method, device, equipment and storage medium
CN113938814B (en) Service scheduling method, UPF, system and medium of content distribution network
CN102209084B (en) Processing method of Push message, apparatus thereof and communication system
CN107181777A (en) The sending method and device of control message
CN112752300B (en) Method and device for realizing local distribution
EP3002917A1 (en) Flow control method and device
CN105025449B (en) A kind of short message reception state remapping method, apparatus and system
CN111145420B (en) Remote number calling method and device, electronic equipment and storage medium
WO2015172274A1 (en) Load balancing processing method and system