TWI869770B - Device for adjusting sending order of messages when sending performance is too low and method thereof - Google Patents
Device for adjusting sending order of messages when sending performance is too low and method thereof Download PDFInfo
- Publication number
- TWI869770B TWI869770B TW112104409A TW112104409A TWI869770B TW I869770 B TWI869770 B TW I869770B TW 112104409 A TW112104409 A TW 112104409A TW 112104409 A TW112104409 A TW 112104409A TW I869770 B TWI869770 B TW I869770B
- Authority
- TW
- Taiwan
- Prior art keywords
- sending
- message
- performance
- notification
- notification message
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000012544 monitoring process Methods 0.000 claims abstract description 71
- 238000004891 communication Methods 0.000 claims description 49
- 230000005540 biological transmission Effects 0.000 claims description 21
- 230000000694 effects Effects 0.000 abstract description 4
- 238000012545 processing Methods 0.000 description 19
- 230000002093 peripheral effect Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Debugging And Monitoring (AREA)
- Hardware Redundancy (AREA)
Abstract
Description
一種訊息發送順序調整裝置及其方法,特別係指一種於發送效能過低時調整通知訊息發送順序之裝置及方法。A message sending sequence adjustment device and method thereof, in particular, a device and method for adjusting the sending sequence of notification messages when the sending performance is too low.
對於部分提供客戶服務的企業或組織,長期以來一直都存在將訊息提供給客戶的作業,例如,金融業通知客戶暫停服務的時間,或是各種服務業將行銷訊息提供給客戶。隨著科技的發展,通知客戶的方式逐漸由電話與紙本改變為電子郵件與簡訊等方式,而今,又逐漸改變為即時通訊與程式推播等方式。For some companies or organizations that provide customer services, there has long been a process of providing information to customers, such as the financial industry notifying customers of service suspension times, or various service industries providing marketing information to customers. With the development of technology, the way of notifying customers has gradually changed from telephone and paper to e-mail and text messages, and now, it has gradually changed to instant messaging and app push notifications.
隨著資訊化的過程,企業或組織也通常會架設訊息通知服務的伺服器,這樣的伺服器可能同時支援所有發送訊息的通道,也就是包含發送電子郵件、簡訊、即時訊息、推播等發送方式。伺服器在發送訊息的過程中,可能因為伺服器內部資源使用量較高或負載較大,或外部伺服器的負載過高或網路連線狀況不佳等內部或外部的問題,導致特定的一種或多種發送方式的發送效能降低。如此,當特定之發送方式的發送效能過低時,若伺服器持續使用相同的發送方式發送訊息,則可能容易發生訊息發送失敗的情況,導致伺服器需要再次發送,增加伺服器的負載。With the process of informatization, enterprises or organizations usually set up servers for message notification services. Such servers may support all channels for sending messages at the same time, including sending emails, text messages, instant messages, push messages, etc. In the process of sending messages, the server may have internal or external problems such as high resource usage or heavy load on the server, high load on the external server, or poor network connection, which may cause the performance of one or more specific sending methods to decrease. In this way, when the sending performance of a specific sending method is too low, if the server continues to use the same sending method to send messages, it may easily fail to send messages, causing the server to need to send again, increasing the server load.
綜上所述,可知先前技術中長期以來一直存在持續使用發送效能過低之發送方式發送訊息的問題,因此有必要提出改進的技術手段,來解決此一問題。In summary, it can be seen that the prior art has long had the problem of continuously using a sending method with too low sending performance to send messages, so it is necessary to propose an improved technical means to solve this problem.
有鑒於先前技術存在持續使用發送效能過低之發送方式發送訊息的問題,本發明遂揭露一種於發送效能過低時調整通知訊息發送順序之裝置及方法,其中:In view of the problem that the prior art continues to use a sending method with too low sending performance to send messages, the present invention discloses a device and method for adjusting the sending order of notification messages when the sending performance is too low, wherein:
本發明所揭露之於發送效能過低時調整通知訊息發送順序之裝置,至少包含:參數設定模組,用以設定效能監控參數;訊息接收模組,用以接收第一通知訊息及與第一通知訊息對應之第一發送參數,並將第一通知訊息加入發送等待序列中;訊息發送模組,用以由發送等待序列取出第一通知訊息,並取得與第一通知訊息對應之客戶通訊資料,及依據客戶通訊資料使用與發送通道訊息對應之發送通道發送第一通知訊息至客戶端;效能判斷模組,用以判斷發送第一通知訊息之發送效能是否低於效能監控參數;序列調整模組,用以於效能判斷模組判斷發送效能低於效能監控參數時,依據與在發送等待序列中之第二通知訊息對應之第二發送參數調整第二通知訊息於發送等待序列中之順序。The device disclosed in the present invention for adjusting the order of sending notification messages when the sending performance is too low comprises at least: a parameter setting module for setting the performance monitoring parameter; a message receiving module for receiving a first notification message and a first sending parameter corresponding to the first notification message, and adding the first notification message to a sending waiting sequence; a message sending module for taking out the first notification message from the sending waiting sequence, and obtaining the client communication data corresponding to the first notification message, and A first notification message is sent to a client using a sending channel corresponding to the sending channel message according to client communication data; a performance determination module is used to determine whether a sending performance of sending the first notification message is lower than a performance monitoring parameter; and a sequence adjustment module is used to adjust a sequence of the second notification message in the sending waiting sequence according to a second sending parameter corresponding to the second notification message in the sending waiting sequence when the performance determination module determines that the sending performance is lower than the performance monitoring parameter.
本發明所揭露之於發送效能過低時調整通知訊息發送順序之方法,其步驟至少包括:設定效能監控參數;接收第一通知訊息及與第一通知訊息對應之第一發送參數;將第一通知訊息加入發送等待序列中;由發送等待序列取出第一通知訊息;取得與第一通知訊息對應之客戶通訊資料;依據客戶通訊資料使用與發送通道訊息對應之發送通道發送第一通知訊息至客戶端;判斷發送第一通知訊息之發送效能低於效能監控參數時,依據與在發送等待序列中之第二通知訊息對應之第二發送參數調整第二通知訊息於發送等待序列中之順序。The method disclosed in the present invention is for adjusting the order of sending notification messages when the sending performance is too low, and its steps at least include: setting performance monitoring parameters; receiving a first notification message and a first sending parameter corresponding to the first notification message; adding the first notification message to a sending waiting sequence; taking out the first notification message from the sending waiting sequence; obtaining client communication data corresponding to the first notification message; sending the first notification message to the client end using a sending channel corresponding to the sending channel message according to the client communication data; when it is determined that the sending performance of sending the first notification message is lower than the performance monitoring parameter, adjusting the order of the second notification message in the sending waiting sequence according to a second sending parameter corresponding to the second notification message in the sending waiting sequence.
本發明所揭露之裝置及方法如上,與先前技術之間的差異在於本發明透過在設定效能監控參數後,判斷第一通知訊息的發送效能低於效能監控參數時,依據與第二通知訊息對應之第二發送參數調整第二通知訊息的發送順序,藉以解決先前技術所存在的問題,並可以達成降低通知訊息發送失敗之可能性的技術功效。The device and method disclosed in the present invention are as described above. The difference between the present invention and the prior art is that after setting the performance monitoring parameter, the present invention adjusts the sending order of the second notification message according to the second sending parameter corresponding to the second notification message when it is determined that the sending performance of the first notification message is lower than the performance monitoring parameter, thereby solving the problems existing in the prior art and achieving the technical effect of reducing the possibility of failure in sending the notification message.
以下將配合圖式及實施例來詳細說明本發明之特徵與實施方式,內容足以使任何熟習相關技藝者能夠輕易地充分理解本發明解決技術問題所應用的技術手段並據以實施,藉此實現本發明可達成的功效。The following will be used in conjunction with drawings and embodiments to explain in detail the features and implementation methods of the present invention. The content is sufficient to enable anyone familiar with the relevant technology to easily and fully understand the technical means used by the present invention to solve the technical problems and implement them accordingly, thereby achieving the effects that can be achieved by the present invention.
本發明可以偵測裝置發送通知訊息的發送效能,並可以在發送效能過低時調整其他通知訊息的發送順序,藉以讓所有通知訊息都能夠順利的被發送。其中,本發明所提之發送通知訊息的裝置可以是計算設備。The present invention can detect the sending performance of a device for sending notification messages, and can adjust the sending order of other notification messages when the sending performance is too low, so that all notification messages can be sent smoothly. Among them, the device for sending notification messages mentioned in the present invention can be a computing device.
本發明所提之計算設備包含但不限於一個或多個處理模組、一條或多條記憶體模組、以及連接不同硬體元件(包括記憶體模組和處理模組)的匯流排等硬體元件。透過所包含之多個硬體元件,計算設備可以載入並執行作業系統,使作業系統在計算設備上運行,也可以執行軟體或程式。另外,計算設備也包含一個外殼,上述之各個硬體元件設置於外殼內。The computing device mentioned in the present invention includes but is not limited to one or more processing modules, one or more memory modules, and hardware components such as a bus connecting different hardware components (including memory modules and processing modules). Through the multiple hardware components included, the computing device can load and execute an operating system so that the operating system runs on the computing device, and can also execute software or programs. In addition, the computing device also includes a housing, and the above-mentioned hardware components are arranged in the housing.
本發明所提之計算設備的匯流排可以包含一種或多個類型,例如包含資料匯流排(data bus)、位址匯流排(address bus)、控制匯流排(control bus)、擴充功能匯流排(expansion bus)、及/或局域匯流排(local bus)等類型的匯流排。計算設備的匯流排包括但不限於的工業標準架構(Industry Standard Architecture, ISA)匯流排、周邊元件互連(Peripheral Component Interconnect, PCI)匯流排、視頻電子標準協會(Video Electronics Standards Association, VESA)局域匯流排、以及串列的通用序列匯流排(Universal Serial Bus, USB)、快速周邊元件互連(PCI Express, PCI-E/PCIe)匯流排等。The bus of the computing device mentioned in the present invention may include one or more types, such as a data bus, an address bus, a control bus, an expansion bus, and/or a local bus. The buses of computing devices include but are not limited to the Industry Standard Architecture (ISA) bus, the Peripheral Component Interconnect (PCI) bus, the Video Electronics Standards Association (VESA) local bus, the Universal Serial Bus (USB) bus, the PCI Express (PCI-E/PCIe) bus, etc.
本發明所提之計算設備的處理模組與匯流排耦接。處理模組包含暫存器(Register)組或暫存器空間,暫存器組或暫存器空間可以完全的被設置在處理模組之處理晶片上,或全部或部分被設置在處理晶片外並經由專用電氣連接及/或經由匯流排耦接至處理晶片。處理模組可為中央處理器、微處理器或任何合適的處理元件。若計算設備為多處理器設備,也就是計算設備包含多個處理模組,則計算設備所包含的處理模組都相同或類似,且透過匯流排耦接與通訊。處理模組可以解釋一個計算機指令或一連串的多個計算機指令以進行特定的運算或操作,例如,數學運算、邏輯運算、資料比對、複製/移動資料等,藉以驅動計算設備中的其他硬體元件或運行作業系統或執行各種程式及/或模組。The processing module of the computing device of the present invention is coupled to a bus. The processing module includes a register group or a register space, which can be completely set on the processing chip of the processing module, or completely or partially set outside the processing chip and coupled to the processing chip via a dedicated electrical connection and/or via a bus. The processing module can be a central processing unit, a microprocessor, or any suitable processing element. If the computing device is a multi-processor device, that is, the computing device includes multiple processing modules, the processing modules included in the computing device are the same or similar, and are coupled and communicated through a bus. The processing module can interpret a computer instruction or a series of multiple computer instructions to perform specific calculations or operations, such as mathematical operations, logical operations, data comparison, copying/moving data, etc., to drive other hardware components in the computing device or run the operating system or execute various programs and/or modules.
計算設備中通常也包含一個或多個晶片組(Chipset)。計算設備的處理模組可以與晶片組耦接或透過匯流排與晶片組電性連接。晶片組是由一個或多個積體電路(Integrated Circuit, IC)組成,包含記憶體控制器以及周邊輸出入(I/O)控制器等,也就是說,記憶體控制器以及周邊輸出入控制器可以包含在一個積體電路內,也可以使用兩個或更多的積體電路實現。晶片組通常提供了輸出入和記憶體管理功能、以及提供多個通用及/或專用暫存器、計時器等,其中,上述之通用及/或專用暫存器與計時器可以讓耦接或電性連接至晶片組的一個或多個處理模組存取或使用。Computing devices usually also include one or more chipsets. The processing module of the computing device can be coupled to the chipset or electrically connected to the chipset through a bus. The chipset is composed of one or more integrated circuits (ICs), including a memory controller and a peripheral input/output (I/O) controller, etc. That is, the memory controller and the peripheral input/output (I/O) controller can be included in one IC, or can be implemented using two or more ICs. The chipset usually provides input/output and memory management functions, as well as multiple general and/or dedicated registers, timers, etc., wherein the above-mentioned general and/or dedicated registers and timers can be accessed or used by one or more processing modules coupled or electrically connected to the chipset.
計算設備的處理模組也可以透過記憶體控制器存取安裝於計算設備上的記憶體模組和大容量儲存區中的資料。上述之記憶體模組包含任何類型的揮發性記憶體(volatile memory)及/或非揮發性(non-volatile memory, NVRAM)記憶體,例如靜態隨機存取記憶體(Static Random Access Memory, SRAM)、動態隨機存取記憶體(Dynamic Random Access Memory, DRAM)、唯讀記憶體(Read-Only Memory, ROM)、快閃記憶體(Flash memory)等。上述之大容量儲存區可以包含任何類型的儲存裝置或儲存媒體,例如,硬碟機、光碟(optical disc)、隨身碟(flash drive)、記憶卡(memory card)、固態硬碟(Solid State Disk, SSD)、或任何其他儲存裝置等。也就是說,記憶體控制器可以存取靜態隨機存取記憶體、動態隨機存取記憶體、快閃記憶體、硬碟機、固態硬碟中的資料。The processing module of the computing device can also access the data in the memory module and the mass storage area installed on the computing device through the memory controller. The above-mentioned memory module includes any type of volatile memory and/or non-volatile memory (NVRAM) memory, such as static random access memory (SRAM), dynamic random access memory (DRAM), read-only memory (ROM), flash memory, etc. The mass storage area mentioned above may include any type of storage device or storage media, such as a hard drive, optical disc, flash drive, memory card, solid state disk (SSD), or any other storage device. In other words, the memory controller can access data in static random access memory, dynamic random access memory, flash memory, hard drive, and solid state disk.
計算設備的處理模組也可以透過周邊輸出入控制器經由周邊輸出入匯流排與周邊輸出裝置、周邊輸入裝置、通訊介面、及GPS接收器等周邊裝置或介面連接並通訊。周邊輸入裝置可以是任何類型的輸入裝置,例如鍵盤、滑鼠、軌跡球、觸控板、搖桿等,周邊輸出裝置可以是任何類型的輸出裝置,例如顯示器、印表機等,周邊輸入裝置與周邊輸出裝置也可以是同一裝置,例如觸控螢幕等。通訊介面可以包含無線通訊介面及/或有線通訊介面,無線通訊介面可以包含支援無線區域網路(如Wi-Fi、Zigbee等)、藍牙、紅外線、近場通訊(Near-field communication, NFC)、3G/4G/5G等行動通訊網路(蜂巢式網路)或其他無線資料傳輸協定的介面,有線通訊介面可為乙太網路裝置、DSL數據機、纜線(Cable)數據機、非同步傳輸模式(Asynchronous Transfer Mode, ATM)裝置、或光纖通訊介面及/或元件等。處理模組可以週期性地輪詢(polling)各種周邊裝置與介面,使得計算設備能夠透過各種周邊裝置與介面進行資料的輸入與輸出,也能夠與具有上面描述之硬體元件的另一個計算設備進行通訊。The processing module of the computing device can also be connected and communicated with peripheral devices or interfaces such as peripheral output devices, peripheral input devices, communication interfaces, and GPS receivers through the peripheral input/output controller via the peripheral input/output bus. The peripheral input device can be any type of input device, such as a keyboard, a mouse, a trackball, a touchpad, a joystick, etc. The peripheral output device can be any type of output device, such as a display, a printer, etc. The peripheral input device and the peripheral output device can also be the same device, such as a touch screen, etc. The communication interface may include a wireless communication interface and/or a wired communication interface. The wireless communication interface may include an interface supporting a wireless local area network (such as Wi-Fi, Zigbee, etc.), Bluetooth, infrared, near-field communication (NFC), 3G/4G/5G and other mobile communication networks (cellular networks) or other wireless data transmission protocols. The wired communication interface may be an Ethernet device, a DSL modem, a cable modem, an asynchronous transfer mode (ATM) device, or an optical fiber communication interface and/or component. The processing module can periodically poll various peripheral devices and interfaces, so that the computing device can input and output data through various peripheral devices and interfaces, and can also communicate with another computing device having the hardware components described above.
以下先以「第1圖」本發明所提之於發送效能過低時調整通知訊息發送順序之裝置之元件示意圖來說明本發明。如「第1圖」所示,本發明之裝置100含有參數設定模組110、資料接收模組120、訊息發送模組150、效能判斷模組160、序列調整模組170,及可附加的效能警示模組190。The present invention is first described below with reference to FIG. 1, which is a schematic diagram of the components of the device for adjusting the order of sending notification messages when the sending performance is too low. As shown in FIG. 1, the
參數設定模組110負責設定效能監控參數。參數設定模組110所設定之效能監控參數可以透過各種表示類型來表示容許裝置100發送通知訊息的最差狀況,例如:完成發送一定數量之通知訊息的最長時間、通知訊息之平均發送時間的最高值等,但本發明之效能監控參數並不以上述為限。在部分的實施例中,效能監控參數也可以包含效能監控的間隔時間。一般而言,參數設定模組110可以提供輸入介面並依據被輸入到輸入介面中的資料設定效能監控參數。The
參數設定模組110可以針對裝置100的每一個發送通道分別設定效能監控參數,不同發送通道之效能監控參數的類型與數值可能不同,參數設定模組110也可以對裝置100整體設定效能監控參數,例如不同發送通道的效能監控參數的類型與數值都會相同,又如,將所有發送通道視為一個整體設定效能監控參數。The
資料接收模組120負責接收通知訊息(包含第一通知訊息、第二通知訊息等)及與所接收到之通知訊息對應的發送參數(包含第一發送參數、第二發送參數等)。一般而言,資料接收模組120所接收到的通知訊息與發送參數是由本發明外部的其他裝置(也就是欲發送訊息之單位的電腦或伺服器等裝置)產生並傳送給裝置100,但本發明並不以此為限。The
本發明所提之發送參數包含發送通道訊息,在部分的實施例中也可以包含發送單位訊息及/或訊息種類訊息。發送通道訊息可以表示發送通知訊息的方式,例如,電子郵件、簡訊、即時訊息、推播訊息等;發送單位訊息可以表示欲發送通知訊息之單位;訊息種類訊息可以表示通知訊息的種類,包含但不限於緊急訊息、行銷訊息、提示訊息、訂閱訊息等,但本發明並不以上述為限。在部分的實施例中,發送參數也可以包含與發送通道訊息所表示之發送方式相符的客戶通訊資料,客戶通訊資料可以表示將接收到通知訊息之客戶的客戶通訊資料,例如,在發送通道訊息分別表示以電子郵件、簡訊、即時訊息、推播訊息發送通知訊息時,客戶通訊資料分別可以是電子郵件帳號、手機號碼、即時通訊帳號、行動應用程式的編號或識別資料。The sending parameters mentioned in the present invention include sending channel information, and in some embodiments, may also include sending unit information and/or message type information. The sending channel information may indicate the method of sending the notification message, such as email, SMS, instant message, push message, etc.; the sending unit information may indicate the unit to which the notification message is to be sent; the message type information may indicate the type of notification message, including but not limited to emergency messages, marketing messages, reminder messages, subscription messages, etc., but the present invention is not limited to the above. In some embodiments, the sending parameters may also include client communication data that matches the sending method indicated by the sending channel message. The client communication data may indicate the client communication data of the client who will receive the notification message. For example, when the sending channel message indicates that the notification message is sent by email, SMS, instant message, or push message, the client communication data may be an email account, a mobile phone number, an instant messaging account, or a mobile application ID or identification data.
資料接收模組120也負責將所接收到的通知訊息(與對應的發送參數)加入發送等待序列140中。一般而言,資料接收模組120可以依照與所接收到之通知訊息對應的發送優先順序將通知訊息(與對應的發送參數)加入發送等待序列140中,其中,發送優先順序可以預先被設定或由資料接收模組120根據發送參數所包含之發送單位訊息、訊息種類訊息、及/或發送通道訊息決定,例如,資料接收模組120可以依據發送單位訊息、訊息種類訊息、發送通道訊息之任一之權重值、或其中任兩者或三者的權重值之總和的大小決定發送優先順序。The
在部分的實施例中,資料接收模組120也可以接收客戶名單。一般而言,資料接收模組120可以每隔一段固定的時間或每隔一段時間間隔(如每天的固定時間)接收到本發明之外部的其他裝置所傳送的客戶名單,但本發明並不以此為限。In some embodiments, the
資料接收模組120所接收到的客戶名單包含一個或多個客戶訊息,客戶訊息可以是能夠表示客戶的資料,例如身分證號、銀行帳號、手機號碼、電子郵件帳號、即時通訊帳號、本發明之外部系統或裝置所給予客戶之專屬的序號或識別資料等。The customer list received by the
訊息發送模組150負責由發送等待序列140取出通知訊息與相對應的發送參數。在本發明中,由發送等待序列140中被訊息發送模組150取出的通知訊息也被稱為第一通知訊息,與第一通知訊息對應的發送參數也被稱為第一發送參數。The
訊息發送模組150也負責取得與由發送等待序列140中被取出之第一通知訊息對應的一個或多個客戶通訊資料。舉例來說,訊息發送模組150可以由與第一通知訊息對應的第一發送參數中取得與第一通知訊息對應的客戶通訊資料;訊息發送模組150也可以由資料接收模組120所接收到的客戶名單中取得客戶通訊資料,更詳細的,訊息發送模組150可以判斷客戶名單所包含的客戶訊息是否與第一發送參數中的發送通道訊息所表示的發送方式相符,若是,則訊息發送模組150可以將全部或部分的客戶訊息作為與第一通知訊息對應的客戶通訊資料,而若客戶名單所包含的客戶訊息未與發送通道訊息所表示的發送方式相符,則訊息發送模組150可以依據客戶名單所包含的客戶訊息查詢與第一發送參數中的發送通道訊息所表示的發送方式相符的客戶通訊資料。其中,訊息發送模組150可以至儲存媒體104中查詢與客戶訊息對應的客戶通訊資料,也可以連線到本發明外部的系統或裝置查詢與客戶訊息對應的客戶通訊資料。The
訊息發送模組150也負責依據所取得之與第一通知訊息對應的客戶通訊資料使用與所取得之第一發送參數中之發送通道訊息對應的發送通道(也就是發送通道訊息所表示的發送方式)發送第一通知訊息至客戶端。其中,與第一通知訊息對應的客戶通訊資料可能有一個或多個,因此,也會有與客戶通訊資料對應的一個或多個客戶端接收到訊息發送模組150所發送的第一通知訊息。The
在部分的實施例中,訊息發送模組150也可以在效能判斷模組160判斷訊息發送模組150發送第一通知訊息的發送效能低於參數設定模組110所設定的效能監控參數時,增加發送相同或不同之第一通知訊息的時間間隔及/或累計發送一定數量之第一通知訊息後暫停一定時間再發送其他第一通知訊息。In some embodiments, when the
效能判斷模組160負責判斷訊息發送模組150發送第一通知訊息的發送效能(在本發明中也簡稱為訊息發送模組150的發送效能)是否低於參數設定模組110所設定的效能監控參數,例如,當效能監控參數包含完成發送一定數量(N)之通知訊息的最長時間(M)時,效能判斷模組160可以判斷每N筆通知訊息是否在M分鐘內完成發送,若是,則表示訊息發送模組150的發送效能高於效能監控參數,若否,表示訊息發送模組150的發送效能低於效能監控參數;又如,效能監控參數包含通知訊息之平均發送時間的最高值(P),則效能判斷模組160可以判斷訊息發送模組150發送每一個第一通知訊息的平均時間是否小於等於P秒,若是,表示訊息發送模組150的發送效能高於效能監控參數,反之,表示訊息發送模組150的發送效能低於效能監控參數。The
在部分的實施例中,效能判斷模組160也可以依據訊息發送模組150發送第一通知訊息之數量及時間與參數設定模組110所設定之效能監控參數的比例判斷訊息發送模組150的發送效能是否低於效能監控參數,例如,當訊息發送模組150只發送N/2筆通知訊息時,效能判斷模組160可以判斷訊息發送模組150是否在M/2分鐘內完成N/2筆通知訊息的發送。In some embodiments, the
效能判斷模組160也可以先分析過去一定時間內的發送效能以產生發送統計效能,如計算過去一定時間內之發送效能的平均值或中位數等統計值,再比對發送統計效能與效能監控參數以判斷訊息發送模組150的發送效能是否低於效能監控參數。要說明的是,上述之一定時間可以是預設值,也可以是效能監控參數中所包含的間隔時間,如過去六小時、一天等。The
例如,效能判斷模組160可以在訊息發送模組150由發送等待序列140中取出之第一通知訊息時,先判斷訊息發送模組150使用與第一通知訊息對應之第一發送參數中的發送通道訊息表示之發送通道在過去一定時間內的發送效能是否低於參數設定模組110所設定的效能監控參數。For example, when the
序列調整模組170負責在效能判斷模組160判斷訊息發送模組150的發送效能低於參數設定模組110所設定的效能監控參數時,依據與在發送等待序列140中之通知訊息對應的發送參數調整通知訊息在發送等待序列140中之順序。在本發明中,排列在發送等待序列140中的通知訊息也被稱為第二通知訊息,與第二通知訊息對應的發送參數也被稱為第二發送參數。The
序列調整模組170可以調整第二發送參數中之發送單位訊息、訊息種類訊息、及/或發送通道訊息與預先定義之調整層級相符之第二通知訊息在發送等待序列140中的順序,如將第二通知訊息調整到發送等待序列140最後的位置或向後調整一定數量的位置等。更詳細的,例如,調整層級可以定義調整發送單位訊息之順序為服務單位、行銷單位,也就是說,序列調整模組170可以先將與發送單位訊息表示為服務單位之第二發送參數對應的第二通知訊息在發送等待序列140中的排列順序向後調整,若與發送等待序列140中之第二通知訊息對應的第二發送參數中沒有包含表示服務單位的發送單位訊息,則序列調整模組170可以將與發送單位訊息表示為行銷單位之第二發送參數對應的第二通知訊息在發送等待序列140中的排列順序向後調整,使得訊息發送模組150延後發送與包含表示為服務單位之發送單位訊息的第二發送參數對應之第二通知訊息;相似的,調整層級也可以定義調整訊息種類訊息之順序為訂閱通知、一般通知、行銷通知,也就是說,序列調整模組170可以依序判斷與發送等待序列140中之第二通知訊息對應的第二發送參數中是否包含表示為訂閱通知/一般通知/行銷通知的訊息種類訊息,並可以將與訊息種類訊息表示為訂閱通知/一般通知/行銷通知之第二發送參數對應的第二通知訊息在發送等待序列140中的排列順序向後調整,使得訊息發送模組150延後發送與包含表示為訂閱通知/一般通知/行銷通知之訊息種類訊息的第二發送參數對應之第二通知訊息;調整層級也可以定義調整發送通道訊息之順序為電子郵件、即時通訊、簡訊、推播,序列調整模組170可以依序判斷與發送等待序列140中之第二通知訊息對應的第二發送參數中是否包含表示為電子郵件/即時通訊/簡訊/推播的發送通道訊息,並可以將與發送通道訊息表示為電子郵件/即時通訊/簡訊/推播之第二發送參數對應的第二通知訊息在發送等待序列140中的排列順序向後調整,使得訊息發送模組150延後發送與包含表示為電子郵件/即時通訊/簡訊/推播之發送通道訊息的第二發送參數對應之第二通知訊息。實務上,調整層級也可以同時定義調整發送單位訊息、訊息種類訊息、或發送通道訊息中的兩者或全部之組合的順序,例如:定義調整發送通道訊息與訊息種類訊息之組合的順序為服務單位與訂閱通知、服務單位與一般通知、行銷單位與訂閱通知、行銷單位與一般通知、行銷單位與行銷通知等,本發明並不以上述為限。The
序列調整模組170也可以調整第二發送參數中之發送單位訊息、訊息種類訊息、及/或發送通道訊息與第一發送參數相符之第二通知訊息在發送等待序列140中的順序。其中,序列調整模組170可以調整第二發送參數中與第一發送參數之發送單位訊息、訊息種類訊息、或發送通道訊息中的兩者或全部相符之第二通知訊息在發送等待序列140中的順序。The
效能警示模組190在效能判斷模組160判斷訊息發送模組150的發送效能低於參數設定模組110所設定的效能監控參數時,可以產生警示,及/或可以通知管理者,例如,以電子郵件、簡訊、即時訊息等方式將警示訊息傳送給管理者。When the
接著以一個實施例來解說本發明的運作系統與方法,並請參照「第2A圖」本發明所提之於發送效能過低時調整通知訊息發送順序之方法流程圖。在本實施例中,假設裝置100為訊息發送伺服器,但本發明並不以此為限。Next, an embodiment is used to explain the operating system and method of the present invention, and please refer to "FIG. 2A" for a flow chart of the method for adjusting the order of sending notification messages when the sending performance is too low. In this embodiment, it is assumed that the
首先,參數設定模組110可以提供裝置100的管理人員設定效能監控參數(步驟210)。在本實施例中,假設被設定的效能監控參數包含完成發送一定數量(N)之通知訊息的最長時間(M)與通知訊息之平均發送時間的最高值(P)。First, the
在參數設定模組110設定效能監控參數(步驟210)後,當資料接收模組120接收到通知訊息與相對應的發送參數(步驟230)時,資料接收模組120可以將所接收到的通知訊息加入發送等待序列140中(步驟241),藉以等待訊息發送模組150發送。在本實施例中,假設發送參數包含發送單位訊息、訊息種類訊息、發送通道訊息,其中,發送單位訊息可以表示相對應之通知訊息由個金單位、行銷單位、風險管理單位等單位所發出,訊息種類訊息可以表示相對應之通知訊息為緊急通知、行銷通知、一般通知、訂閱通知,發送通道訊息可以表示相對應之通知訊息使用電子郵件、簡訊、即時訊息、推播訊息等發送方式,資料接收模組120可以依據發送參數所包含發送單位訊息、訊息種類訊息、發送通道訊息中的一種、兩種或三種訊息的權重值決定相對應之通知訊息被插入發送等待序列140中的位置。After the
之後,訊息發送模組150可以持續由發送等待序列140中取出排列在最前端的第一通知訊息(步驟245)與相對應的第一發送參數(同時可以將所取出的第一通知訊息由發送等待序列140中移除),並可以取得與所取出之通知訊息對應的客戶通訊資料(步驟250),及可以依據所取得之客戶通訊資料使用與第一發送參數中之發送通道訊息相對應的發送通道發送第一通知訊息至客戶端(步驟260)。在本實施例中,訊息發送模組150在取得與所取出之第一通知訊息相對應的一個或多個客戶通訊資料後,可以依據所取得的客戶通訊資料使用與第一發送參數中之發送通道訊息對應的發送通道發送第一通知訊息至一個或多個客戶端,其中,若訊息發送模組150所取得之客戶通訊資料與發送通道,則訊息發送模組150可以直接依據所取得之客戶通訊資料發送第一通知訊息至客戶端,而當訊息發送模組150所取得之客戶通訊資料未與發送通道對應,則訊息發送模組150可以依據所取得之客戶通訊資料取得與發送通道相對應的客戶通訊資料,並依據所取得的客戶通訊資料發送通知訊息給客戶端。例如,客戶通訊資料為電子郵件帳號的形式且發送通道為電子郵件,若客戶通訊資料包含aaa@bbb.cc、ddd@eee.ff等電子郵件帳號,則訊息發送模組150可以使用電子郵件將第一通知訊息分別發送給aaa@bbb.cc、ddd@eee.ff等電子郵件信箱中,使得擁有aaa@bbb.cc或ddd@eee.ff等電子郵件帳號的客戶可以操作客戶端連下到管理aaa@bbb.cc或ddd@eee.ff之電子郵件伺服器下載第一通知訊息。Afterwards, the
在訊息發送模組150依據所取得之客戶通訊資料使用與第一發送參數中之發送通道訊息相對應的發送通道發送第一通知訊息至客戶端(步驟260)後,效能判斷模組160可以判斷訊息發送模組150發送第一通知訊息的發送效能是否低於參數設定模組110所設定的效能監控參數,若否,則訊息發送模組150可以依照預定的間隔時間發送下一個第一通知訊息,也就是重複步驟245~260,若是,序列調整模組170可以依據與排列在發送等待序列140中之第二通知訊息對應的第二發送參數調整第二通知訊息在發送等待序列140中的順序(步驟270)。在本實施例中,假設序列調整模組170可以將與第一通知訊息對應之第一發送參數中之發送通道訊息相同之第二發送參數所對應的第二通知訊息移動到發送等待序列140的最後,若第一發送參數中之發送通道訊息表示使用即時訊息發送第一通知訊息,則如「第3A圖」與「第3B圖」所示,當發送等待序列140中依序包含第二通知訊息311~316時,序列調整模組170可以將與包含表示使用即時訊息之發送通道訊息的第二發送參數對應之第二通知訊息312、315移動到發送等待序列140的最後,但包含表示非使用即時訊息之發送通道訊息的第二發送參數對應之第二通知訊息並不會被序列調整模組170調整排列順序,如此,發送等待序列140中依序包含第二通知訊息311、第二通知訊息313、第二通知訊息314、第二通知訊息316、第二通知訊息312、第二通知訊息315。After the
如此,透過本發明,可以依據裝置當前的發送效能調整使用各種發送通道之不同待發送之通知訊息的發送順序,藉以讓裝置可以避免在使用特定發送通道發送通知訊息的發送效能過低時繼續使用相同發送通道發送通知訊息。Thus, through the present invention, the sending order of different notification messages to be sent using various sending channels can be adjusted according to the current sending performance of the device, so that the device can avoid continuing to use the same sending channel to send notification messages when the sending performance of using a specific sending channel to send notification messages is too low.
上述實施例中,在訊息發送模組150可以由發送等待序列140中取出排列在最前端的第一通知訊息(步驟245)與相對應的第一發送參數後,效能判斷模組160可以先判斷訊息發送模組150使用第一發送參數中之發送通道訊息所表示的發送通道在過去一定時間內的發送效能是否低於參數設定模組110所設定的效能監控參數,若否,則訊息發送模組150可以將所取出的第一通知訊息由發送等待序列140中移除,並可以取得與所取出之通知訊息對應的客戶通訊資料(步驟250),及可以依據所取得之客戶通訊資料使用與第一發送參數中之發送通道訊息相對應的發送通道發送第一通知訊息至客戶端(步驟260);而若效能判斷模組160判斷訊息發送模組150使用第一發送參數中之發送通道訊息所表示的發送通道在過去一定時間內的發送效能低於效能監控參數,則序列調整模組170可以依據與排列在發送等待序列140中之第二通知訊息對應的第二發送參數調整第二通知訊息在發送等待序列140中的順序(步驟270)。In the above embodiment, after the
另外,上述實施例中,當效能判斷模組160判斷訊息發送模組150發送第一通知訊息的發送效能低於參數設定模組110所設定的效能監控參數時,訊息發送模組150可以如「第2B圖」之流程所示,增加發送第一通知訊息之時間間隔及/或在累計發送一定數量之第一通知訊息後暫停發送一定時間(步驟280),藉以延後發送下一個第一通知訊息的時間。In addition, in the above-mentioned embodiment, when the
若裝置100中還包含效能警示模組190,則效能判斷模組160判斷訊息發送模組150發送第一通知訊息的發送效能低於參數設定模組110所設定的效能監控參數後,效能警示模組190可以產生警示及/或通知管理人員(步驟290)。If the
綜上所述,可知本發明與先前技術之間的差異在於具有在設定效能監控參數後,判斷第一通知訊息的發送效能低於效能監控參數時,依據與第二通知訊息對應之第二發送參數調整第二通知訊息的發送順序之技術手段,藉由此一技術手段可以來解決先前技術所存在持續使用發送效能過低之發送方式發送訊息的問題,進而達成降低通知訊息發送失敗之可能性的技術功效。In summary, the difference between the present invention and the prior art is that after setting the performance monitoring parameters, when it is determined that the sending performance of the first notification message is lower than the performance monitoring parameters, the sending order of the second notification message is adjusted according to the second sending parameter corresponding to the second notification message. This technical means can solve the problem of the prior art of continuously sending messages using a sending method with too low sending performance, thereby achieving the technical effect of reducing the possibility of failure in sending notification messages.
再者,本發明之於發送效能過低時調整通知訊息發送順序之方法,可實現於硬體、軟體或硬體與軟體之組合中,亦可在電腦系統中以集中方式實現或以不同元件散佈於若干互連之電腦系統的分散方式實現。Furthermore, the method of the present invention for adjusting the order of sending notification messages when the sending performance is too low can be implemented in hardware, software, or a combination of hardware and software, and can also be implemented in a centralized manner in a computer system or in a distributed manner with different components distributed in several interconnected computer systems.
雖然本發明所揭露之實施方式如上,惟所述之內容並非用以直接限定本發明之專利保護範圍。任何本發明所屬技術領域中具有通常知識者,在不脫離本發明所揭露之精神和範圍的前提下,對本發明之實施的形式上及細節上作些許之更動潤飾,均屬於本發明之專利保護範圍。本發明之專利保護範圍,仍須以所附之申請專利範圍所界定者為準。Although the implementation methods disclosed in the present invention are as above, the contents described are not intended to directly limit the scope of patent protection of the present invention. Any person with common knowledge in the technical field to which the present invention belongs, without departing from the spirit and scope disclosed by the present invention, makes slight changes and modifications to the implementation of the present invention in form and details, which are all within the scope of patent protection of the present invention. The scope of patent protection of the present invention shall still be based on the scope defined in the attached patent application.
100:裝置
104:儲存媒體
110:參數設定模組
120:資料接收模組
140:發送等待序列
150:訊息發送模組
160:效能判斷模組
170:序列調整模組
190:效能警示模組
311~316:第二通知訊息
步驟210:設定效能監控參數
步驟230:接收通知訊息與對應通知訊息之發送參數
步驟241:將通知訊息加入發送等待序列中
步驟245:由發送等待序列取出第一通知訊息
步驟250:取得與第一通知訊息對應之客戶通訊資料
步驟260:依據客戶通訊資料使用與發送通道訊息對應之發送通道發送第一通知訊息至客戶端
步驟270:判斷第一通知訊息之發送效能低於效能監控參數時,依據與發送等待序列中之第二通知訊息對應之第二發送參數調整第二通知訊息於發送等待序列中之順序
步驟280:增加發送第一通知訊息之時間間隔及/或累計發送一定數量之第一通知訊息後暫停一定時間
步驟290:產生警示或通知管理者
100: device
104: storage medium
110: parameter setting module
120: data receiving module
140: sending waiting sequence
150: message sending module
160: performance judgment module
170: sequence adjustment module
190:
第1圖為本發明所提之於發送效能過低時調整通知訊息發送順序之裝置之元件示意圖。 第2A圖為本發明所提之於發送效能過低時調整通知訊息發送順序之方法流程圖。 第2B圖為本發明所提之於發送效能過低時調整通知訊息發送順序之附加方法流程圖。 第3A、3B圖為本發明實施例所提之發送等待序列之示意圖。 FIG. 1 is a schematic diagram of the components of the device for adjusting the order of sending notification messages when the sending performance is too low according to the present invention. FIG. 2A is a flow chart of the method for adjusting the order of sending notification messages when the sending performance is too low according to the present invention. FIG. 2B is a flow chart of the additional method for adjusting the order of sending notification messages when the sending performance is too low according to the present invention. FIG. 3A and FIG. 3B are schematic diagrams of the sending waiting sequence according to the embodiment of the present invention.
步驟210:設定效能監控參數 Step 210: Set performance monitoring parameters
步驟230:接收通知訊息與對應通知訊息之發送參數 Step 230: Receive notification message and corresponding notification message sending parameters
步驟241:將通知訊息加入發送等待序列中 Step 241: Add the notification message to the sending waiting sequence
步驟245:由發送等待序列取出第一通知訊息 Step 245: Take out the first notification message from the sending waiting sequence
步驟250:取得與第一通知訊息對應之客戶通訊資料 Step 250: Obtain the customer communication data corresponding to the first notification message
步驟260:依據客戶通訊資料使用與發送通道訊息對應之發送通道發送第一通知訊息至客戶端 Step 260: Send the first notification message to the client using the sending channel corresponding to the sending channel message based on the client communication data
步驟270:判斷第一通知訊息之發送效能低於效能監控參數時,依據與發送等待序列中之第二通知訊息對應之第二發送參數調整第二通知訊息於發送等待序列中之順序 Step 270: When it is determined that the sending performance of the first notification message is lower than the performance monitoring parameter, the order of the second notification message in the sending waiting sequence is adjusted according to the second sending parameter corresponding to the second notification message in the sending waiting sequence
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW112104409A TWI869770B (en) | 2023-02-08 | 2023-02-08 | Device for adjusting sending order of messages when sending performance is too low and method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW112104409A TWI869770B (en) | 2023-02-08 | 2023-02-08 | Device for adjusting sending order of messages when sending performance is too low and method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW202433907A TW202433907A (en) | 2024-08-16 |
| TWI869770B true TWI869770B (en) | 2025-01-11 |
Family
ID=93260377
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW112104409A TWI869770B (en) | 2023-02-08 | 2023-02-08 | Device for adjusting sending order of messages when sending performance is too low and method thereof |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI869770B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020055982A1 (en) * | 2000-11-03 | 2002-05-09 | The Board Of Regents Of The University Of Nebraska | Controlled server loading using L4 dispatching |
| US7986625B2 (en) * | 2002-12-10 | 2011-07-26 | International Business Machines Corporation | Resource-aware system, method and program product for managing request traffic based on a management policy |
| TW201810991A (en) * | 2016-04-29 | 2018-03-16 | 英特爾智財公司 | Network function virtualization |
| CN110535568A (en) * | 2018-08-10 | 2019-12-03 | 中兴通讯股份有限公司 | Response receiving and sending method, retransmission method, communication device and storage medium |
| US20220255640A1 (en) * | 2019-07-08 | 2022-08-11 | Zte Corporation | Wireless signal performance adjustment apparatus and method and wireless communication terminal |
-
2023
- 2023-02-08 TW TW112104409A patent/TWI869770B/en active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020055982A1 (en) * | 2000-11-03 | 2002-05-09 | The Board Of Regents Of The University Of Nebraska | Controlled server loading using L4 dispatching |
| US7986625B2 (en) * | 2002-12-10 | 2011-07-26 | International Business Machines Corporation | Resource-aware system, method and program product for managing request traffic based on a management policy |
| TW201810991A (en) * | 2016-04-29 | 2018-03-16 | 英特爾智財公司 | Network function virtualization |
| CN110535568A (en) * | 2018-08-10 | 2019-12-03 | 中兴通讯股份有限公司 | Response receiving and sending method, retransmission method, communication device and storage medium |
| US20220255640A1 (en) * | 2019-07-08 | 2022-08-11 | Zte Corporation | Wireless signal performance adjustment apparatus and method and wireless communication terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202433907A (en) | 2024-08-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9384114B2 (en) | Group server performance correction via actions to server subset | |
| US20120209921A1 (en) | Instant Message Management Method and Apparatus | |
| US20160182399A1 (en) | Continuous resource pool balancing | |
| CN111694646A (en) | Resource scheduling method and device, electronic equipment and computer readable storage medium | |
| CN101005505B (en) | Systems and methods for communicating with database client users | |
| US12242447B2 (en) | Monitoring operation of a data pipeline to obtain representations of operation quality | |
| US9489138B1 (en) | Method and apparatus for reliable I/O performance anomaly detection in datacenter | |
| US10630399B2 (en) | Testing distributed applications that have an established exchange in an advanced message queuing protocol (AMQP) message broker | |
| CN107426336B (en) | A method and device for adjusting the open rate of a push message | |
| CN108932182B (en) | Message bus performance test method and system | |
| US20250036516A1 (en) | Managing operational functionality of far edge devices using log data | |
| TWM644811U (en) | A device that adjusts sending order of notification messages when sending performance is too low | |
| TWI869770B (en) | Device for adjusting sending order of messages when sending performance is too low and method thereof | |
| TWM641985U (en) | Device for determining sending order to send notification messages based on sending parameters | |
| CN102231684A (en) | Interface board state detection method, multi-core central processing unit, interface board and router | |
| TWI839106B (en) | Device for determining transmitting order according to sending parameters to transmit messages and method thereof | |
| CN111722986A (en) | Software performance monitoring method and device | |
| CN115103005B (en) | Request response method, device, electronic device and storage medium | |
| TWM647479U (en) | Firewall normalization analysis and report tracking system | |
| TWM647478U (en) | Variation reporting and report tracking system for firewall regulation variation | |
| CN115686964A (en) | PCIe equipment fault detection method, device, equipment and medium | |
| US11366651B2 (en) | Framework for hardware-specific analytic plugins | |
| CN110971697B (en) | Redis single instance protection processing method and device, computer equipment and storage medium | |
| CN109918257A (en) | A kind of hard disk abnormality eliminating method and device | |
| CN113039751B (en) | Fault notification methods, devices and equipment |