WO2017166713A1 - Service request processing method and device - Google Patents

Service request processing method and device Download PDF

Info

Publication number
WO2017166713A1
WO2017166713A1 PCT/CN2016/097904 CN2016097904W WO2017166713A1 WO 2017166713 A1 WO2017166713 A1 WO 2017166713A1 CN 2016097904 W CN2016097904 W CN 2016097904W WO 2017166713 A1 WO2017166713 A1 WO 2017166713A1
Authority
WO
WIPO (PCT)
Prior art keywords
service request
server
preset time
time period
sending
Prior art date
Application number
PCT/CN2016/097904
Other languages
French (fr)
Chinese (zh)
Inventor
尚彬
田卓
Original Assignee
乐视控股(北京)有限公司
乐视体育文化产业发展(北京)有限公司
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 乐视控股(北京)有限公司, 乐视体育文化产业发展(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2017166713A1 publication Critical patent/WO2017166713A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Definitions

  • the embodiments of the present application relate to the field of information technology, for example, to a service request processing method and apparatus.
  • the client when the client receives the sending instruction corresponding to the service request, the client immediately sends the service request to the server.
  • the server will receive a large number of service requests sent by the client at the same time for a period of time. For example, for a popular video, a large number of users may be praised. Excessive processing of these received service requests by the server can cause the server to be overloaded, resulting in a system crash.
  • the present application provides a service request processing method and apparatus for solving the problem that the related system may cause the server to be overloaded and cause a system crash.
  • the embodiment of the present application provides a service request processing method, including:
  • the service request is subjected to corresponding statistical processing to obtain a processing result
  • the embodiment of the present application provides a service request processing apparatus, including:
  • the triggering unit is configured to trigger a startup time monitoring when receiving a sending instruction corresponding to the service request;
  • the processing unit is configured to perform corresponding statistical processing on the service request to obtain a processing result when receiving a sending instruction corresponding to the service request in a preset time period starting from a triggering time;
  • a sending unit configured to send a service request to the server after the preset time period, where the service request carries a last processing result in the preset time period, so that the server is configured according to the The final processing result is statistically processed.
  • the embodiment of the present application further provides an electronic device, including:
  • At least one processor and,
  • the memory stores instructions executable by the one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the service request processing of any of the embodiments of the present application method.
  • the embodiment of the present application further provides a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores computer instructions for causing the computer to perform any of the embodiments of the present application.
  • a service request processing method is provided.
  • the embodiment of the present application further provides a computer program product, wherein the computer program product comprises a calculation program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instruction is used by a computer When executed, the computer is caused to execute the service request processing method of any of the embodiments of the present application.
  • the computer program product comprises a calculation program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instruction is used by a computer When executed, the computer is caused to execute the service request processing method of any of the embodiments of the present application.
  • the method and device for processing a service request triggers startup time monitoring when receiving a sending instruction corresponding to the service request; and receives a service request every time within a preset time period starting from the triggering time Correspondingly sending a command, performing corresponding statistical processing on the service request, and obtaining a processing result; after the preset time period, sending a service request to the server, where the service request carries the The final processing result in the time period is set such that the server performs statistical processing according to the last processing result.
  • the method of transmitting the service request to the server immediately after receiving the sending instruction corresponding to the service request the application receives multiple service request points within a preset time period.
  • the service requests are not immediately sent.
  • the corresponding service requests are processed locally to obtain the processing result.
  • a service request is sent to the server, and the service request is carried in the service request.
  • There is a final processing result in the preset time period so that the server performs statistical processing according to the last processing result, which can reduce the number of concurrent sending service requests in a period of time, thereby reducing the service request received by the server for a period of time.
  • the number so that the server does not stop processing a large number of service requests at the same time, reducing the server's overload due to overload, resulting in a system crash.
  • FIG. 1 is a schematic flowchart of a service request processing method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of another service request processing method according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a service request processing apparatus according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another service request processing apparatus according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an entity of a service request processing apparatus according to an embodiment of the present disclosure.
  • the embodiment of the present application provides a service request processing method. As shown in FIG. 1 , the method includes:
  • the triggering starts timing, and as the starting time of the preset time period, the duration of the preset time period may be configured according to actual requirements, for example, preset
  • the duration of the time period can be configured to be 2 seconds, 3 seconds, and the like.
  • the user can input a send command by tapping the send button of the service request.
  • the service request is a request to send the user's chat information
  • the corresponding send button can be a chat.
  • the send button of the day information when the user touches the send button, the machine side receives the corresponding send command.
  • chat room window on the local display page, which is used to display real-time chat information of different users in the chat room.
  • an input window and a send button of the chat information are also configured locally.
  • the user After the user inputs the chat information, the user sends the chat message to the chat room by touching the send button.
  • the service request for sending the chat information to the chat room when receiving the transmission instruction corresponding to the service request, the timing is started and is the start time of the preset time period, and the preset time period is 5 seconds, and the time starts. Within 5 seconds, whenever the sending instruction corresponding to the service request is received, the corresponding statistical processing is performed on the service request, that is, the corresponding chat information of the service request is added in the local chat room window.
  • the service request carries a last processing result in the preset time period, so that the server performs statistical processing according to the last processing result.
  • the duration of the preset time period is 10 seconds.
  • the service request for sending the chat information to the chat room is received, when the sending instruction corresponding to the service request is received, the timing is triggered, and the receiving is sequentially received within 10 seconds from the start of the time.
  • the sending command corresponding to the five service requests is reached, the corresponding chat information is sequentially added in the local chat room window, and the last processing result in the 10 seconds is to add 5 chats in the chat room window.
  • the server sends a service request to the server, and the service request carries the five pieces of chat information, so that the server distributes the five pieces of chat information to each client, so that other users can view the five pieces. Chat information.
  • the service request processing method provided by the embodiment of the present application triggers the startup time monitoring when receiving the sending instruction corresponding to the service request; and the corresponding time corresponding to the service request is received within the preset time period starting from the triggering time
  • the service request is subjected to corresponding statistical processing to obtain a processing result; after the preset time period, a service request is sent to the server, where the service request carries the preset time The last processing result in the segment, so that the server performs statistical processing according to the last processing result.
  • the present application does not receive the corresponding sending request after receiving the multiple service requests within the preset time period.
  • service requests are sent immediately, and the service requests are processed locally to obtain the processing results.
  • a service request is sent to the server, and the service request is carried.
  • the number of concurrent sending service requests can be reduced in a period of time, thereby reducing the service received by the server for a period of time.
  • the number of requests so that the server does not stop processing a large number of service requests at the same time for a period of time, which reduces the situation in which the server crashes due to excessive load.
  • An embodiment of the present application provides another service request processing method. As shown in FIG. 2, the method includes:
  • the user can input a send command by tapping the send button of the service request.
  • the service request is a user's request for a network video
  • the corresponding send button may be a click icon button.
  • the machine side receives a corresponding send command.
  • the triggering starts timing, and as the starting time of the preset time period, optionally, the load status information obtaining request may also be sent to the server, so as to enable the Returning, according to the obtaining request, the load status information corresponding to the server, where the load status information includes a load status status of the server; receiving the load status information sent by the server; and according to the load status Information, configuring the duration of the preset time period.
  • the duration of the preset time period corresponding to the different load state information may be saved locally, and the duration of the preset time period corresponding to the load state information may be automatically configured according to the received load state information of the server. For example, if it is determined that the current server load pressure is small according to the received load state information of the server, the duration of the preset time period may be configured to be shorter; otherwise, if the current server is determined according to the received server load status information, The load pressure is large, and the duration of the preset time period can be configured to be longer.
  • the step of sending the load status information acquisition request to the server includes: sending the load status information acquisition request to the server according to the preset time interval, so that the server according to the obtaining request, according to the preset time interval Returns the load status information corresponding to the server.
  • the preset time interval may be configured according to actual requirements.
  • the preset time interval may be configured to be 20 minutes, 30 minutes, or the like.
  • the latest server load status information can be obtained, and the preset time period corresponding thereto can be determined according to the latest server load status information.
  • the length of time can be more precise Control the monitoring time to get the best service request processing effect.
  • the point number of a video on the local display page which is the total number of users who like this video.
  • the point number is also equipped with a little like icon button. The user clicks on this point.
  • the icon button like this video.
  • the timing starts and is used as the starting time of the preset time period, and the preset time period is 2 seconds, whenever the service is received.
  • the corresponding statistical processing is performed on the service request, that is, the number of points of the local video is cumulatively increased by one.
  • a service request is sent to the server after a preset period of time.
  • the service request carries the last processing result in the preset time period, optionally, so that the server performs statistical processing according to the last processing result.
  • the preset time period is 2 seconds.
  • the timing is triggered, and 10 seconds are received in sequence within 2 seconds from the start of the timing.
  • the corresponding command of the service request sends the number of points of the local video one by one, and the last processing result in the two seconds is that the number of points of the local video is increased by 10, and after 2 seconds, the server sends the number of points to the server.
  • a service request which is used to request that the number of points of the video is increased by 10, so that the server performs statistical processing, and when the service request is sent, the count of the place number is cleared, and the number of points is restarted. count.
  • S240 it is detected whether or not a transmission instruction of the service request is received within a preset time period starting from the time when the service request is transmitted.
  • the duration of the preset time period may be configured according to actual requirements, and is not limited in the embodiment of the present application.
  • the duration of the preset time period may be configured as 5 seconds, 6 seconds, and the like.
  • the stop time monitoring is triggered. Release the corresponding monitor program memory.
  • the method further includes: receiving a processing result corresponding to the service request sent by the server, and updating the local processing result.
  • the processing result returned by the server is received, that is, according to the received number of points sent by different clients, the time obtained by the statistical processing is obtained.
  • the current local point number is updated and replaced, so that the user can understand the behavior of other users to praise, and then can determine the viewer's favorite degree of the video.
  • Another service request processing method provided by the embodiment of the present application triggers startup time monitoring when receiving a sending instruction corresponding to the service request; and correspondingly receives a service request in a preset time period starting from a triggering time
  • the service request is subjected to corresponding statistical processing to obtain a processing result; after the preset time period, a service request is sent to the server, where the service request carries the preset in the service request The last processing result in the time period, so that the server performs statistical processing according to the last processing result.
  • the present application does not receive the corresponding sending request after receiving the multiple service requests within the preset time period.
  • service requests are sent immediately, and the corresponding service requests are processed locally to obtain the processing result.
  • a service request is sent to the server, and the service request carries the last time in the preset time period.
  • the processing result so that the server performs statistical processing according to the last processing result, which can reduce the number of concurrent sending service requests in a period of time, thereby reducing the number of service requests received by the server in a period of time, so as to avoid the server for a period of time.
  • a large number of service requests are processed at the same time, which reduces the server crash due to excessive load.
  • the embodiment of the present application provides a service request processing apparatus.
  • the apparatus includes: a trigger unit 31, a processing unit 32, and a sending unit 33.
  • the trigger unit 31 may be configured to trigger start time monitoring when receiving a sending instruction corresponding to the service request.
  • the triggering unit 31 is a main function module for triggering a timer operation in the device, wherein the timer is configured to monitor a sending instruction corresponding to the received service request within a preset time period starting from the triggering time.
  • the processing unit 32 may be configured to perform corresponding statistical processing on the service request whenever a sending instruction corresponding to the service request is received within a preset time period starting from a triggering time. The result of the processing is obtained.
  • the processing unit 32 is a main functional module for performing corresponding statistical processing on a service request in the device.
  • the sending unit 33 may be configured to send a service request to the server after the preset time period, where the service request carries a last processing result in the preset time period.
  • the sending unit 33 faces the server and is a main functional module for transmitting a control service request in the device.
  • the server performs statistical processing according to the last processing result.
  • a related functional module can be implemented by a hardware processor.
  • the service request processing apparatus triggers the startup time monitoring when receiving the sending instruction corresponding to the service request; and the corresponding time corresponding to the service request is received within the preset time period starting from the triggering time
  • the service request is subjected to corresponding statistical processing to obtain a processing result; after the preset time period, a service request is sent to the server, where the service request carries the preset time The last processing result in the segment, so that the server performs statistical processing according to the last processing result.
  • the present application does not receive the corresponding sending request after receiving the multiple service requests within the preset time period.
  • service requests are sent immediately, and the corresponding service requests are processed locally to obtain the processing result.
  • a service request is sent to the server, and the service request carries the last time in the preset time period.
  • the processing result so that the server performs statistical processing according to the last processing result, which can reduce the number of concurrent sending service requests in a period of time, thereby reducing the number of service requests received by the server in a period of time, so as to avoid the server for a period of time.
  • a large number of service requests are processed at the same time, which reduces the server crash due to excessive load.
  • the embodiment of the present application provides another service request processing apparatus.
  • the apparatus includes: a trigger unit 41, a processing unit 42, and a sending unit 43.
  • the triggering unit 41 may be configured to trigger start time monitoring when receiving a sending instruction corresponding to the service request.
  • the triggering unit 41 is a main function module for triggering a timer operation in the device, wherein the timer is used to monitor the received service within a preset time period starting from the triggering time. Request the corresponding send command.
  • the processing unit 42 may be configured to perform corresponding statistical processing on the service request when a sending instruction corresponding to the service request is received within a preset time period starting from the triggering time, to obtain a processing result.
  • the processing unit 42 is a main functional module for performing corresponding statistical processing on the service request in the device.
  • the sending unit 43 may be configured to send a service request to the server after the preset time period, wherein the service request carries a last processing result in the preset time period.
  • the sending unit 43 faces the server and is a main functional module for transmitting a control service request in the device.
  • the server performs statistical processing according to the last processing result.
  • the device further includes: a receiving unit 44 and a configuration unit 45.
  • the sending unit 43 may be further configured to send an acquisition request of the load status information to the server.
  • the server is configured to return load status information corresponding to the server according to the obtaining request.
  • the receiving unit 44 may be configured to receive the load status information sent by the server.
  • the configuration unit 45 may be configured to configure a duration of the preset time period according to the load status information.
  • the sending unit 43 is an acquisition request configured to send load status information to the server according to a preset time interval.
  • the server returns, according to the obtaining request, the load status information corresponding to the server according to the preset time interval.
  • the device further includes: an update unit 46.
  • the receiving unit 44 may be further configured to receive a processing result corresponding to the service request sent by the server.
  • the updating unit 46 may be configured to update the local processing result according to the processing result received by the receiving unit 44.
  • the device further includes: a detecting unit 47.
  • the detecting unit 47 may be configured to detect whether a transmission instruction of the service request is received within a preset time period starting from a time when the service request is sent.
  • the triggering unit 41 may be further configured to trigger stop time monitoring when the detecting unit 47 detects that a sending command of the service request is not received within the preset time period.
  • FIG. 5 is a schematic diagram showing the physical structure of a service request processing apparatus according to an embodiment of the present application.
  • the apparatus may include a processor 51 and a communication interface. 52.
  • Communication interface 52 can be used for information transfer between the server and the client.
  • the processor 51 can call the logic instruction in the memory 53 to perform the following method: when receiving the sending instruction corresponding to the service request, triggering the startup time monitoring; in the preset time period starting from the triggering time, whenever the receiving time is received When the service request corresponds to the sending instruction, performing corresponding statistical processing on the service request, and obtaining a processing result;
  • the logic instructions in the memory 53 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the technical solution of the present application may be embodied in the form of a software product, which is stored in a storage medium, including several The instructions are for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
  • Another service request processing apparatus triggers startup time monitoring when receiving a transmission instruction corresponding to the service request; and correspondingly receives a service request within a preset time period starting from the trigger time
  • the service request is subjected to corresponding statistical processing to obtain a processing result
  • a service request is sent to the server, where the service request carries the preset in the service request The last processing result in the time period, so that the server performs statistical processing according to the last processing result.
  • the present application does not immediately send the service request after receiving the corresponding sending request corresponding to the multiple service requests within the preset time period, first in the Locally, the corresponding statistical processing of these service requests is processed, and after receiving the preset time period, a service request is sent to the server, and the service request carries the last processing result in the preset time period, so that the server according to the The final processing result is statistically processed, which can reduce the number of concurrent requests for sending service requests in a period of time, thereby reducing the number of service requests received by the server over a period of time, so that the server does not stop processing a large number of concurrently for a period of time. Service requests reduce the server's system crash due to heavy load.
  • the embodiment of the present application provides a non-transitory computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the service request processing method in any of the foregoing method embodiments.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the portion of the above technical solution contributing to the related art may be embodied in the form of a software product, which may be stored in a computer readable storage medium such as a ROM/RAM, a magnetic disk, an optical disk, or the like.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
  • the embodiment of the present application can reduce the number of concurrent requests for sending service requests in a period of time, thereby reducing the number of service requests received by the server in a period of time,
  • the server is free to process a large number of service requests at the same time for a period of time, which reduces the server crash due to excessive load.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A service request processing method and device. The method comprises: triggering starting time monitoring when a sending instruction corresponding to a service request is received; performing, each time a sending instruction corresponding to a service request is received, corresponding statistical processing on the service request to obtain a processing result within a preset time period starting from the triggering time; and sending a service request to a server after the preset time period, wherein the service request carries a final processing result within the preset time period, so that the server performs statistical processing according to the final processing result.

Description

服务请求处理方法及装置Service request processing method and device
本申请要求在2016年3月30日提交中国专利局、申请号为2016101914127、发明名称为“一种服务请求处理方法及装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 2016101914127, entitled "A Service Request Processing Method and Apparatus", filed on March 30, 2016, the entire contents of In this application.
技术领域Technical field
本申请实施例涉及信息技术领域,例如涉及一种服务请求处理方法及装置。The embodiments of the present application relate to the field of information technology, for example, to a service request processing method and apparatus.
背景技术Background technique
近些年来,随着互联网技术的不断发展,网络资源越来越丰富,通过访问视频网络观看视频的用户也越来越多,当用户在观看网络视频时,可以通过视频客户端进行如点赞、发表视频评论等操作,以便与其他用户进行互动。客户端将这些操作对应的服务请求发送给服务器,由服务器对这些服务请求进行统计处理,进而可以将处理结果(如点赞数、视频评论等信息)分发给各个客户端进行显示。In recent years, with the continuous development of Internet technology, network resources are becoming more and more abundant, and more and more users are watching videos by accessing the video network. When users watch online video, they can like the video client. , post video comments, and more to interact with other users. The client sends the service request corresponding to the operation to the server, and the server performs statistical processing on the service request, and then the processing result (such as the number of praises, the video comment, and the like) can be distributed to each client for display.
相关技术中,客户端在接收到服务请求对应的发送指令时,则立即向服务器发送该服务请求。然而,有时服务器在一段时间内会不停地接收到大量客户端同时发送的服务请求,例如,对于一个热门视频,可能出现大量用户进行点赞的行为。服务器过度地处理这些接收到的服务请求,会造成服务器负载过重,导致出现系统崩溃的情况。In the related art, when the client receives the sending instruction corresponding to the service request, the client immediately sends the service request to the server. However, sometimes the server will receive a large number of service requests sent by the client at the same time for a period of time. For example, for a popular video, a large number of users may be praised. Excessive processing of these received service requests by the server can cause the server to be overloaded, resulting in a system crash.
发明内容Summary of the invention
本申请提供了一种服务请求处理方法及装置,用以解决相关技术中会造成服务器负载过重,导致出现系统崩溃的问题。The present application provides a service request processing method and apparatus for solving the problem that the related system may cause the server to be overloaded and cause a system crash.
相关技术本申请实施例提供了一种服务请求处理方法,包括:Related Art The embodiment of the present application provides a service request processing method, including:
当接收到服务请求对应的发送指令时,触发启动时间监测;When the sending instruction corresponding to the service request is received, the startup time monitoring is triggered;
在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理,得到处理结果;以及,During the preset time period starting from the triggering time, each time the sending instruction corresponding to the service request is received, the service request is subjected to corresponding statistical processing to obtain a processing result;
在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请 求中携带有在所述预设时间段内最后的处理结果,以使得所述服务器根据所述最后的处理结果进行统计处理。After the preset time period, sending a service request to the server, where the service is requested The request carries the last processing result in the preset time period, so that the server performs statistical processing according to the last processing result.
本申请实施例提供了一种服务请求处理装置,包括:The embodiment of the present application provides a service request processing apparatus, including:
触发单元,设置为当接收到服务请求对应的发送指令时,触发启动时间监测;The triggering unit is configured to trigger a startup time monitoring when receiving a sending instruction corresponding to the service request;
处理单元,设置为在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理,得到处理结果;以及,The processing unit is configured to perform corresponding statistical processing on the service request to obtain a processing result when receiving a sending instruction corresponding to the service request in a preset time period starting from a triggering time; and
发送单元,设置为在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请求中携带有在所述预设时间段内最后的处理结果,以使得所述服务器根据所述最后的处理结果进行统计处理。a sending unit, configured to send a service request to the server after the preset time period, where the service request carries a last processing result in the preset time period, so that the server is configured according to the The final processing result is statistically processed.
本申请实施例还提供一种电子设备,包括:The embodiment of the present application further provides an electronic device, including:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请实施例中任一项的服务请求处理方法。The memory stores instructions executable by the one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the service request processing of any of the embodiments of the present application method.
本申请实施例还提供一种非暂态计算机可读存储介质,其中,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行本申请实施例中任一项的服务请求处理方法。The embodiment of the present application further provides a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores computer instructions for causing the computer to perform any of the embodiments of the present application. A service request processing method.
本申请实施例还提供一种计算机程序产品,其中,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行本申请实施例中任一项的服务请求处理方法。本申请实施例提供的一种服务请求处理方法及装置,当接收到服务请求对应的发送指令时,触发启动时间监测;在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理,得到处理结果;在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请求中携带有在所述预设时间段内最后的处理结果,以使得所述服务器根据所述最后的处理结果进行统计处理。与相关技术中在接收到服务请求对应的发送指令后,就立即向服务器发送该服务请求的方式相比,本申请在预设时间段内接收到多个服务请求分 别对应的发送指令后,不立即发送这些服务请求,首先在本地对这些服务请求进行相应的统计处理得到处理结果,待到预设时间段后,向服务器发送一个服务请求,这个服务请求中携带有在预设时间段内最后的处理结果,以便服务器根据这个最后的处理结果进行统计处理,可以降低在一段时间内发送服务请求的并发数,进而可以减少服务器在一段时间内接收到的服务请求的数量,以免服务器在一段时间内不停地同时处理大量的服务请求,减少了服务器由于负载过重,导致出现系统崩溃的情况。The embodiment of the present application further provides a computer program product, wherein the computer program product comprises a calculation program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instruction is used by a computer When executed, the computer is caused to execute the service request processing method of any of the embodiments of the present application. The method and device for processing a service request provided by the embodiment of the present application triggers startup time monitoring when receiving a sending instruction corresponding to the service request; and receives a service request every time within a preset time period starting from the triggering time Correspondingly sending a command, performing corresponding statistical processing on the service request, and obtaining a processing result; after the preset time period, sending a service request to the server, where the service request carries the The final processing result in the time period is set such that the server performs statistical processing according to the last processing result. Compared with the related art, the method of transmitting the service request to the server immediately after receiving the sending instruction corresponding to the service request, the application receives multiple service request points within a preset time period. After the corresponding command is sent, the service requests are not immediately sent. First, the corresponding service requests are processed locally to obtain the processing result. After the preset time period, a service request is sent to the server, and the service request is carried in the service request. There is a final processing result in the preset time period, so that the server performs statistical processing according to the last processing result, which can reduce the number of concurrent sending service requests in a period of time, thereby reducing the service request received by the server for a period of time. The number, so that the server does not stop processing a large number of service requests at the same time, reducing the server's overload due to overload, resulting in a system crash.
附图说明DRAWINGS
申请相关技术下面将对实施例或相关技术描述中所需要使用的附图作一简单地介绍,下面描述中的附图是本申请的一些实施例。Application Related Art The drawings used in the embodiments or the related art description will be briefly described below, and the drawings in the following description are some embodiments of the present application.
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。The one or more embodiments are exemplified by the accompanying drawings in the accompanying drawings, and FIG. The figures in the drawings do not constitute a scale limitation unless otherwise stated.
图1为本申请实施例提供的一种服务请求处理方法流程示意图;FIG. 1 is a schematic flowchart of a service request processing method according to an embodiment of the present application;
图2为本申请实施例提供的另一种服务请求处理方法流程示意图;2 is a schematic flowchart of another service request processing method according to an embodiment of the present application;
图3为本申请实施例提供的一种服务请求处理装置结构示意图;FIG. 3 is a schematic structural diagram of a service request processing apparatus according to an embodiment of the present application;
图4为本申请实施例提供的另一种服务请求处理装置结构示意图;FIG. 4 is a schematic structural diagram of another service request processing apparatus according to an embodiment of the present disclosure;
图5为本申请实施例提供的一种服务请求处理装置的实体结构示意图。FIG. 5 is a schematic structural diagram of an entity of a service request processing apparatus according to an embodiment of the present disclosure.
具体实施方式detailed description
申请下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。在不冲突的情况下,实施例中的特征可以相互任意组合。申请申请本申请实施例提供了一种服务请求处理方法,如图1所示,所述方法包括:The technical solutions in the embodiments of the present application are described in conjunction with the drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. The features in the embodiments can be arbitrarily combined with each other without conflict. Application Example The embodiment of the present application provides a service request processing method. As shown in FIG. 1 , the method includes:
在S110中,当接收到服务请求对应的发送指令时,触发启动时间监测。In S110, when the transmission instruction corresponding to the service request is received, the startup time monitoring is triggered.
对于本申请实施例,当接收到服务请求对应的发送指令时,触发开始计时,并作为预设时间段的开始时刻,所述预设时间段的时长可以根据实际需求进行配置,例如,预设时间段的时长可以配置为2秒、3秒等。For the embodiment of the present application, when the sending instruction corresponding to the service request is received, the triggering starts timing, and as the starting time of the preset time period, the duration of the preset time period may be configured according to actual requirements, for example, preset The duration of the time period can be configured to be 2 seconds, 3 seconds, and the like.
需要说明的是,用户可以通过触击服务请求的发送按钮,来输入发送指令。例如,服务请求为请求发送用户的聊天信息,对应的发送按钮可以为聊 天信息的发送按钮,当用户触击该发送按钮时,机器侧接收对应的发送指令。It should be noted that the user can input a send command by tapping the send button of the service request. For example, the service request is a request to send the user's chat information, and the corresponding send button can be a chat. The send button of the day information, when the user touches the send button, the machine side receives the corresponding send command.
在S120中,在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对服务请求进行相应的统计处理,得到处理结果。In S120, in the preset time period starting from the triggering time, each time a sending instruction corresponding to the service request is received, the service request is subjected to corresponding statistical processing to obtain a processing result.
例如,本地显示页面上存在一个聊天室窗口,该聊天室窗口用于显示不同用户在聊天室内实时的聊天信息。并且本地还配置有一个聊天信息的输入窗口以及发送按钮,用户输入完聊天信息后,触击该发送按钮,向聊天室发送输入后的聊天信息。对于向聊天室内发送聊天信息的服务请求,当接收到该服务请求对应的发送指令时,开始计时并作为预设时间段的开始时刻,预设时间段的时长为5秒,在这计时开始的5秒内,每当接收到服务请求对应的发送指令时,对服务请求进行相应的统计处理,即在本地的聊天室窗口中添加服务请求相应的聊天信息。For example, there is a chat room window on the local display page, which is used to display real-time chat information of different users in the chat room. And an input window and a send button of the chat information are also configured locally. After the user inputs the chat information, the user sends the chat message to the chat room by touching the send button. For the service request for sending the chat information to the chat room, when receiving the transmission instruction corresponding to the service request, the timing is started and is the start time of the preset time period, and the preset time period is 5 seconds, and the time starts. Within 5 seconds, whenever the sending instruction corresponding to the service request is received, the corresponding statistical processing is performed on the service request, that is, the corresponding chat information of the service request is added in the local chat room window.
在S130中,在预设时间段后,向服务器发送一个服务请求。In S130, after a preset time period, a service request is sent to the server.
其中,所述服务请求中携带有在所述预设时间段内最后的处理结果,以使得所述服务器根据所述最后的处理结果进行统计处理。The service request carries a last processing result in the preset time period, so that the server performs statistical processing according to the last processing result.
例如,预设时间段的时长为10秒,对于向聊天室内发送聊天信息的服务请求,当接收到该服务请求对应的发送指令时,触发进行计时,在这计时开始的10秒内,依次接收到了5个服务请求对应的发送指令时,在本地的聊天室窗口中依次添加这5个服务请求相应的聊天信息,在这10秒内最后的处理结果是在聊天室窗口中添加了5条聊天信息,过了这10秒后,向服务器发送一个服务请求,该服务请求中携带有这5条聊天信息,以使得服务器将这5条聊天信息分发给各个客户端,以便其他用户观看这5条聊天信息。For example, the duration of the preset time period is 10 seconds. When the service request for sending the chat information to the chat room is received, when the sending instruction corresponding to the service request is received, the timing is triggered, and the receiving is sequentially received within 10 seconds from the start of the time. When the sending command corresponding to the five service requests is reached, the corresponding chat information is sequentially added in the local chat room window, and the last processing result in the 10 seconds is to add 5 chats in the chat room window. After the message is passed, the server sends a service request to the server, and the service request carries the five pieces of chat information, so that the server distributes the five pieces of chat information to each client, so that other users can view the five pieces. Chat information.
本申请实施例提供的一种服务请求处理方法,当接收到服务请求对应的发送指令时,触发启动时间监测;在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理,得到处理结果;在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请求中携带有在所述预设时间段内最后的处理结果,以使得所述服务器根据所述最后的处理结果进行统计处理。与相关技术中在接收到服务请求对应的发送指令后,就立即向服务器发送该服务请求的方式相比,本申请在预设时间段内接收到多个服务请求分别对应的发送指令后,不立即发送这些服务请求,首先在本地对这些服务请求进行相应的统计处理得到处理结果,待到预设时间段后,向服务器发送一个服务请求,这个服务请求中携 带有在预设时间段内最后的处理结果,以便服务器根据这个最后的处理结果进行统计处理,可以降低在一段时间内发送服务请求的并发数,进而可以减少服务器在一段时间内接收到的服务请求的数量,以免服务器在一段时间内不停地同时处理大量的服务请求,减少了服务器由于负载过重,导致出现系统崩溃的情况。The service request processing method provided by the embodiment of the present application triggers the startup time monitoring when receiving the sending instruction corresponding to the service request; and the corresponding time corresponding to the service request is received within the preset time period starting from the triggering time When the command is sent, the service request is subjected to corresponding statistical processing to obtain a processing result; after the preset time period, a service request is sent to the server, where the service request carries the preset time The last processing result in the segment, so that the server performs statistical processing according to the last processing result. Compared with the manner in which the service request is sent to the server immediately after receiving the sending instruction corresponding to the service request in the related art, the present application does not receive the corresponding sending request after receiving the multiple service requests within the preset time period. These service requests are sent immediately, and the service requests are processed locally to obtain the processing results. After the preset time period, a service request is sent to the server, and the service request is carried. With the last processing result in the preset time period, so that the server performs statistical processing according to the last processing result, the number of concurrent sending service requests can be reduced in a period of time, thereby reducing the service received by the server for a period of time. The number of requests, so that the server does not stop processing a large number of service requests at the same time for a period of time, which reduces the situation in which the server crashes due to excessive load.
本申请实施例提供了另一种服务请求处理方法,如图2所示,所述方法包括:An embodiment of the present application provides another service request processing method. As shown in FIG. 2, the method includes:
在S210中,当接收到服务请求对应的发送指令时,触发启动时间监测。In S210, when the sending instruction corresponding to the service request is received, the startup time monitoring is triggered.
需要说明的是,用户可以通过触击服务请求的发送按钮,来输入发送指令。例如,服务请求为用户对网络视频的点赞请求,对应的发送按钮可以为点赞图标按钮,当用户触击该点赞图标按钮时,机器侧接收对应的发送指令。It should be noted that the user can input a send command by tapping the send button of the service request. For example, the service request is a user's request for a network video, and the corresponding send button may be a click icon button. When the user touches the click icon button, the machine side receives a corresponding send command.
对于本申请实施例,当接收到服务请求对应的发送指令时,触发开始计时,并作为预设时间段的开始时刻,可选的,还可以向服务器发送负载状态信息的获取请求,以使得所述服务器根据所述获取请求,返回所述服务器对应的负载状态信息,其中,所述负载状态信息中包含服务器的负载状态情况;接收所述服务器发送的所述负载状态信息;根据所述负载状态信息,配置所述预设时间段的时长。For the embodiment of the present application, when the sending instruction corresponding to the service request is received, the triggering starts timing, and as the starting time of the preset time period, optionally, the load status information obtaining request may also be sent to the server, so as to enable the Returning, according to the obtaining request, the load status information corresponding to the server, where the load status information includes a load status status of the server; receiving the load status information sent by the server; and according to the load status Information, configuring the duration of the preset time period.
可选的,可以在本地保存不同负载状态信息分别对应的预设时间段的时长,根据接收到的服务器的负载状态信息,可以自动完成配置与该负载状态信息对应的预设时间段的时长。例如,如果根据接收到的服务器的负载状态信息,确定当前服务器负载压力较小,可以将预设时间段的时长配置得较短一些;反之,如果根据接收到的服务器负载状态信息,确定当前服务器负载压力较大,可以将预设时间段的时长配置得较长一些。Optionally, the duration of the preset time period corresponding to the different load state information may be saved locally, and the duration of the preset time period corresponding to the load state information may be automatically configured according to the received load state information of the server. For example, if it is determined that the current server load pressure is small according to the received load state information of the server, the duration of the preset time period may be configured to be shorter; otherwise, if the current server is determined according to the received server load status information, The load pressure is large, and the duration of the preset time period can be configured to be longer.
可选的,所述向服务器发送负载状态信息的获取请求的步骤包括:按照预设时间间隔向服务器发送负载状态信息的获取请求,以使得所述服务器根据所述获取请求,按照预设时间间隔返回所述服务器对应的负载状态信息。其中,所述预设时间间隔可以根据实际需求进行配置,例如,预设时间间隔可以配置为20分钟、30分钟等。Optionally, the step of sending the load status information acquisition request to the server includes: sending the load status information acquisition request to the server according to the preset time interval, so that the server according to the obtaining request, according to the preset time interval Returns the load status information corresponding to the server. The preset time interval may be configured according to actual requirements. For example, the preset time interval may be configured to be 20 minutes, 30 minutes, or the like.
需要说明的是,通过按照预设时间间隔向服务器发送负载状态信息的获取请求,可以实现获取最新的服务器负载状态信息,进而可以根据这个最新的服务器负载状态信息,确定与其对应的预设时间段的时长,可以更精确的 控制好监控时间,以便到达最佳的服务请求处理效果。It should be noted that, by sending the load status information acquisition request to the server according to the preset time interval, the latest server load status information can be obtained, and the preset time period corresponding thereto can be determined according to the latest server load status information. The length of time can be more precise Control the monitoring time to get the best service request processing effect.
在S220中,在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对服务请求进行相应的统计处理,得到处理结果。In S220, in the preset time period starting from the triggering time, each time a transmission instruction corresponding to the service request is received, the service request is subjected to corresponding statistical processing to obtain a processing result.
例如,本地显示页面上存在一个视频的点赞数,该点赞数为不同用户累计对这个视频进行点赞的总数,该点赞数的旁边还配置有点赞图标按钮,用户通过触击这个点赞图标按钮,对这个视频进行点赞。对于向服务器发送点赞请求的服务请求,当接收到该服务请求对应的发送指令时,开始计时并作为预设时间段的开始时刻,预设时间段的时长为2秒,每当接收到服务请求对应的发送指令时,对服务请求进行相应的统计处理,即将本地该视频的点赞数累计加1。For example, there is a point number of a video on the local display page, which is the total number of users who like this video. The point number is also equipped with a little like icon button. The user clicks on this point. Like the icon button, like this video. For the service request that sends the like request to the server, when receiving the sending instruction corresponding to the service request, the timing starts and is used as the starting time of the preset time period, and the preset time period is 2 seconds, whenever the service is received. When requesting the corresponding sending instruction, the corresponding statistical processing is performed on the service request, that is, the number of points of the local video is cumulatively increased by one.
在S230中,在预设时间段后,向服务器发送一个服务请求。In S230, a service request is sent to the server after a preset period of time.
其中,所述服务请求中携带有在所述预设时间段内最后的处理结果,可选的,以使得所述服务器根据所述最后的处理结果进行统计处理。The service request carries the last processing result in the preset time period, optionally, so that the server performs statistical processing according to the last processing result.
例如,预设时间段为2秒,对于向服务器发送点赞请求的服务请求,当接收到该服务请求对应的发送指令时,触发进行计时,在这计时开始的2秒内,依次接收到了10个服务请求对应的发送指令,将本地视频的点赞数相继累计加1,在这2秒内最后的处理结果是本地视频的点赞数累计加10,过了这2秒后,向服务器发送一个服务请求,该服务请求用于请求将该视频的点赞数累计加10,以便服务器进行统计处理,在发送服务请求的同时,清除本地点赞数的计数,并重新开始进行点赞数的计数。For example, the preset time period is 2 seconds. When the service request for sending the like request to the server is received, when the sending instruction corresponding to the service request is received, the timing is triggered, and 10 seconds are received in sequence within 2 seconds from the start of the timing. The corresponding command of the service request sends the number of points of the local video one by one, and the last processing result in the two seconds is that the number of points of the local video is increased by 10, and after 2 seconds, the server sends the number of points to the server. A service request, which is used to request that the number of points of the video is increased by 10, so that the server performs statistical processing, and when the service request is sent, the count of the place number is cleared, and the number of points is restarted. count.
在S240中,在以发送服务请求的时刻为起点的预置时间段内,检测是否接收到服务请求的发送指令。In S240, it is detected whether or not a transmission instruction of the service request is received within a preset time period starting from the time when the service request is transmitted.
其中,所述预置时间段的时长可以根据实际需求进行配置,本申请实施例不做限定,例如,可以将预置时间段的时长配置为5秒、6秒等。The duration of the preset time period may be configured according to actual requirements, and is not limited in the embodiment of the present application. For example, the duration of the preset time period may be configured as 5 seconds, 6 seconds, and the like.
在S250中,当没有接收到服务请求的发送指令,则触发停止时间监测。In S250, when the transmission instruction of the service request is not received, the stop time monitoring is triggered.
例如,对于向服务器发送点赞请求的服务请求,在发送完服务请求之后的5秒内,如果用户没有任何点赞操作,即机器侧没有接收到服务请求的发送指令,则触发停止时间监测,释放对应的监测程序内存。For example, for a service request that sends a like request to the server, within 5 seconds after the service request is sent, if the user does not have any like operation, that is, the machine side does not receive the send command of the service request, the stop time monitoring is triggered. Release the corresponding monitor program memory.
需要说明的是,通过检测在上述预置时间段内是否接收到服务请求的发送指令,当否,则触发停止时间监测,释放对应的监测程序内存,可以节省资源的占用。 It should be noted that, by detecting whether a transmission command of the service request is received within the preset time period, when no, the stop time monitoring is triggered, and the corresponding monitoring program memory is released, thereby saving resource occupation.
可选的,所述方法还包括:接收所述服务器发送的服务请求对应的处理结果并对本地的处理结果进行更新。Optionally, the method further includes: receiving a processing result corresponding to the service request sent by the server, and updating the local processing result.
例如,对于向服务器发送视频点赞请求的服务请求,在向服务器发送服务请求之后,接收服务器返回的处理结果,即根据接收到的不同客户端发送的点赞数,统计处理得到的这一时刻的总点赞数,在接收到这个总点赞数之后,对本地当前的点赞数进行更新替换,可以使用户了解其他用户进行点赞的行为,进而可以确定视频的观众喜爱程度。For example, for a service request for sending a video click request to a server, after sending a service request to the server, the processing result returned by the server is received, that is, according to the received number of points sent by different clients, the time obtained by the statistical processing is obtained. After receiving the total number of praises, the current local point number is updated and replaced, so that the user can understand the behavior of other users to praise, and then can determine the viewer's favorite degree of the video.
本申请实施例提供的另一种服务请求处理方法,当接收到服务请求对应的发送指令时,触发启动时间监测;在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理,得到处理结果;在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请求中携带有在所述预设时间段内最后的处理结果,以使得所述服务器根据所述最后的处理结果进行统计处理。与相关技术中在接收到服务请求对应的发送指令后,就立即向服务器发送该服务请求的方式相比,本申请在预设时间段内接收到多个服务请求分别对应的发送指令后,不立即发送这些服务请求,首先在本地对这些服务请求进行相应的统计处理得到处理结果,待到预设时间段后,向服务器发送一个服务请求,这个服务请求中携带有在预设时间段内最后的处理结果,以便服务器根据这个最后的处理结果进行统计处理,可以降低在一段时间内发送服务请求的并发数,进而可以减少服务器在一段时间内接收到的服务请求的数量,以免服务器在一段时间内不停地同时处理大量的服务请求,减少了服务器由于负载过重,导致出现系统崩溃的情况。Another service request processing method provided by the embodiment of the present application triggers startup time monitoring when receiving a sending instruction corresponding to the service request; and correspondingly receives a service request in a preset time period starting from a triggering time When the command is sent, the service request is subjected to corresponding statistical processing to obtain a processing result; after the preset time period, a service request is sent to the server, where the service request carries the preset in the service request The last processing result in the time period, so that the server performs statistical processing according to the last processing result. Compared with the manner in which the service request is sent to the server immediately after receiving the sending instruction corresponding to the service request in the related art, the present application does not receive the corresponding sending request after receiving the multiple service requests within the preset time period. These service requests are sent immediately, and the corresponding service requests are processed locally to obtain the processing result. After the preset time period, a service request is sent to the server, and the service request carries the last time in the preset time period. The processing result, so that the server performs statistical processing according to the last processing result, which can reduce the number of concurrent sending service requests in a period of time, thereby reducing the number of service requests received by the server in a period of time, so as to avoid the server for a period of time. A large number of service requests are processed at the same time, which reduces the server crash due to excessive load.
可选的,作为图1所述方法的实现,本申请实施例提供了一种服务请求处理装置,如图3所示,所述装置包括:触发单元31、处理单元32以及发送单元33。Optionally, as an implementation of the method in FIG. 1, the embodiment of the present application provides a service request processing apparatus. As shown in FIG. 3, the apparatus includes: a trigger unit 31, a processing unit 32, and a sending unit 33.
所述触发单元31,可以设置为当接收到服务请求对应的发送指令时,触发启动时间监测。所述触发单元31为本装置中触发定时器工作的主要功能模块,其中,定时器用于监测在以触发时刻为起点的预设时间段内,接收的服务请求对应的发送指令。The trigger unit 31 may be configured to trigger start time monitoring when receiving a sending instruction corresponding to the service request. The triggering unit 31 is a main function module for triggering a timer operation in the device, wherein the timer is configured to monitor a sending instruction corresponding to the received service request within a preset time period starting from the triggering time.
所述处理单元32,可以设置为在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理, 得到处理结果。所述处理单元32为本装置中对服务请求进行相应的统计处理的主要功能模块。The processing unit 32 may be configured to perform corresponding statistical processing on the service request whenever a sending instruction corresponding to the service request is received within a preset time period starting from a triggering time. The result of the processing is obtained. The processing unit 32 is a main functional module for performing corresponding statistical processing on a service request in the device.
所述发送单元33,可以设置为在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请求中携带有在所述预设时间段内最后的处理结果。所述发送单元33面向服务器,为本装置中控制服务请求发送的主要功能模块。The sending unit 33 may be configured to send a service request to the server after the preset time period, where the service request carries a last processing result in the preset time period. The sending unit 33 faces the server and is a main functional module for transmitting a control service request in the device.
可选的,以使得所述服务器根据所述最后的处理结果进行统计处理。Optionally, the server performs statistical processing according to the last processing result.
需要说明的是,本申请实施例提供的一种服务请求处理装置所涉及各功能单元的其他相应描述,可以参考图1中的对应描述,在此不再赘述。本申请实施例中可以通过硬件处理器(hardware processor)来实现相关功能模块。It should be noted that other corresponding descriptions of the functional units involved in the service request processing apparatus provided by the embodiment of the present application may be referred to the corresponding description in FIG. 1 and will not be further described herein. In the embodiment of the present application, a related functional module can be implemented by a hardware processor.
本申请实施例提供的一种服务请求处理装置,当接收到服务请求对应的发送指令时,触发启动时间监测;在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理,得到处理结果;在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请求中携带有在所述预设时间段内最后的处理结果,以使得所述服务器根据所述最后的处理结果进行统计处理。与相关技术总在接收到服务请求对应的发送指令后,就立即向服务器发送该服务请求的方式相比,本申请在预设时间段内接收到多个服务请求分别对应的发送指令后,不立即发送这些服务请求,首先在本地对这些服务请求进行相应的统计处理得到处理结果,待到预设时间段后,向服务器发送一个服务请求,这个服务请求中携带有在预设时间段内最后的处理结果,以便服务器根据这个最后的处理结果进行统计处理,可以降低在一段时间内发送服务请求的并发数,进而可以减少服务器在一段时间内接收到的服务请求的数量,以免服务器在一段时间内不停地同时处理大量的服务请求,减少了服务器由于负载过重,导致出现系统崩溃的情况。The service request processing apparatus provided by the embodiment of the present application triggers the startup time monitoring when receiving the sending instruction corresponding to the service request; and the corresponding time corresponding to the service request is received within the preset time period starting from the triggering time When the command is sent, the service request is subjected to corresponding statistical processing to obtain a processing result; after the preset time period, a service request is sent to the server, where the service request carries the preset time The last processing result in the segment, so that the server performs statistical processing according to the last processing result. Compared with the manner in which the related technology always sends the service request to the server immediately after receiving the sending instruction corresponding to the service request, the present application does not receive the corresponding sending request after receiving the multiple service requests within the preset time period. These service requests are sent immediately, and the corresponding service requests are processed locally to obtain the processing result. After the preset time period, a service request is sent to the server, and the service request carries the last time in the preset time period. The processing result, so that the server performs statistical processing according to the last processing result, which can reduce the number of concurrent sending service requests in a period of time, thereby reducing the number of service requests received by the server in a period of time, so as to avoid the server for a period of time. A large number of service requests are processed at the same time, which reduces the server crash due to excessive load.
可选的,作为图2所述方法的实现,本申请实施例提供了另一种服务请求处理装置,如图4所示,所述装置包括:触发单元41、处理单元42以及发送单元43。Optionally, as an implementation of the method in FIG. 2, the embodiment of the present application provides another service request processing apparatus. As shown in FIG. 4, the apparatus includes: a trigger unit 41, a processing unit 42, and a sending unit 43.
所述触发单元41,可以设置为当接收到服务请求对应的发送指令时,触发启动时间监测。所述触发单元41为本装置中触发定时器工作的主要功能模块,其中,定时器用于监测在以触发时刻为起点的预设时间段内,接收的服 务请求对应的发送指令。The triggering unit 41 may be configured to trigger start time monitoring when receiving a sending instruction corresponding to the service request. The triggering unit 41 is a main function module for triggering a timer operation in the device, wherein the timer is used to monitor the received service within a preset time period starting from the triggering time. Request the corresponding send command.
所述处理单元42,可以设置为在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理,得到处理结果。所述处理单元42为本装置中对服务请求进行相应的统计处理的主要功能模块。The processing unit 42 may be configured to perform corresponding statistical processing on the service request when a sending instruction corresponding to the service request is received within a preset time period starting from the triggering time, to obtain a processing result. The processing unit 42 is a main functional module for performing corresponding statistical processing on the service request in the device.
所述发送单元43,可以设置为在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请求中携带有在所述预设时间段内最后的处理结果。所述发送单元43面向服务器,为本装置中控制服务请求发送的主要功能模块。The sending unit 43 may be configured to send a service request to the server after the preset time period, wherein the service request carries a last processing result in the preset time period. The sending unit 43 faces the server and is a main functional module for transmitting a control service request in the device.
可选的,以使得所述服务器根据所述最后的处理结果进行统计处理。Optionally, the server performs statistical processing according to the last processing result.
可选的,所述装置还包括:接收单元44和配置单元45。Optionally, the device further includes: a receiving unit 44 and a configuration unit 45.
所述发送单元43,还可以设置为向服务器发送负载状态信息的获取请求。The sending unit 43 may be further configured to send an acquisition request of the load status information to the server.
可选的,以使得所述服务器根据所述获取请求,返回所述服务器对应的负载状态信息。Optionally, the server is configured to return load status information corresponding to the server according to the obtaining request.
所述接收单元44,可以设置为接收所述服务器发送的所述负载状态信息。The receiving unit 44 may be configured to receive the load status information sent by the server.
所述配置单元45,可以设置为根据所述负载状态信息,配置所述预设时间段的时长。The configuration unit 45 may be configured to configure a duration of the preset time period according to the load status information.
所述发送单元43,是设置为按照预设时间间隔向服务器发送负载状态信息的获取请求。The sending unit 43 is an acquisition request configured to send load status information to the server according to a preset time interval.
可选的,以使得所述服务器根据所述获取请求,按照预设时间间隔返回所述服务器对应的负载状态信息。Optionally, the server returns, according to the obtaining request, the load status information corresponding to the server according to the preset time interval.
可选的,所述装置还包括:更新单元46。Optionally, the device further includes: an update unit 46.
所述接收单元44,还可以设置为接收所述服务器发送的服务请求对应的处理结果。The receiving unit 44 may be further configured to receive a processing result corresponding to the service request sent by the server.
所述更新单元46,可以设置为根据所述接收单元44接收的处理结果,对本地的处理结果进行更新。The updating unit 46 may be configured to update the local processing result according to the processing result received by the receiving unit 44.
可选的,所述装置还包括:检测单元47。Optionally, the device further includes: a detecting unit 47.
所述检测单元47,可以设置为在以发送服务请求的时刻为起点的预置时间段内,检测是否接收到服务请求的发送指令。 The detecting unit 47 may be configured to detect whether a transmission instruction of the service request is received within a preset time period starting from a time when the service request is sent.
所述触发单元41,还可以设置为当所述检测单元47检测出在所述预置时间段内没有接收到服务请求的发送指令,则触发停止时间监测。The triggering unit 41 may be further configured to trigger stop time monitoring when the detecting unit 47 detects that a sending command of the service request is not received within the preset time period.
需要说明的是,本申请实施例提供的另一种服务请求处理装置所涉及各功能单元的其他相应描述,可以参考图2中的对应描述,在此不再赘述。本申请实施例中可以通过硬件处理器来实现相关功能模块。It should be noted that other corresponding descriptions of the functional units of the service request processing apparatus provided by the embodiment of the present application may be referred to the corresponding description in FIG. 2, and details are not described herein again. Related functional modules may be implemented by a hardware processor in the embodiment of the present application.
示例性的,如图5所示,图5示出了本申请实施例提供的一种服务请求处理装置的实体结构示意图,该装置可以包括:处理器(processor)51、通信接口(Communications Interface)52、存储器(memory)53和总线54,其中,处理器51、通信接口52、存储器53通过总线54完成相互间的通信。通信接口52可以用于服务器与客户端之间的信息传输。处理器51可以调用存储器53中的逻辑指令,以执行如下方法:当接收到服务请求对应的发送指令时,触发启动时间监测;在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理,得到处理结果;Illustratively, as shown in FIG. 5, FIG. 5 is a schematic diagram showing the physical structure of a service request processing apparatus according to an embodiment of the present application. The apparatus may include a processor 51 and a communication interface. 52. A memory 53 and a bus 54, wherein the processor 51, the communication interface 52, and the memory 53 complete communication with each other via the bus 54. Communication interface 52 can be used for information transfer between the server and the client. The processor 51 can call the logic instruction in the memory 53 to perform the following method: when receiving the sending instruction corresponding to the service request, triggering the startup time monitoring; in the preset time period starting from the triggering time, whenever the receiving time is received When the service request corresponds to the sending instruction, performing corresponding statistical processing on the service request, and obtaining a processing result;
在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请求中携带有在所述预设时间段内最后的处理结果,以使得所述服务器根据所述最后的处理结果进行统计处理。此外,上述的存储器53中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。After the preset time period, sending a service request to the server, where the service request carries a last processing result in the preset time period, so that the server is configured according to the last processing result. Perform statistical processing. In addition, the logic instructions in the memory 53 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, or the part contributing to the related art, or the part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including several The instructions are for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
本申请实施例提供的另一种服务请求处理装置,当接收到服务请求对应的发送指令时,触发启动时间监测;在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理,得到处理结果;在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请求中携带有在所述预设时间段内最后的处理结果,以使得所述服务器根据所述最后的处理结果进行统计处理。与相关技术在接收到服务 请求对应的发送指令后,就立即向服务器发送该服务请求的方式相比,本申请在预设时间段内接收到多个服务请求分别对应的发送指令后,不立即发送这些服务请求,首先在本地对这些服务请求进行相应的统计处理得到处理结果,待到预设时间段后,向服务器发送一个服务请求,这个服务请求中携带有在预设时间段内最后的处理结果,以便服务器根据这个最后的处理结果进行统计处理,可以降低在一段时间内发送服务请求的并发数,进而可以减少服务器在一段时间内接收到的服务请求的数量,以免服务器在一段时间内不停地同时处理大量的服务请求,减少了服务器由于负载过重,导致出现系统崩溃的情况。Another service request processing apparatus provided by the embodiment of the present application triggers startup time monitoring when receiving a transmission instruction corresponding to the service request; and correspondingly receives a service request within a preset time period starting from the trigger time When the command is sent, the service request is subjected to corresponding statistical processing to obtain a processing result; after the preset time period, a service request is sent to the server, where the service request carries the preset in the service request The last processing result in the time period, so that the server performs statistical processing according to the last processing result. Receiving services with related technologies Compared with the method of sending the service request to the server immediately after requesting the corresponding sending instruction, the present application does not immediately send the service request after receiving the corresponding sending request corresponding to the multiple service requests within the preset time period, first in the Locally, the corresponding statistical processing of these service requests is processed, and after receiving the preset time period, a service request is sent to the server, and the service request carries the last processing result in the preset time period, so that the server according to the The final processing result is statistically processed, which can reduce the number of concurrent requests for sending service requests in a period of time, thereby reducing the number of service requests received by the server over a period of time, so that the server does not stop processing a large number of concurrently for a period of time. Service requests reduce the server's system crash due to heavy load.
本申请实施例提供了一种非暂态计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的服务请求处理方法。The embodiment of the present application provides a non-transitory computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the service request processing method in any of the foregoing method embodiments.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the portion of the above technical solution contributing to the related art may be embodied in the form of a software product, which may be stored in a computer readable storage medium such as a ROM/RAM, a magnetic disk, an optical disk, or the like. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换均属于本申请实施例的范围。Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still Modifications to the technical solutions described in the foregoing embodiments, or equivalent replacement of some of the technical features, are within the scope of the embodiments of the present application.
工业实用性Industrial applicability
本申请实施例通过采用上述技术方案,可以降低在一段时间内发送服务请求的并发数,进而可以减少服务器在一段时间内接收到的服务请求的数量,以 免服务器在一段时间内不停地同时处理大量的服务请求,减少了服务器由于负载过重,导致出现系统崩溃的情况。 By adopting the foregoing technical solution, the embodiment of the present application can reduce the number of concurrent requests for sending service requests in a period of time, thereby reducing the number of service requests received by the server in a period of time, The server is free to process a large number of service requests at the same time for a period of time, which reduces the server crash due to excessive load.

Claims (13)

  1. 一种服务请求处理方法,包括:A service request processing method includes:
    当接收到服务请求对应的发送指令时,触发启动时间监测;When the sending instruction corresponding to the service request is received, the startup time monitoring is triggered;
    在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理,得到处理结果;以及,During the preset time period starting from the triggering time, each time the sending instruction corresponding to the service request is received, the service request is subjected to corresponding statistical processing to obtain a processing result;
    在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请求中携带有在所述预设时间段内最后的处理结果,以使得所述服务器根据所述最后的处理结果进行统计处理。After the preset time period, sending a service request to the server, where the service request carries a last processing result in the preset time period, so that the server is configured according to the last processing result. Perform statistical processing.
  2. 根据权利要求1所述的服务请求处理方法,所述方法还包括:The service request processing method according to claim 1, further comprising:
    向服务器发送负载状态信息的获取请求,以使得所述服务器根据所述获取请求,返回所述服务器对应的负载状态信息;Sending an acquisition request of the load status information to the server, so that the server returns the load status information corresponding to the server according to the obtaining request;
    接收所述服务器发送的所述负载状态信息;以及,Receiving the load status information sent by the server; and
    根据所述负载状态信息,配置所述预设时间段的时长。And configuring a duration of the preset time period according to the load status information.
  3. 根据权利要求2所述的服务请求处理方法,其中,所述向服务器发送负载状态信息的获取请求包括:The service request processing method according to claim 2, wherein the obtaining the acquisition request of the load status information to the server comprises:
    按照预设时间间隔向服务器发送负载状态信息的获取请求,以使得所述服务器根据所述获取请求,按照预设时间间隔返回所述服务器对应的负载状态信息。Sending the load status information acquisition request to the server according to the preset time interval, so that the server returns the load status information corresponding to the server according to the acquisition request according to the preset time interval.
  4. 根据权利要求1-3任一所述的服务请求处理方法,所述方法还包括:The service request processing method according to any one of claims 1-3, further comprising:
    接收所述服务器发送的服务请求对应的处理结果并对本地的处理结果进行更新。Receiving a processing result corresponding to the service request sent by the server and updating the local processing result.
  5. 根据权利要求1-4任一所述的服务请求处理方法,所述在所述预设时间段后,向服务器发送一个服务请求之后,所述方法还包括:The service request processing method according to any one of claims 1 to 4, after the sending a service request to the server after the preset time period, the method further includes:
    在以发送服务请求的时刻为起点的预置时间段内,检测是否接收到服务请求的发送指令;Detecting whether a transmission instruction of the service request is received within a preset time period starting from a time when the service request is sent;
    当否,则触发停止时间监测。When no, trigger stop time monitoring.
  6. 一种服务请求处理装置,包括:A service request processing apparatus includes:
    触发单元,设置为当接收到服务请求对应的发送指令时,触发启动时间监 测;The trigger unit is set to trigger the startup time monitoring when receiving the sending instruction corresponding to the service request Measurement;
    处理单元,设置为在以触发时刻为起点的预设时间段内,每当接收到服务请求对应的发送指令时,对所述服务请求进行相应的统计处理,得到处理结果;以及,The processing unit is configured to perform corresponding statistical processing on the service request to obtain a processing result when receiving a sending instruction corresponding to the service request in a preset time period starting from a triggering time; and
    发送单元,设置为在所述预设时间段后,向服务器发送一个服务请求,其中,所述服务请求中携带有在所述预设时间段内最后的处理结果,以使得所述服务器根据所述最后的处理结果进行统计处理。a sending unit, configured to send a service request to the server after the preset time period, where the service request carries a last processing result in the preset time period, so that the server is configured according to the The final processing result is statistically processed.
  7. 根据权利要求6所述的服务请求处理装置,所述装置还包括:接收单元和配置单元;The service request processing apparatus according to claim 6, further comprising: a receiving unit and a configuration unit;
    所述发送单元,还设置为向服务器发送负载状态信息的获取请求,以使得所述服务器根据所述获取请求,返回所述服务器对应的负载状态信息;The sending unit is further configured to send an acquisition request of the load status information to the server, so that the server returns the load status information corresponding to the server according to the obtaining request;
    所述接收单元,设置为接收所述服务器发送的所述负载状态信息;The receiving unit is configured to receive the load status information sent by the server;
    所述配置单元,设置为根据所述负载状态信息,配置所述预设时间段的时长。The configuration unit is configured to configure a duration of the preset time period according to the load status information.
  8. 根据权利要求7所述的服务请求处理装置,其中,The service request processing device according to claim 7, wherein
    所述发送单元,是设置为按照预设时间间隔向服务器发送负载状态信息的获取请求,以使得所述服务器根据所述获取请求,按照预设时间间隔返回所述服务器对应的负载状态信息。The sending unit is configured to send the load status information to the server according to the preset time interval, so that the server returns the load status information corresponding to the server according to the acquiring request according to the preset time interval.
  9. 根据权利要求6-8任一所述的服务请求处理装置,所述装置还包括:更新单元;The service request processing apparatus according to any one of claims 6-8, further comprising: an update unit;
    所述接收单元,还设置为接收所述服务器发送的服务请求对应的处理结果;The receiving unit is further configured to receive a processing result corresponding to the service request sent by the server;
    所述更新单元,设置为根据所述接收单元接收的处理结果,对本地的处理结果进行更新。The updating unit is configured to update the local processing result according to the processing result received by the receiving unit.
  10. 根据权利要求6-9任一所述的服务请求处理装置,所述装置还包括:检测单元;The service request processing apparatus according to any one of claims 6-9, further comprising: a detecting unit;
    所述检测单元,设置为在以发送服务请求的时刻为起点的预置时间段内,检测是否接收到服务请求的发送指令;The detecting unit is configured to detect whether a sending instruction of the service request is received within a preset time period starting from a time when the service request is sent;
    所述触发单元,还设置为当所述检测单元检测出在所述预置时间段内没有 接收到服务请求的发送指令,则触发停止时间监测。The triggering unit is further configured to: when the detecting unit detects that there is no time in the preset time period When the send command of the service request is received, the stop time monitoring is triggered.
  11. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-5任一项的服务请求处理方法。The memory stores instructions executable by the one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the service request processing of any of claims 1-5 method.
  12. 一种非暂态计算机可读存储介质,其中,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行权利要求1-5任一项的服务请求处理方法。A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the service request processing of any of claims 1-5 method.
  13. 一种计算机程序产品,其中,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-5任一项的服务请求处理方法。 A computer program product, comprising: a computing program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, The computer executes the service request processing method of any one of claims 1-5.
PCT/CN2016/097904 2016-03-30 2016-09-02 Service request processing method and device WO2017166713A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610191412.7 2016-03-30
CN201610191412.7A CN105847367A (en) 2016-03-30 2016-03-30 Service request processing method and apparatus

Publications (1)

Publication Number Publication Date
WO2017166713A1 true WO2017166713A1 (en) 2017-10-05

Family

ID=56584020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097904 WO2017166713A1 (en) 2016-03-30 2016-09-02 Service request processing method and device

Country Status (2)

Country Link
CN (1) CN105847367A (en)
WO (1) WO2017166713A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712489A (en) * 2018-05-11 2018-10-26 中国平安人寿保险股份有限公司 A kind of breaking control method, device and its readable storage medium storing program for executing of network linking
CN111026526A (en) * 2019-11-12 2020-04-17 珠海格力电器股份有限公司 Program timer configuration method, device, storage medium and terminal equipment
CN111046077A (en) * 2019-10-29 2020-04-21 口碑(上海)信息技术有限公司 Data acquisition method and device, storage medium and terminal
CN111858043A (en) * 2020-07-10 2020-10-30 海尔优家智能科技(北京)有限公司 Service request processing method and device, storage medium and electronic device
CN113703844A (en) * 2021-07-27 2021-11-26 厦门市思芯微科技有限公司 Instruction issuing method, system and device and computer readable storage medium
CN113744028A (en) * 2021-09-07 2021-12-03 北京沃东天骏信息技术有限公司 Method, apparatus, device, medium and program product for acquiring quantity of articles
CN113760398A (en) * 2020-09-29 2021-12-07 北京沃东天骏信息技术有限公司 Interface calling method, server, system and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847367A (en) * 2016-03-30 2016-08-10 乐视控股(北京)有限公司 Service request processing method and apparatus
CN106503977B (en) * 2016-10-20 2021-04-09 财付通支付科技有限公司 Data processing method, system and device
CN107734394B (en) * 2017-10-16 2020-03-03 北京京东尚科信息技术有限公司 Method and device for displaying animation information
CN107920120A (en) * 2017-11-22 2018-04-17 北京小米移动软件有限公司 Method for processing business, device and computer-readable recording medium
CN109683786A (en) * 2018-12-25 2019-04-26 北京微播视界科技有限公司 Update method, electronic equipment and the computer storage medium of user interface information
CN115079836A (en) * 2021-03-10 2022-09-20 北京搜狗科技发展有限公司 Request processing method, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166827A (en) * 2011-12-09 2013-06-19 北京神州泰岳软件股份有限公司 Method and system for user behavior data reporting
CN103686354A (en) * 2013-12-04 2014-03-26 青岛海信电器股份有限公司 Smart television terminal and method for counting reporting key use behaviors
CN105095423A (en) * 2015-07-15 2015-11-25 北京奇虎科技有限公司 Write-in method and device for count data
CN105389117A (en) * 2015-12-07 2016-03-09 腾讯科技(深圳)有限公司 Resource acquiring method and apparatus and resource processing method, apparatus and system
CN105847367A (en) * 2016-03-30 2016-08-10 乐视控股(北京)有限公司 Service request processing method and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155341A (en) * 2006-09-26 2008-04-02 北京龙迹天地科技有限公司 Wireless content service system, server and corresponding terminal
CN102255867A (en) * 2010-05-18 2011-11-23 华为技术有限公司 Service request processing method, device and system
CN101820635A (en) * 2010-05-20 2010-09-01 中兴通讯股份有限公司 Method and device for acquiring mobile communication data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166827A (en) * 2011-12-09 2013-06-19 北京神州泰岳软件股份有限公司 Method and system for user behavior data reporting
CN103686354A (en) * 2013-12-04 2014-03-26 青岛海信电器股份有限公司 Smart television terminal and method for counting reporting key use behaviors
CN105095423A (en) * 2015-07-15 2015-11-25 北京奇虎科技有限公司 Write-in method and device for count data
CN105389117A (en) * 2015-12-07 2016-03-09 腾讯科技(深圳)有限公司 Resource acquiring method and apparatus and resource processing method, apparatus and system
CN105847367A (en) * 2016-03-30 2016-08-10 乐视控股(北京)有限公司 Service request processing method and apparatus

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712489A (en) * 2018-05-11 2018-10-26 中国平安人寿保险股份有限公司 A kind of breaking control method, device and its readable storage medium storing program for executing of network linking
CN111046077A (en) * 2019-10-29 2020-04-21 口碑(上海)信息技术有限公司 Data acquisition method and device, storage medium and terminal
CN111026526A (en) * 2019-11-12 2020-04-17 珠海格力电器股份有限公司 Program timer configuration method, device, storage medium and terminal equipment
CN111026526B (en) * 2019-11-12 2024-01-30 珠海格力电器股份有限公司 Timer configuration method and device for program, storage medium and terminal equipment
CN111858043A (en) * 2020-07-10 2020-10-30 海尔优家智能科技(北京)有限公司 Service request processing method and device, storage medium and electronic device
CN111858043B (en) * 2020-07-10 2024-03-22 海尔优家智能科技(北京)有限公司 Service request processing method and device, storage medium and electronic device
CN113760398A (en) * 2020-09-29 2021-12-07 北京沃东天骏信息技术有限公司 Interface calling method, server, system and storage medium
CN113703844A (en) * 2021-07-27 2021-11-26 厦门市思芯微科技有限公司 Instruction issuing method, system and device and computer readable storage medium
CN113744028A (en) * 2021-09-07 2021-12-03 北京沃东天骏信息技术有限公司 Method, apparatus, device, medium and program product for acquiring quantity of articles

Also Published As

Publication number Publication date
CN105847367A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
WO2017166713A1 (en) Service request processing method and device
US11659098B2 (en) Information reminding method and apparatus, and electronic terminal
US9961129B2 (en) Business transaction correlation with client request monitoring data
EP2488938B1 (en) Data update for website users based on preset conditions
US10452469B2 (en) Server performance correction using remote server actions
GB2518739A (en) Custom Correlation of a Distributed Business Transaction
US20230362122A1 (en) Watermark-based message queue
US20130347004A1 (en) Correlating messages
US20160321906A1 (en) Alert management within a network based virtual collaborative space
CN110502324B (en) Processing method, system and storage medium for restart data of cloud mobile phone game
CN112057846B (en) Interaction method, device, equipment and storage medium for cloud game service scheduling
CN115004673A (en) Message pushing method and device, electronic equipment and computer readable medium
CN106941509B (en) User information flow request method and device
WO2022041879A1 (en) Method and apparatus for processing notification trigger message
CN115658745A (en) Data processing method, data processing device, computer equipment and computer readable storage medium
CN111694645B (en) Task processing method and related device in distributed task scheduling system
CN113268317B (en) Task processing method and device and electronic equipment
US8751564B2 (en) Reducing latency for served applications by anticipatory preprocessing
CN111901366B (en) Data pushing method, device, equipment and storage medium
US9270742B2 (en) Computer system and control method of computer system
US20140040452A1 (en) Processing requests
CN109995855B (en) Data acquisition method, device and terminal
EP2776934B1 (en) Management apparatus and control method of management apparatus
CN110944027B (en) Access processing method, device, equipment and system
CN117130678A (en) Animation playing method, device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16896483

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896483

Country of ref document: EP

Kind code of ref document: A1