TWI506980B - The queuing system, the device and the method for the network service - Google Patents

The queuing system, the device and the method for the network service Download PDF

Info

Publication number
TWI506980B
TWI506980B TW101129628A TW101129628A TWI506980B TW I506980 B TWI506980 B TW I506980B TW 101129628 A TW101129628 A TW 101129628A TW 101129628 A TW101129628 A TW 101129628A TW I506980 B TWI506980 B TW I506980B
Authority
TW
Taiwan
Prior art keywords
queue
identification information
client
request
dialog request
Prior art date
Application number
TW101129628A
Other languages
Chinese (zh)
Other versions
TW201408001A (en
Inventor
Yen Chen Chen
Original Assignee
Dynasafe Technologies Inc
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 Dynasafe Technologies Inc filed Critical Dynasafe Technologies Inc
Priority to TW101129628A priority Critical patent/TWI506980B/en
Publication of TW201408001A publication Critical patent/TW201408001A/en
Application granted granted Critical
Publication of TWI506980B publication Critical patent/TWI506980B/en

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

網路服務的隊列處理系統、裝置與方法Queue processing system, device and method for network service

一種網路系統、裝置與處理方法,特別有關於一種網路服務的隊列處理系統、裝置與方法。A network system, device and processing method, in particular, a queue processing system, device and method for a network service.

隨著網際網路的快速發展,因此也帶動了許多網路服務。例如網路訂票或網路購物就是有別於以往的網路服務。使用者不需要外出到實體店面,在家就可以達到消費的目的。但這些網路服務常會受限於網站的對外頻寬或後台伺服器效能等因素,造成使用者在進行該項網路服務時會產生延遲的問題。而更甚者,都有可能發生提供網路服務的設備發生當機或毀損的情況。With the rapid development of the Internet, it has also driven many Internet services. For example, online booking or online shopping is different from previous Internet services. Users do not need to go out to the physical storefront, they can achieve the purpose of consumption at home. However, these network services are often limited by factors such as the external bandwidth of the website or the performance of the background server, which may cause delays in the user's network service. What's more, there may be cases where the device providing the network service is down or damaged.

請參考第1圖所示,其係為習知技術的網路服務之架構示意圖。習知技術為能解決所有客戶端110在同時連線時,都可以使用到所提供的網路服務。因此在多台的後端伺服器130與多個客戶端110間更設置負載平衡管理器120(Load Balance device)。負載平衡管理器120會將客戶端110所發出的連線要求分配至任一後端伺服器130。雖然這樣的作法可以降低客戶端110等待的時間與後端伺服器130的負載。Please refer to FIG. 1 , which is a schematic diagram of the architecture of a network service of the prior art. The conventional technology can solve the problem that all the clients 110 can use the network service provided when they are connected at the same time. Therefore, a load balancing device 120 is further disposed between the plurality of backend servers 130 and the plurality of clients 110. The load balancing manager 120 will assign the connection request issued by the client 110 to any of the backend servers 130. Although such an approach can reduce the latency of the client 110 and the load of the backend server 130.

但由於習知技術的負載平衡器只能以靜態法則對各後端伺服器130進行負載偵測與連線分配。所以它一方面無法靈活的增加或減少後端伺服器130的數量,另一方面則無法自動減緩進入後端伺服器130的連線數。因此,當大量客戶端110所發出的連線 瞬間湧入時,將會造成所有後端伺服器130的壅塞甚至當機,並且使得該台後端伺服器130所連接的客戶端110也無法得到相應的服務。當後端伺服器130修復後,原先之客戶端110重新發出連線要求時,可能所要求的物件,例如車票或門票,已經被其他客戶端在伺服器修復的瞬間搶先獲取,這樣造成先連線者反而得不到服務的窘境。However, the load balancer of the prior art can only perform load detection and connection assignment to each backend server 130 by static law. Therefore, on the one hand, it cannot flexibly increase or decrease the number of backend servers 130, and on the other hand, it cannot automatically slow down the number of connections to the backend server 130. Therefore, when a large number of clients 110 send out the connection When the momentary influx occurs, all the backend servers 130 will be blocked or even crashed, and the client 110 connected to the backend server 130 will not be able to obtain the corresponding service. When the backend server 130 is repaired, when the original client 110 re-issues the connection request, the requested items, such as tickets or tickets, may have been acquired by other clients at the instant of server repair, thus causing the first connection. The line is not able to get the service.

鑒於以上的問題,本發明在於提供一種網路服務的隊列處理系統,應用於多個客戶端在等待網路服務的輸出結果。In view of the above problems, the present invention provides a queue processing system for a network service, which is applied to an output of a plurality of clients waiting for a network service.

本發明所揭露之網路服務的隊列處理系統包括至少一後端伺服器、負載平衡管理器與負載控制器。後端伺服器對客戶端所發出的對話要求進行相應的網路服務,並回應處理後的輸出結果;負載平衡管理器連接於客戶端與後端伺服器,負載平衡管理器接收每一客戶端的對話要求並分配對話要求至後端伺服器;負載控制器連接於負載平衡管理器與後端伺服器,負載控制器取得後端伺服器的運行狀態資訊,將狀態良好之後端伺服器列入可立即提供服務的清單之中,並通知負載平衡管理器選擇這些可以提供服務的後端伺服器,藉以服務客戶端的對話要求。The queue processing system of the network service disclosed by the present invention includes at least one backend server, a load balancing manager and a load controller. The backend server requests the corresponding network service for the dialogue sent by the client, and responds to the processed output result; the load balancing manager is connected to the client and the backend server, and the load balancing manager receives each client's The dialog request and assign the dialog request to the backend server; the load controller is connected to the load balancing manager and the backend server, and the load controller obtains the running status information of the backend server, and the server is listed in the state after the good state is available. Immediately provide a list of services and notify the load balancing manager to select these backend servers that can provide services to serve the client's conversational requirements.

其中,負載平衡管理器偵測對話要求中存在隊列識別資訊,負載平衡管理器將對話要求傳送至所選擇的後端伺服器,若對話要求中不存在隊列識別資訊時,負載平衡管理器將所接收的對話要求轉發至負載控制器,負載控制器將隊列識別資訊加入對話要 求中再將隊列識別資訊回覆至客戶端,客戶端儲存隊列識別資訊後轉回該對話要求到負載平衡管理器,由負載平衡管理器將對話要求加入佇列單元中,使對話要求於佇列單元中等待分配至後端伺服器。The load balancing manager detects that there is queue identification information in the dialog request, and the load balancing manager transmits the dialog request to the selected backend server. If the queue identification information does not exist in the dialog request, the load balancing manager will The received dialog request is forwarded to the load controller, and the load controller adds the queue identification information to the dialog. The requester replies the queue identification information to the client, and the client stores the queue identification information and then returns the dialog request to the load balancing manager, and the load balancing manager adds the dialog request to the queue unit, so that the dialog request is queued. The unit is waiting to be assigned to the backend server.

本發明另提出一種網路服務的隊列處理裝置包括:第一接口、第二接口與處理單元。第一接口接收每一客戶端的對話要求;第二接口接收每一後端伺服器的運行狀態資訊;處理單元透過第一接口電性連接於負載平衡管理器;處理單元把隊列識別資訊加入對話要求,並回傳給客戶端;處理單元根據所接收的運行狀態決定每一台後端伺服器是否被致能或被禁能。The invention further provides a queue processing device for a network service, comprising: a first interface, a second interface and a processing unit. The first interface receives the dialog request of each client; the second interface receives the running status information of each backend server; the processing unit is electrically connected to the load balancing manager through the first interface; the processing unit adds the queue identification information to the dialog request And returning to the client; the processing unit determines whether each backend server is enabled or disabled according to the received operating state.

本發明所揭露之一種網路服務的隊列處理方法,其係包括以下步驟:由負載控制器取得每一後端伺服器的運行狀態決定其是否致能或禁能;由負載平衡管理器接收後端伺服器致能/禁能的運行狀態與客戶端的對話要求;判斷對話要求中是否具有隊列識別資訊;若對話要求具有隊列識別資訊時,負載平衡管理器根據隊列識別資訊的順序從佇列單元中取出對話要求,並根據致能/禁能的運行狀態將對話要求分發至對應的後端伺服器;後端伺服器完成服務後將該筆對話要求註記廢棄,並通知負載控制器;若對話要求不具有隊列識別資訊時,則將對話要求轉發至負載控制器;將隊列識別資訊加入對話要求後,回覆對話要求至客戶端;客戶端根據已加入隊列識別資訊的對話要求,儲存隊列識別資訊,並將此對話要求轉回給負載平衡管理器。A method for processing a queue of a network service according to the present invention includes the following steps: determining, by the load controller, an operating state of each backend server to determine whether it is enabled or disabled; and receiving by the load balancing manager The end server enables/disables the running state and the client's dialogue request; determines whether the dialog request has queue identification information; if the dialog requires queue identification information, the load balancing manager selects the information from the queue unit according to the order of the queue identification information The dialog request is taken out, and the dialog request is distributed to the corresponding backend server according to the enabled/disabled running state; the backend server discards the dialog request note after completing the service, and notifies the load controller; When the request does not have the queue identification information, the dialog request is forwarded to the load controller; after the queue identification information is added to the dialog request, the dialog request is sent to the client; the client stores the queue identification information according to the dialog request that has been added to the queue identification information. And forward this conversation request back to the load balancing manager.

本發明所提出的網路服務的隊列處理系統、裝置與方法使得客戶端在隊列時,後端的服務器可以確保隊列順序的公平性。有關本發明的特徵與實作,茲配合圖式作最佳實施例詳細說明如下。The queue processing system, apparatus and method for the network service proposed by the invention enable the server of the back end to ensure the fairness of the queue order when the client is in the queue. The features and implementations of the present invention are described in detail below with reference to the drawings.

本發明的網路服務可以是但不限定為網路售票、網路拍賣,也可以是需要提供客戶端公平排隊的服務。請參考第2A圖所示,其係為本發明之網路連接架構示意圖。在本發明的網路服務的隊列處理系統主要包括以下部分,其係分別為客戶端210、負載平衡管理器220(Load Balance device)、負載控制器230(Load controller)與後端伺服器240。客戶端210係透過網路連接於隊列處理裝置。客戶端210可能為個人電腦、智慧型手機、平板電腦或筆記型電腦等具有網際網路瀏覽器之電子裝置。The network service of the present invention may be, but is not limited to, online ticketing, online auction, or a service that needs to provide a fair queuing of the client. Please refer to FIG. 2A, which is a schematic diagram of the network connection architecture of the present invention. The queue processing system of the network service of the present invention mainly includes the following parts, which are a client 210, a load balancing device 220, a load controller 230, and a backend server 240. The client 210 is connected to the queue processing device via a network. The client 210 may be an electronic device having an internet browser such as a personal computer, a smart phone, a tablet or a notebook computer.

客戶端210會透過瀏覽器(browser)或應用程序(application)向提供網路服務的網站(website)提出對話要求(session request)。而客戶端210的對話要求會被導向至網站後台所連接的多個後端伺服器240之任一。負載平衡管理器220係將不同客戶端210所發出的對話要求分配至相應的後端伺服器240進行網路服務的處理(所述的分配處理將於後文詳述)。The client 210 will make a session request to a website providing a web service through a browser or an application. The dialog requirements of the client 210 are directed to any of the plurality of backend servers 240 connected to the backend of the website. The load balancing manager 220 distributes the dialog requests issued by the different clients 210 to the corresponding backend server 240 for processing of the network service (the allocation process will be described later in detail).

請另參考第2B圖所示,其係為本發明之負載控制器之架構示意圖。本發明的負載平衡管理器220更包括佇列單元221。佇列單元221可依序的記錄對話要求。佇列單元221可以透過儲存裝置所實現,例如在硬碟(hard disk)或快閃記憶體(flash memory) 中劃分出一固定區域作為本發明的佇列單元221,也可以將整個快閃記憶體視為一個佇列單元221。一般而言,可以利用佇列(Queue)或指標(Pointer)等方式來實現具有先進先出(First In First Out,FIFO)的功能的佇列單元221。Please refer to FIG. 2B, which is a schematic diagram of the structure of the load controller of the present invention. The load balancing manager 220 of the present invention further includes a queue unit 221. The queue unit 221 can record the dialog requirements in sequence. The queue unit 221 can be implemented by a storage device, such as a hard disk or a flash memory. A fixed area is divided into the array unit 221 of the present invention, and the entire flash memory can also be regarded as a queue unit 221. In general, the queue unit 221 having the function of First In First Out (FIFO) can be implemented by means of a Queue or a Pointer.

本發明的負載控制器230包括第一接口231、第二接口232與處理單元233。處理單元233電性連接於第一接口231與第二接口232。第一接口231(對於第二接口232亦同)的種類可以透過為乙太網路(Ether network)、光纖網路(Fiber network)、儲存區域網路(Storage Access Network)、網際網路型小型電腦介面(Internet Small Computer System Interface,iSCSI)或其他可供通訊連接用的電纜。The load controller 230 of the present invention includes a first interface 231, a second interface 232, and a processing unit 233. The processing unit 233 is electrically connected to the first interface 231 and the second interface 232. The type of the first interface 231 (the same for the second interface 232) can be transmitted through an Ethernet network, a fiber network, a storage area network (Storage Access Network), and an Internet type. Internet Small Computer System Interface (iSCSI) or other cable for communication connection.

第一接口231透過負載平衡管理器220接收來自於客戶端210的對話要求。負載平衡管理器220會偵測所輸入的對話要求中是否存在隊列識別資訊。若是對話要求中不存在隊列識別資訊,則負載平衡管理器220會將該筆對話要求轉發至負載控制器230。負載控制器230的處理單元233會根據時間戳記(time stamp)、網路位址(IP address)、媒體存取控制位址(MAC address)或使用者資訊(User ID)之任一或者其組合產生唯一的隊列識別資訊。隊列識別資訊用以識別客戶端210取得網路服務的隊列順序。其中,處理單元233可以透過小型文字檔(cookies)的方式將隊列識別資訊寫入對話要求中。The first interface 231 receives the dialog request from the client 210 through the load balancing manager 220. The load balancing manager 220 detects whether there is queue identification information in the input dialog request. If there is no queue identification information in the dialog request, the load balancing manager 220 will forward the pen dialog request to the load controller 230. The processing unit 233 of the load controller 230 may be based on any one or a combination of a time stamp, an IP address, a MAC address, or a User ID. Generate unique queue identification information. The queue identification information is used to identify the queue order in which the client 210 obtains the network service. The processing unit 233 can write the queue identification information into the dialog request by means of small text files (cookies).

當處理單元233完成隊列識別資訊的寫入後,處理單元233 會將已處理後的對話要求回覆給客戶端210。客戶端210儲存隊列識別資訊後轉發回該對話要求到負載平衡管理器220。佇列單元221用以記錄後端伺服器240發生壅塞時的對話要求。After the processing unit 233 completes the writing of the queue identification information, the processing unit 233 The processed dialog request will be replied to the client 210. The client 210 stores the queue identification information and forwards the dialog request back to the load balancing manager 220. The queue unit 221 is used to record the dialog request when the backend server 240 is blocked.

處理單元233透過第二接口232接收來自於後端伺服器240的運行狀態資訊。運行狀態資訊係為後端伺服器240的處理器負載(CPU loading)、記憶體使用量(memory utilization)、對話數量(session number)與網路回應時間(response time)。進一步而言,也可以在運行狀態資訊中加入心跳(heartbeat)的資訊,使得處理單元233可以偵測後端伺服器240是否存活。處理單元233可以根據運行狀態資訊判斷該台後端伺服器240是否處於忙碌狀態或是網路壅塞。The processing unit 233 receives the operating status information from the backend server 240 through the second interface 232. The operational status information is the processor load (CPU loading), memory utilization, session number, and response time of the backend server 240. Further, heartbeat information may also be added to the running status information, so that the processing unit 233 can detect whether the backend server 240 is alive. The processing unit 233 can determine, according to the running status information, whether the backend server 240 is in a busy state or a network congestion.

當後端伺服器240出現忙碌狀態或網路壅塞時,代表該台後端伺服器240出現有更多的客戶端210湧入。因此處理單元233根據運行狀態資訊判斷是否暫時停止分配對話要求至該台後端伺服器240。在本案中將暫時停止分配的動作定義為禁能(disable)。而相對禁能的是將暫停中的後端伺服器240解禁的動作定義為致能(enable)。When the backend server 240 is in a busy state or a network congestion, more clients 210 influx appear on the backend server 240. Therefore, the processing unit 233 determines whether to temporarily stop assigning the dialog request to the backend server 240 based on the running status information. In this case, the action of temporarily stopping the allocation is defined as disable. What is relatively disabled is that the action of unblocking the suspended backend server 240 is defined as enable.

當後端伺服器240被認定禁能時,負載控制器230會將所判定的後端伺服器240的資訊傳送給負載平衡管理器220。負載平衡管理器220將根據所接收的訊息開始停止將對話要求分配至該台後端伺服器240。若被禁能的後端伺服器240的運行狀態降低至可運作的條件時,處理單元233會重新向負載平衡管理器220發出 該台後端伺服器240的致能請求。負載平衡管理器220在接獲致能請求後,負載平衡管理器220才會重新的將對話要求分配至該台後端伺服器240。When the backend server 240 is deemed disabled, the load controller 230 transmits the determined information of the backend server 240 to the load balancing manager 220. The load balancing manager 220 will begin to stop assigning session requests to the backend server 240 based on the received message. If the operational state of the disabled backend server 240 is reduced to a working condition, the processing unit 233 will reissue the load balancing manager 220. The enable request of the backend server 240. After the load balancing manager 220 receives the enable request, the load balancing manager 220 will again reassign the dialog request to the backend server 240.

為完整說明本發明的運作過程還請配合第3圖與第4圖所示,其係為本發明之運作流程示意圖與時序圖。本發明的隊列處理方法包括以下步驟:步驟S310:負載控制器取得每一台後端伺服器的運行狀態;步驟S320:負載平衡管理器接收這些運行狀態與客戶端的對話要求;步驟S330:負載平衡管理器判斷對話要求中是否具有隊列識別資訊;步驟S340:若對話要求具有隊列識別資訊時,負載平衡管理器根據每後端伺服器的致能或禁能之狀態將對話要求分發至對應的後端伺服器;步驟S350:若對話要求不具有隊列識別資訊時,則將對話要求轉發至負載控制器;步驟S360:將隊列識別資訊加入對話要求後,負載控制器將對話要求回覆至客戶端;以及步驟S370:客戶端根據已加入隊列識別資訊的對話要求,儲存隊列識別資訊,並將此對話要求轉回給負載平衡管理器。In order to fully explain the operation process of the present invention, please also refer to FIG. 3 and FIG. 4, which are schematic diagrams and timing diagrams of the operational flow of the present invention. The queue processing method of the present invention includes the following steps: Step S310: The load controller obtains the running status of each back-end server; Step S320: The load balancing manager receives the dialog requirements of the running status and the client; Step S330: Load balancing The manager determines whether there is queue identification information in the dialog request; step S340: if the dialog request has queue identification information, the load balancing manager distributes the dialog request to the corresponding one according to the status of enabling or disabling of each backend server. End server; step S350: if the dialog request does not have queue identification information, then forward the dialog request to the load controller; step S360: after adding the queue identification information to the dialog request, the load controller replies the dialog request to the client; And step S370: the client stores the queue identification information according to the dialog request that has been added to the queue identification information, and returns the dialog request to the load balancing manager.

首先,負載平衡管理器220接收客戶端210的對話要求,負 載控制器230接收後端伺服器240的運行狀態資訊。而這兩步驟的處理順序並無一定限制,兩者可以同時並行,也可以依序的被執行(請參考第4A圖最上方之箭頭所示)。負載平衡管理器220在接收對話要求時,負載平衡管理器220會偵測對話要求中是否存在隊列識別資訊。由於客戶端210是第一次與負載平衡管理器220進行通訊,所以客戶端210的對話要求必然不存在隊列識別資訊。First, the load balancing manager 220 receives the dialog request of the client 210, negative The load controller 230 receives operational status information of the backend server 240. The processing order of these two steps is not limited, and the two can be executed in parallel or sequentially (refer to the arrow at the top of Figure 4A). When the load balancing manager 220 receives the dialog request, the load balancing manager 220 detects whether the queue identification information exists in the dialog request. Since the client 210 is communicating with the load balancing manager 220 for the first time, the dialog request of the client 210 necessarily does not have queue identification information.

當對話要求中不存在隊列識別資訊時,負載平衡管理器220會將對話要求轉發至負載控制器230。負載控制器230根據前述的時間戳記、網路位址、媒體存取控制位址或使用者資訊等資訊,產生隊列識別資訊。負載控制器230將所產生的隊列識別資訊加入對話要求中。負載控制器230將已處理的對話要求返回客戶端210(如第4A圖中所示)。客戶端210再根據已處理的對話要求轉回至負載平衡管理器220。負載平衡管理器220可根據後端伺服器240的壅塞狀況,判斷是否先將對話要求暫存於佇列單元221之中。When there is no queue identification information in the dialog request, the load balancing manager 220 forwards the dialog request to the load controller 230. The load controller 230 generates queue identification information based on the aforementioned time stamp, network address, media access control address, or user information. The load controller 230 adds the generated queue identification information to the dialog request. The load controller 230 returns the processed dialog request to the client 210 (as shown in Figure 4A). The client 210 then loops back to the load balancing manager 220 based on the processed dialog requirements. The load balancing manager 220 can determine whether to temporarily store the dialog request in the queue unit 221 according to the congestion status of the backend server 240.

負載控制器230會即時的取得後端伺服器240的運行狀態資訊。而取得的方式可以透過監測後端伺服器240或者在後端伺服器240安裝代理程序(agent)等方式所實現。舉例來說,後端伺服器240中若安裝代理程序時,代理程序可以定時的將處理器負載、記憶體使用量、對話數量與網路回應時間等運行狀態資訊回報給負載控制器230。The load controller 230 will immediately obtain the running status information of the backend server 240. The obtained method can be implemented by monitoring the backend server 240 or installing an agent on the backend server 240. For example, when the agent is installed in the backend server 240, the agent can periodically report the running status information such as the processor load, the memory usage, the number of conversations, and the network response time to the load controller 230.

當後端伺服器240的運行狀態資訊出現異常時,負載控制器230會將發生異常的後端伺服器240標示為禁能,並通知負載平衡管理器220哪幾台後端伺服器240是要被禁能。負載平衡管理器220在分配對話要求時,負載平衡管理器220將不會把對話要求分配至該些被禁能的後端伺服器240。When the running status information of the backend server 240 is abnormal, the load controller 230 will mark the abnormality of the backend server 240 as disabled, and notify the load balancing manager 220 which backend server 240 is to be Prohibited. When the load balancing manager 220 allocates the dialog request, the load balancing manager 220 will not assign the dialog request to the disabled backend servers 240.

此外,若是所有的後端伺服器240處於被禁能時,負載平衡管理器220會將這些對話要求依序的紀錄在佇列單元221中。可以避免客戶端210被分配到正在壅塞的後端伺服器240。若負載控制器230判斷有任一後端伺服器240可以致能時,負載控制器230會將可以被致能的訊息傳送給負載平衡管理器220。In addition, if all of the backend servers 240 are disabled, the load balancing manager 220 will sequentially record these dialog requests in the queue unit 221. It can be avoided that the client 210 is assigned to the backend server 240 that is being blocked. If the load controller 230 determines that any of the backend servers 240 can be enabled, the load controller 230 will transmit a message that can be enabled to the load balancing manager 220.

負載平衡管理器220會從佇列單元221依序的取出對話要求,並將所選的對話要求分配至可以運作的後端伺服器240。雖然客戶端210會維持在等待的狀態,但當部分的後端伺服器240致能後就可以再次對客戶端210提供相應的網路服務,藉以確保所有客戶端210均能使用到網路服務。The load balancing manager 220 will sequentially fetch the dialog request from the queue unit 221 and assign the selected dialog request to the backend server 240 that is operational. Although the client 210 will remain in the waiting state, when the part of the backend server 240 is enabled, the client 210 can be provided with the corresponding network service again, thereby ensuring that all the clients 210 can use the network service. .

而客戶端210在等待網路服務的過程中,負載平衡管理器220可以定時的向客戶端210發出提示訊號。舉例來說,負載平衡管理器220可以將目前排隊的預計完成時間傳送給客戶端210。客戶端210的顯示畫面上將會顯示將會於多久時間後取得該項網路服務。或者,負載控制器230可以將預計完成時間寫入小型文件檔中,並將其一併的傳送給客戶端210,以提示客戶端210大概需等待的時間。While the client 210 is waiting for the network service, the load balancing manager 220 can periodically send a prompt signal to the client 210. For example, load balancing manager 220 can communicate the expected completion time of the current queuing to client 210. The display of the client 210 will display how long it will take to obtain the network service. Alternatively, the load controller 230 can write the expected completion time to the small file file and send it to the client 210 together to prompt the client 210 for a predetermined time.

下文係為舉例的示意說明,並非僅局限此一數量。還請參考第5A~5D圖所示,其係為本發明之隊列處理之示意圖。在第5A圖中具有客戶端A511、客戶端B512及客戶端C513與第一後端伺服器551、第二後端伺服器552、第三後端伺服器553及第四後端伺服器554。假設依照下述順序發出對話要求:客戶端A511向負載平衡管理器530發出對話要求a521,客戶端B512向負載平衡管理器530發出對話要求b522,客戶端C513向負載平衡管理器530發出對話要求c523,如第5A圖所示。並且此時的佇列單元531並無記錄任何對話記錄。The following is a schematic illustration of an example, and is not limited to this number. Please also refer to the 5A-5D diagram, which is a schematic diagram of the queue processing of the present invention. In FIG. 5A, there are a client A 511, a client B 512 and a client C 513 and a first backend server 551, a second backend server 552, a third backend server 553, and a fourth backend server 554. It is assumed that a dialog request is issued in the following order: client A 511 issues a dialog request a 521 to load balancing manager 530, client B 512 issues a dialog request b 522 to load balancing manager 530, and client C 513 issues a dialog request to load balancing manager 530 c523 As shown in Figure 5A. And the queue unit 531 at this time does not record any conversation record.

由於這些對話要求a521、b522、c523是第一次發出,所以對話要求a521、b522、c523中並無隊列識別資訊。所以負載平衡管理器530會將對話要求轉發a521、b522、c523至負載控制器540。負載控制器540將根據所接收的順序把相應的隊列識別資訊加入對話要求中a521、b522、c523,並將已處理後的對話要求返回客戶端A511、B512及C513,客戶端儲存隊列識別資訊後,將該帶有隊列識別資訊的對話要求轉回到負載平衡管理器530。負載平衡管理器530再根據隊列識別資訊的順序記錄於佇列單元531中,請參考第5B圖所示。Since these dialogs require that a521, b522, and c523 are issued for the first time, there is no queue identification information in the dialog requests a521, b522, and c523. Therefore, the load balancing manager 530 forwards the dialog request to a521, b522, c523 to the load controller 540. The load controller 540 will add the corresponding queue identification information to the dialog request a521, b522, c523 according to the received order, and return the processed dialog request to the clients A511, B512 and C513, after the client stores the queue identification information. The conversation request with queue identification information is transferred back to the load balancing manager 530. The load balancing manager 530 is further recorded in the queue unit 531 according to the order of the queue identification information, as shown in FIG. 5B.

而負載控制器540接收來自於第一後端伺服器551的運行狀態資訊α、第二後端伺服器552的運行狀態資訊β、第三後端伺服器553的運行狀態資訊γ與第四後端伺服器554的運行狀態資訊δ。並請參考下表1所示,其係為運行狀態資訊所載之內容。The load controller 540 receives the running status information α from the first backend server 551, the running status information β of the second backend server 552, the running status information γ of the third backend server 553, and the fourth back. The running status information δ of the end server 554. Please refer to Table 1 below for the contents of the operational status information.

從表1中可知,第二後端伺服器552的處理器負載已經超過警戒條件(請參考1表中粗黑字體),而第四後端伺服器554的處理器負載與回應時間均以超過警戒條件。因此第二後端伺服器552與第四後端伺服器554的運行狀態已經被負載控制器540認定需要被禁能。所以負載控制器540會將第二後端伺服器552與第四後端伺服器554列為禁能,並將被禁能的後端伺服器通知負載平衡管理器530。請參考第5B圖所示,在第5B圖中係將被禁能的第二後端伺服器552與第四後端伺服器554係以「X」作為表示。As can be seen from Table 1, the processor load of the second backend server 552 has exceeded the alert condition (please refer to the bold black font in Table 1), and the processor load and response time of the fourth backend server 554 are both exceeded. Warning conditions. Therefore, the operational status of the second backend server 552 and the fourth backend server 554 has been determined by the load controller 540 to be disabled. Therefore, the load controller 540 will disable the second backend server 552 and the fourth backend server 554, and notify the load balancing manager 530 of the disabled backend server. Referring to FIG. 5B, in FIG. 5B, the disabled second backend server 552 and fourth backend server 554 are denoted by "X".

而第二後端伺服器552與第四後端伺服器554雖然處於禁能狀態下,但第二後端伺服器552與第四後端伺服器554仍會持續的發出運行狀態資訊。當第二後端伺服器552或第四後端伺服器554的負載一旦降低到警戒條件以下時,負載控制器540就會對該台後端伺服器進行致能。While the second backend server 552 and the fourth backend server 554 are in the disabled state, the second backend server 552 and the fourth backend server 554 continue to send the running status information. When the load of the second backend server 552 or the fourth backend server 554 is below the alert condition, the load controller 540 enables the backend server.

從新的運行狀態資訊中可以知道,第二後端伺服器552的負載已經不符合警戒條件。因此負載控制器540就會將第二後端伺服器552進行解禁,並通知負載平衡管理器530致能該第二後端伺服器552。於此同時,負載平衡管理器530會根據每一台後端伺服器551、552、553、554的運行狀態決定將對話要求分配至對應的後端伺服器。It can be known from the new running status information that the load of the second backend server 552 has not met the alert condition. Therefore, the load controller 540 will unblock the second backend server 552 and notify the load balancing manager 530 to enable the second backend server 552. At the same time, the load balancing manager 530 determines to allocate the dialog request to the corresponding backend server according to the operating state of each of the backend servers 551, 552, 553, 554.

從表2中可以得知,第一後端伺服器551的運行狀態是所有後端伺服器最輕的。所以負載平衡管理器530會將對話要求a521分配至第一後端伺服器551,請參考第5C圖所示。因此就會從佇列單元531中將對話要求a521移除。在第一後端伺服器551完成對話要求a521後,第一後端伺服器551會向客戶端A511回應服務的結果,請參考第5D圖所示。而其他還在佇列單元531中排隊的對話要求b522、c523也會依照運行狀態資訊進行後端伺服器的分配。一旦出現後端伺服器551、552、553、554的運行狀態資訊 超過警戒條件時,負載控制器540就會要求負載平衡管理器530禁能超過警戒條件的後端伺服器240。As can be seen from Table 2, the operational state of the first backend server 551 is the lightest of all backend servers. Therefore, the load balancing manager 530 will assign the dialog request a521 to the first backend server 551, as shown in FIG. 5C. Therefore, the dialog request a521 is removed from the queue unit 531. After the first backend server 551 completes the dialog request a521, the first backend server 551 will respond to the client A511 with the result of the service, please refer to FIG. 5D. The other dialog requests b522 and c523 that are also queued in the queue unit 531 also perform the assignment of the backend server according to the running status information. Once the running status information of the backend servers 551, 552, 553, 554 appears When the alert condition is exceeded, the load controller 540 will require the load balancing manager 530 to disable the backend server 240 that exceeds the alert condition.

除了上述實施態樣外,本發明提出另一種實施態樣的運作方式。由於客戶端210可能利用已經排隊過的對話要求再次重新插入正在排隊的佇列中。所以為實現客戶端210可以公平排隊的目的,在此一實施態樣中加入判斷是否有重複排隊的機制。當客戶端210已經排過隊且取得相應的網路服務後,負載平衡管理器220會要求客戶端210再次的排隊。在此一實施態樣中對於已經完成的對話要求會標記為廢棄。換句話說已完成的對話要求是無法再次提出網路服務。請參考第6圖所示,其係分別為本發明的另一實施態樣的運作示意圖。此一實施態樣包括以下步驟:步驟S610:負載控制器取得每一台後端伺服器的運行狀態;步驟S620:負載平衡管理器接收這些運行狀態與客戶端的對話要求;步驟S630:負載平衡管理器判斷對話要求是否已經廢棄,若對話要求已經廢棄,則執行步驟S680;步驟S640:若對話要求還未廢棄則負載平衡管理器判斷對話要求中是否具有隊列識別資訊;步驟S650:若對話要求中存在隊列識別資訊,則負載平衡管理器根據隊列識別資訊的順序從佇列單元中取出對話要求,並根據運行狀態將對話要求分發至對應的後端伺服器; 步驟S660:後端伺服器完成服務後將該筆對話要求註記廢棄,並通知負載控制器;步驟S670:負載控制器發送廢止指令到客戶端或負載平衡管理器以清除該筆對話要求之隊列識別資訊;步驟S680:若對話要求中不存在隊列識別資訊,將對話要求轉發至負載控制器;步驟S690:將隊列識別資訊加入對話要求後,回覆對話要求至負載客戶端;以及步驟S710:客戶端根據已加入隊列識別資訊的對話要求,儲存隊列識別資訊,並將此對話要求轉回給負載平衡管理器。In addition to the above-described embodiments, the present invention proposes another mode of operation. Since client 210 may utilize the conversations that have been queued, it is required to re-insert the queue that is being queued again. Therefore, in order to achieve the purpose that the client 210 can be queuing fairly, a mechanism for judging whether there is repeated queuing is added in this embodiment. After the client 210 has queued up and obtained the corresponding network service, the load balancing manager 220 will ask the client 210 to queue again. In this embodiment, the dialog requirements that have been completed are marked as obsolete. In other words, the completed dialogue requirement is that the network service cannot be proposed again. Please refer to FIG. 6, which is a schematic diagram of the operation of another embodiment of the present invention. The implementation aspect includes the following steps: Step S610: the load controller obtains the running status of each back-end server; Step S620: The load balancing manager receives the dialogue request of the running status and the client; Step S630: Load balancing management The device determines whether the dialog request has been discarded. If the dialog request has been discarded, step S680 is performed; step S640: if the dialog request has not been discarded, the load balancing manager determines whether the dialog request has queue identification information; step S650: if the dialog request is If there is queue identification information, the load balancing manager extracts the dialog request from the queue unit according to the order of the queue identification information, and distributes the dialog request to the corresponding backend server according to the running status; Step S660: the backend server discards the note request note after completing the service, and notifies the load controller; step S670: the load controller sends the abolition command to the client or the load balance manager to clear the queue identification of the pen session request Information; step S680: if there is no queue identification information in the dialog request, forwarding the dialog request to the load controller; step S690: adding the queue identification information to the dialog request, replying the dialog request to the load client; and step S710: the client The queue identification information is stored according to the dialog request that has been added to the queue identification information, and the conversation request is transferred back to the load balancing manager.

首先,負載控制器230取得每一台後端伺服器240的運行狀態。而負載平衡管理器220接收這些運行狀態與客戶端210的對話要求。接著,負載平衡管理器220會偵測對話要求是否已經被廢棄。若是該筆對話要求是已經被廢棄,則代表客戶端210可能是拿之前的對話要求再次進行排隊。因此負載平衡管理器220會將此一對話要求轉發至負載控制器230,使該筆對話要求進行取得新的隊列識別資訊的處理。First, the load controller 230 obtains the operational status of each of the backend servers 240. The load balancing manager 220 receives the dialog requirements of these operational states with the client 210. Next, the load balancing manager 220 will detect if the dialog request has been discarded. If the conversation request has been discarded, then on behalf of the client 210 may be queuing again with the previous conversation request. Therefore, the load balancing manager 220 will forward this dialog request to the load controller 230, causing the pen session to request processing for obtaining new queue identification information.

若是對話要求並未廢棄,則表示客戶端210可能進行重整(reload)的動作。一般而言,瀏覽器頁面的重整過程中不會斷開對話要求。因此客戶端210還是會以現有的對話要求向負載平衡管理器220提出服務。當客戶端210的對話要求已經由後端伺服 器240完成網路服務後,後端伺服器240將輸出結果返回客戶端210,並通知負載控制器230將該筆對話要求註記為廢棄。負載控制器230可以發送廢止指令到客戶端210(如第4A圖中所示),令客戶端210清除該筆對話要求之隊列識別資訊,以達到在客戶端210廢棄該筆對話要求之目的;負載控制器230也可以發送廢止指令到負載平衡管理器220(如第4B圖中所示),令負載平衡管理器220將該筆對話要求註記為廢棄,其優點是在負載平衡管理器220設上防線,不讓那些已完成服務的對話要求有被用來再次進行排隊的機會,以避免服務不公。If the dialog request is not discarded, it indicates that the client 210 may perform a reloading action. In general, the dialog requirements are not broken during the reorganization of the browser page. Therefore, the client 210 will still present the service to the load balancing manager 220 with the existing dialog requirements. When the client 210's dialog request has been made by the backend servo After the server 240 completes the network service, the backend server 240 returns the output to the client 210 and notifies the load controller 230 to note the pen dialog request as obsolete. The load controller 230 can send an abort command to the client 210 (as shown in FIG. 4A), causing the client 210 to clear the queue identification information requested by the pen session to achieve the purpose of discarding the pen session request at the client 210; The load controller 230 can also send an abort command to the load balancing manager 220 (as shown in FIG. 4B), causing the load balancing manager 220 to note the pen dialog request as obsolete, which has the advantage of being set in the load balancing manager 220. On the line of defense, the dialogue that has completed the service is not required to be used to queue again to avoid unfair service.

除了上述情況會廢棄對話要求,在另一種情況時也會廢棄對話要求。當客戶端210的對話要求已經由後端伺服器240完成網路服務後,後端伺服器240無法將輸出結果返回客戶端210。為避免浪費後端伺服器240的運作資源。若後端伺服器240經過預定時間時未接獲客戶端210的回應,後端伺服器240會回應給負載控制器230,負載控制器230也會將該筆對話要求廢棄。In addition to the above, the dialogue request will be discarded, and in another case the conversation request will be discarded. After the client 210's dialog request has been completed by the backend server 240, the backend server 240 is unable to return the output to the client 210. To avoid wasting the operational resources of the backend server 240. If the backend server 240 does not receive a response from the client 210 after a predetermined time has elapsed, the backend server 240 will respond to the load controller 230, and the load controller 230 will also discard the pen session request.

本發明所提出的網路服務的隊列處理系統、裝置與方法使得客戶端在隊列時後端的服務器可以確保隊列順序的公平性。The queue processing system, apparatus and method for the network service proposed by the present invention enable the server at the back end of the client to ensure the fairness of the queue order when the client is in the queue.

雖然本發明以前述之較佳實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。While the present invention has been described above in terms of the preferred embodiments thereof, it is not intended to limit the invention, and the invention may be modified and modified without departing from the spirit and scope of the invention. The patent protection scope of the invention is subject to the definition of the scope of the patent application attached to the specification.

110‧‧‧客戶端110‧‧‧Client

120‧‧‧負載平衡管理器120‧‧‧Load Balancing Manager

130‧‧‧後端伺服器130‧‧‧Backend server

210‧‧‧客戶端210‧‧‧ Client

220‧‧‧負載平衡管理器220‧‧‧Load Balancing Manager

221‧‧‧佇列單元221‧‧‧ 伫 单元 unit

230‧‧‧負載控制器230‧‧‧Load controller

231‧‧‧第一接口231‧‧‧ first interface

232‧‧‧第二接口232‧‧‧second interface

233‧‧‧處理單元233‧‧‧Processing unit

240‧‧‧後端伺服器240‧‧‧Backend server

511‧‧‧客戶端A511‧‧‧Client A

512‧‧‧客戶端B512‧‧‧Client B

513‧‧‧客戶端C513‧‧‧Client C

521‧‧‧對話要求a521‧‧‧Dialogue request a

522‧‧‧對話要求b522‧‧‧Dialogue request b

523‧‧‧對話要求c523‧‧‧Dialogue request c

530‧‧‧負載平衡管理器530‧‧‧Load Balancing Manager

531‧‧‧佇列單元531‧‧‧ 伫 单元 unit

540‧‧‧負載控制器540‧‧‧Load controller

551‧‧‧第一後端伺服器551‧‧‧First backend server

552‧‧‧第二後端伺服器552‧‧‧Second backend server

553‧‧‧第三後端伺服器553‧‧‧ third backend server

553‧‧‧第四後端伺服器553‧‧‧ fourth backend server

第1圖係為習知技術的網路服務之架構示意圖。Figure 1 is a schematic diagram of the architecture of a network service of the prior art.

第2A圖係為本發明之網路連接架構示意圖。Figure 2A is a schematic diagram of the network connection architecture of the present invention.

第2B圖係為本發明之負載控制器之架構示意圖。Figure 2B is a schematic diagram of the architecture of the load controller of the present invention.

第3圖係為本發明之運作流程示意圖。Figure 3 is a schematic diagram of the operational flow of the present invention.

第4A圖係為本發明之運作時序圖。Figure 4A is a timing diagram of the operation of the present invention.

第4B圖係為本發明之另一實施態樣的運作時序圖。Figure 4B is an operational timing diagram of another embodiment of the present invention.

第5A圖係為本發明之隊列處理之示意圖。Figure 5A is a schematic diagram of the queue processing of the present invention.

第5B圖係為本發明之隊列處理之示意圖。Figure 5B is a schematic diagram of the queue processing of the present invention.

第5C圖係為本發明之隊列處理之示意圖。Figure 5C is a schematic diagram of the queue processing of the present invention.

第5D圖係為本發明之隊列處理之示意圖。Figure 5D is a schematic diagram of the queue processing of the present invention.

第6圖係為本發明的另一實施態樣之運作示意圖。Figure 6 is a schematic view of the operation of another embodiment of the present invention.

Claims (10)

一種網路服務的隊列處理系統,應用於多個客戶端在等待網路服務的一輸出結果,該隊列處理系統包括:至少一後端伺服器,該後端伺服器對該客戶端所發出的一對話要求進行相應的網路服務,並回應處理後的該輸出結果;一負載平衡管理器,其係連接於該些客戶端與該些後端伺服器,該負載平衡管理器接收每一該客戶端的該對話要求並分配該對話要求至該後端伺服器;以及一負載控制器,其係連接於該負載平衡管理器與該些後端伺服器,該負載控制器取得該些後端伺服器的一運行狀態資訊;其中,該負載平衡管理器偵測到該對話要求中存在一隊列識別資訊時,其中該隊列識別資訊為一唯一識別資訊,則該負載控制器根據該些運行狀態資訊選擇相應的該後端伺服器,該負載平衡管理器將該對話要求傳送至所選擇的該後端伺服器,若該對話要求中不存在該隊列識別資訊時,該負載平衡管理器將所接收的該對話要求轉發至該負載控制器,該負載控制器將該隊列識別資訊加入該對話要求中再將該隊列識別資訊回覆至該客戶端,該客戶端儲存該隊列識別資訊後,將具有該隊列識別資訊的該對話要求轉回該負載平衡管理器,由該負載平衡管理器將該對話要求加入一佇列單元中,使該對話要求於該佇列單元中等待分配至該後端伺服器。 A queue processing system for a network service is applied to an output of a plurality of clients waiting for a network service, the queue processing system comprising: at least one backend server, the backend server sending the client A dialog requires a corresponding network service and responds to the processed output result; a load balancing manager is coupled to the client and the backend servers, and the load balancing manager receives each of the The session of the client requests and allocates the dialog request to the backend server; and a load controller is connected to the load balancing manager and the backend servers, and the load controller obtains the backend servos An operation status information of the device; wherein, when the load balancing manager detects that there is a queue identification information in the dialog request, wherein the queue identification information is a unique identification information, the load controller according to the operation status information Selecting the corresponding backend server, the load balancing manager transmitting the dialog request to the selected backend server, if the dialog request is not When the queue identifies the information, the load balancing manager forwards the received dialog request to the load controller, and the load controller adds the queue identification information to the dialog request and then returns the queue identification information to the client. End, after the client stores the queue identification information, the conversation request with the queue identification information is transferred back to the load balancing manager, and the load balancing manager adds the dialog request to a queue unit to make the conversation It is required to wait in the queue unit for allocation to the backend server. 如請求項1所述之網路服務的隊列處理系統,其中該隊列識別資訊係根據時間戳記、網路位址、媒體存取控制位址或使用者資訊所決定,該隊列識別資訊係為小型文字檔(cookies),該運行狀態資訊包括處理器負載、記憶體使用量、對話數量與網路回應時間。 The queue processing system of the network service according to claim 1, wherein the queue identification information is determined according to a time stamp, a network address, a media access control address, or user information, and the queue identification information is small. The text file (cookies), the running status information includes processor load, memory usage, number of conversations and network response time. 如請求項2所述之網路服務的隊列處理系統,其中該負載控制器根據該運行狀態資訊禁能(disable)該後端伺服器,並通知該負載平衡管理器該些被禁能的後端伺服器,而該負載控制器根據運行狀態資訊將禁能的該些後端伺服器進行致能(enable),並通知該負載平衡管理器該些被致能的後端伺服器。 The queue processing system of the network service of claim 2, wherein the load controller disables the backend server according to the running status information, and notifies the load balancing manager of the disabled The server is enabled, and the load controller enables the disabled backend servers according to the running status information, and notifies the load balancing manager of the enabled backend servers. 如請求項1所述之網路服務的隊列處理系統,其中該後端伺服器完成該對話要求後通知該負載控制器,該負載控制器廢棄本次的該對話要求。 The queue processing system of the network service as claimed in claim 1, wherein the backend server notifies the load controller after completing the dialog request, and the load controller discards the current dialog request. 如請求項4所述之網路服務的隊列處理系統,其中該負載平衡管理器判斷該對話要求是否已經廢棄,若該對話要求已經廢棄,則將該對話要求轉至該負載控制器,進行取得新的該隊列識別資訊。 The queue processing system of the network service according to claim 4, wherein the load balancing manager determines whether the dialog request has been discarded, and if the dialog request has been discarded, transferring the dialog request to the load controller to obtain The new queue identifies the information. 一種網路服務的隊列處理裝置,其係包括:一第一接口,其係接收一客戶端的一對話要求;一第二接口,其係接收每一後端伺服器的一運行狀態資訊;以及 一處理單元,連接於該第一接口與該第二接口,該處理單元將一隊列識別資訊加入該對話要求,該處理單元將該對話要求傳送至相應的該客戶端,該處理單元根據所接收的該運行狀態資訊決定每一該後端伺服器的是否被致能或禁能,該處理單元將該些後端伺服器的致能或禁能狀態傳送給一負載平衡管理器;其中,該隊列識別資訊為一唯一識別資訊。 A queue processing device for a network service, comprising: a first interface, which receives a dialog request of a client; and a second interface, which receives an operation status information of each backend server; a processing unit, coupled to the first interface and the second interface, the processing unit adds a queue identification information to the dialog request, the processing unit transmits the dialog request to the corresponding client, and the processing unit receives the The running status information determines whether each of the backend servers is enabled or disabled, and the processing unit transmits the enabling or disabling status of the backend servers to a load balancing manager; wherein The queue identification information is a unique identification information. 如請求項6所述之網路服務的隊列處理裝置,其中該處理單元根據該運行狀態資訊將被禁能的該些後端伺服器進行致能,使得致能後的該後端伺服器可被分配該對話要求。 The queue processing device of the network service of claim 6, wherein the processing unit enables the disabled backend servers according to the running status information, so that the enabled backend server can be The conversation request is assigned. 一種網路服務的隊列處理方法,其係包括以下步驟:由一負載控制器根據每一後端伺服器的一運行狀態,並根據該運行狀態決定每一該後端伺服器是否被致能或禁能;通知一負載平衡管理器每一該後端伺服器的致能或禁能之狀態;由該負載平衡管理器接收一客戶端的一對話要求;該負載平衡管理器判斷該對話要求中是否具有一隊列識別資訊,且該隊列識別資訊為一唯一識別資訊;若該對話要求具有該隊列識別資訊時,該負載平衡管理器根據該隊列識別資訊的順序取出相應的該客戶端之該對話要求,並根據該運行狀態資訊將該對話要求分發至對應的該後端伺服器; 若該對話要求不具有該隊列識別資訊時,則將該對話要求轉發至該負載控制器;以及將該隊列識別資訊加入該對話要求後,回覆該對話要求至該客戶端。 A method for processing a queue of a network service includes the following steps: determining, by a load controller, whether each of the backend servers is enabled according to an operating state of each backend server and according to the running state Disabling; notifying a load balancing manager of each enabled or disabled state of the backend server; receiving, by the load balancing manager, a dialog request of a client; the load balancing manager determining whether the dialog request is Having a queue identification information, and the queue identification information is a unique identification information; if the conversation request has the queue identification information, the load balancing manager extracts the corresponding conversation request of the client according to the queue identification information And distributing the dialog request to the corresponding backend server according to the running status information; If the dialog request does not have the queue identification information, the dialog request is forwarded to the load controller; and after the queue identification information is added to the dialog request, the dialog request is replied to the client. 如請求項8所述之網路服務的隊列處理方法,其中該客戶端接收已加入該隊列識別資訊的該對話要求後,該客戶端根據已加入該隊列識別資訊的該對話要求,向該負載平衡管理器進行連線。 The queue processing method of the network service according to claim 8, wherein after the client receives the dialog request that has joined the queue identification information, the client sends the load to the load according to the dialog request that has joined the queue identification information. The balance manager is connected. 如請求項9所述之網路服務的隊列處理方法,其中該後端伺服器完成該對話要求後,由該負載控制器廢棄此一該對話要求。 The method for processing a network service according to claim 9, wherein the backend server discards the dialog request after the session request is completed.
TW101129628A 2012-08-15 2012-08-15 The queuing system, the device and the method for the network service TWI506980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101129628A TWI506980B (en) 2012-08-15 2012-08-15 The queuing system, the device and the method for the network service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101129628A TWI506980B (en) 2012-08-15 2012-08-15 The queuing system, the device and the method for the network service

Publications (2)

Publication Number Publication Date
TW201408001A TW201408001A (en) 2014-02-16
TWI506980B true TWI506980B (en) 2015-11-01

Family

ID=50550644

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101129628A TWI506980B (en) 2012-08-15 2012-08-15 The queuing system, the device and the method for the network service

Country Status (1)

Country Link
TW (1) TWI506980B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI673613B (en) * 2018-10-17 2019-10-01 財團法人工業技術研究院 A server and a resource adjustment control method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW494357B (en) * 1998-02-04 2002-07-11 Ibm Apparatus and method for scheduling and dispatching queued client requests within a server in a client/server computer system
TW576061B (en) * 2001-08-13 2004-02-11 Via Tech Inc Device and method for load balancing of packet switching

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW494357B (en) * 1998-02-04 2002-07-11 Ibm Apparatus and method for scheduling and dispatching queued client requests within a server in a client/server computer system
TW576061B (en) * 2001-08-13 2004-02-11 Via Tech Inc Device and method for load balancing of packet switching

Also Published As

Publication number Publication date
TW201408001A (en) 2014-02-16

Similar Documents

Publication Publication Date Title
CN110365752B (en) Service data processing method and device, electronic equipment and storage medium
US8966487B1 (en) Application transaction wait time dynamic adjustment
JP6480642B2 (en) Stochastic bandwidth adjustment
WO2014194869A1 (en) Request processing method, device and system
US20140082244A1 (en) Enhanced I/O Performance in a Multi-Processor System Via Interrupt Affinity Schemes
US20060161920A1 (en) Method, system, and computer program for managing a queuing system
US7975090B2 (en) Method for efficient I/O controller processor interconnect coupling supporting push-pull DMA read operations
EP2755363A1 (en) Data-fast-distribution method and device
CN108933829A (en) A kind of load-balancing method and device
US11979336B1 (en) Quota-based resource scheduling
TWI484346B (en) Network adaptor optimization and interrupt reduction
US20230069240A1 (en) Dynamic cloning of application infrastructures
CN103164266A (en) Dynamic resource allocation for transaction requests issued by initiator to recipient devices
US7506074B2 (en) Method, system, and program for processing a packet to transmit on a network in a host system including a plurality of network adaptors having multiple ports
WO2014183417A1 (en) Method, device, and system for memory management
US10491706B2 (en) Method and system for processing service request messages based on queuing information
WO2020233364A1 (en) Resource processing platform confirmation method and apparatus, and electronic device and medium
JP2011203810A (en) Server, computer system, and virtual computer management method
JP5803418B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
TWI506980B (en) The queuing system, the device and the method for the network service
CN117370046A (en) Inter-process communication method, system, device and storage medium
EP3420452B1 (en) Interconnected hardware infrastructure resource control
JP5218548B2 (en) Job allocation apparatus, control program and control method for job allocation apparatus
US20110202592A1 (en) Use of Multiple Connections to Extend RADIUS Identifier Space
JP2013206041A (en) Communication system and load distribution processing apparatus