CN111625375B - Account reservation method and device, storage medium and electronic equipment - Google Patents

Account reservation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111625375B
CN111625375B CN202010443160.9A CN202010443160A CN111625375B CN 111625375 B CN111625375 B CN 111625375B CN 202010443160 A CN202010443160 A CN 202010443160A CN 111625375 B CN111625375 B CN 111625375B
Authority
CN
China
Prior art keywords
target
reservation
frequency
current
reservation information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010443160.9A
Other languages
Chinese (zh)
Other versions
CN111625375A (en
Inventor
王聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010443160.9A priority Critical patent/CN111625375B/en
Publication of CN111625375A publication Critical patent/CN111625375A/en
Application granted granted Critical
Publication of CN111625375B publication Critical patent/CN111625375B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses an account reservation method and device, a storage medium and electronic equipment. Wherein the method comprises the following steps: the method comprises the steps of acquiring first reservation information of a first account sent by a target application, adding the first reservation information to a target reservation queue under the condition that target resources which are not reserved exist, determining reservation waiting time of the first reservation information according to the number of the reservation information which are not processed in the target reservation queue and the current calling frequency of a target interface, sending a first reservation result to the target application under the condition that the reservation waiting time does not exceed a target threshold value, and sending a corresponding reservation result to the target application by dynamically adjusting the reservation queue and according to the waiting time of the reservation information. The invention solves the technical problems that the reservation is difficult to be completed quickly and efficiently when the user performs the reservation operation and the reservation operation efficiency is low in the related technology.

Description

Account reservation method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for reserving an account, a storage medium, and an electronic device.
Background
In the field of internet of things, some key write operation interfaces are provided by ISV (Independent Software Vendors, independent software developer), and the performance and stability fluctuate greatly, and the prior art is mainly divided into two types: 1) The actual processing capacity of the ISV interface is not considered, the ISV interface is directly called under the condition of user reservation operation, and other users cannot continue the reservation operation due to the fact that the request quantity of the users is overlarge and exceeds the maximum load quantity of the ISV interface; 2) By setting the maximum value of the calling frequency, when the current calling frequency is lower than the maximum value of the calling frequency, the ISV interface is directly called, when the current calling frequency is higher than the maximum value of the calling frequency, the subsequent calling request is discarded, when the request quantity is low, the performance of the interface of the partner cannot be utilized to the maximum extent, and when the reservation request quantity is large, part of users can fail and the users are required to reserve again by themselves.
Therefore, the prior related art has the technical problems that when a user performs reservation operation, the reservation is difficult to be completed quickly and efficiently, and the reservation operation efficiency is low.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides an account reservation method and device, a storage medium and electronic equipment, which at least solve the technical problems that reservation is difficult to be completed quickly and efficiently and reservation operation efficiency is low when a user performs reservation operation in the related technology.
According to one aspect of the embodiment of the invention, there is provided an account reservation method, including: acquiring first reservation information of a first account sent by a target application, wherein the first reservation information is used for reserving target resources for the first account; adding the first reservation information to a target reservation queue in the case that the target resource which is not reserved exists, wherein the target reservation queue is used for recording the reservation information which is not processed and is used for reserving the target resource; determining reservation waiting time of the first reservation information according to the number of the reservation information which is not processed in the target reservation queue and the current calling frequency of a target interface, wherein the target interface is used for calling according to the current calling frequency to process the reservation information which is recorded in the target reservation queue and is not processed, and the reservation waiting time is used for representing waiting time required by calling the target interface to process the first reservation information in the target reservation queue; and under the condition that the reservation waiting time does not exceed a target threshold value, sending a first reservation result to the target application, wherein the first reservation result is used for indicating whether the reservation of the first account to the target resource is successful or not.
Optionally, the method further comprises: and sending a second reservation result to the target application under the condition that the reservation waiting time exceeds the target threshold, wherein the second reservation result is used for indicating that the target resource is reserved.
Optionally, the determining the reservation waiting time of the first reservation information according to the number of the reservation information which is not processed in the target reservation queue and the current calling frequency of the target interface includes: determining the reservation waiting time of the first reservation information by the following formula: t=l/p+t, where T represents the reservation waiting time, L represents the number of reservation information that has not been processed in the target reservation queue, P represents the current call frequency of the target interface, and T represents the average delay of calling the target interface.
Optionally, after the obtaining the first subscription information of the first account sent by the target application, the method further includes: determining whether the target resource which is not reserved exists; and sending a third reservation result to the target application under the condition that the target resource which is not reserved yet exists is determined, wherein the third reservation result is used for indicating that the reservation to the target resource for the first account is not successful.
Optionally, the determining whether the target resource which has not been reserved exists includes:
acquiring the current residual quantity of the target resource;
determining that the target resource which is not reserved does not exist under the condition that the residual quantity is less than or equal to 0;
subtracting 1 from the remaining number to obtain an updated number if the remaining number is greater than 0, wherein the target resource is set to allow reservation by a plurality of accounts simultaneously;
under the condition that the updated quantity is smaller than 0, determining that the target resource which is not reserved does not exist; and under the condition that the updated quantity is greater than or equal to 0, determining that the target resource which is not reserved exists.
Optionally, the obtaining the current remaining number of the target resource includes: the remaining number of the target resources corresponding to a target time period where the current moment is located is obtained, wherein the target resources are provided with a corresponding maximum number of reserved allowed times in each time period in a plurality of time periods, and the time periods comprise the target time period.
Optionally, the adding the first reservation information to a target reservation queue in the case that the target resource which has not been reserved exists includes: if there is the target resource that has not been reserved and the first reservation information is information of non-repeat reservation, the first reservation information is added to the target reservation queue.
Optionally, after obtaining the first subscription information of the first account sent by the target application, the method includes: determining whether the first reservation information is recorded in the target reservation queue; determining the first reservation information as non-repeated reservation information in the case that the first reservation information is not recorded in the target reservation queue; and determining the first reservation information as information of repeated reservation when the first reservation information is recorded in the target reservation queue.
Optionally, the dynamically determining the current calling frequency of the target interface according to a result of calling the target interface to process the reservation information which is recorded in the target reservation queue and not yet processed includes: determining the current calling frequency of the target interface in the current period as a first frequency under the condition that the calling frequency of the target interface reaches the first frequency in the previous period of the current period and the target interface is successfully called in the previous period to process the unprocessed reservation information recorded in the target reservation queue, wherein the first frequency is a preset maximum frequency; and/or determining the current calling frequency of the target interface in the current period as a third frequency smaller than the second frequency when the calling frequency of the target interface is the second frequency in the period previous to the current period and the target interface is not successfully called to process the unprocessed reservation information recorded in the target reservation queue in the period previous to the current period; under the condition that the calling frequency of the target interface is smaller than a first frequency in a plurality of continuous periods before a current period, the target interface is successfully called to process the unprocessed reservation information recorded in the target reservation queue in a plurality of continuous periods before the current period, and the total number of the reservation information to be processed recorded in the target reservation queue of the last period before the current period is larger than the calling frequency of the target interface, the current calling frequency of the target interface in the current period is determined to be a fourth frequency, wherein the first frequency is a preset maximum frequency, and the fourth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period; and/or determining the current calling frequency of the target interface in the current period as a fifth frequency when the calling frequency of the target interface in the current period is smaller than the first frequency, the target interface is successfully called in a plurality of continuous periods before the current period to process the unprocessed reservation information recorded in the target reservation queue, and the total number of the reservation information to be processed recorded in the target reservation queue of the current period is larger than the calling frequency of the target interface, wherein the first frequency is a preset maximum frequency, and the fifth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period.
Optionally, the determining the current call frequency of the target interface in the current period as a third frequency smaller than the second frequency includes: acquiring a first quantity and a second quantity, wherein the first quantity represents the quantity of processing the unprocessed reservation information recorded in the target reservation queue without successfully calling the target interface in the last period, and the second quantity represents the total number of reservation information to be processed recorded in the target reservation queue in the last period; and determining the current calling frequency as the third frequency, wherein the third frequency is the second frequency (1-n is the first number/the second number), n is a preset attenuation multiple, n is a natural number, and the third frequency is larger than 0.
Optionally, the determining the current call frequency of the target interface in the current period as the fourth frequency includes: acquiring the calling frequency of the target interface in the period previous to the current period as a sixth frequency; and determining the current calling frequency as the fourth frequency, wherein the fourth frequency is m, the sixth frequency is m is greater than 1, and the fourth frequency is less than or equal to the first frequency.
Optionally, the method further comprises: and calling the target interface in the current period according to the current calling frequency in the current period to process the unprocessed reservation information recorded in the target reservation queue to obtain a corresponding reservation result of whether the target resource is reserved successfully.
According to another aspect of the embodiment of the present invention, there is also provided an account reservation apparatus, including: the acquisition module is used for acquiring first reservation information of a first account sent by a target application, wherein the first reservation information is used for reserving target resources for the first account; an adding module, configured to add, in a case where the target resource that has not been reserved exists, the first reservation information to a target reservation queue, where the target reservation queue is configured to record reservation information that has not been processed, and the reservation information is configured to reserve the target resource; the determining module is used for determining the reservation waiting time of the first reservation information according to the number of the reservation information which is not processed in the target reservation queue and the current calling frequency of a target interface, wherein the target interface is used for being called according to the current calling frequency to process the reservation information which is recorded in the target reservation queue and is not processed, and the reservation waiting time is used for representing waiting time required by calling the target interface to process the first reservation information in the target reservation queue; and the sending module is used for sending a first reservation result to the target application under the condition that the reservation waiting time does not exceed a target threshold value, wherein the first reservation result is used for indicating whether the reservation of the first account to the target resource is successful or not.
Optionally, the device is further configured to: and sending a second reservation result to the target application under the condition that the reservation waiting time exceeds the target threshold, wherein the second reservation result is used for indicating that the target resource is reserved.
Optionally, the determining module is configured to determine the reservation waiting time of the first reservation information, including:
determining the reservation waiting time of the first reservation information by the following formula:
t=L/P+T,
wherein T represents the reservation waiting time, L represents the number of reservation information which is not processed in the target reservation queue, P represents the current calling frequency of the target interface, and T represents the average delay of calling the target interface.
Optionally, the device is further configured to: after the first reservation information of the first account sent by the target application is obtained, determining whether the target resource which is not reserved exists; and sending a third reservation result to the target application under the condition that the target resource which is not reserved yet exists is determined, wherein the third reservation result is used for indicating that the reservation to the target resource for the first account is not successful.
Optionally, the apparatus is configured to determine whether the target resource that has not been reserved exists by: acquiring the current residual quantity of the target resource; determining that the target resource which is not reserved does not exist under the condition that the residual quantity is less than or equal to 0; subtracting 1 from the remaining number to obtain an updated number if the remaining number is greater than 0, wherein the target resource is set to allow reservation by a plurality of accounts simultaneously; under the condition that the updated quantity is smaller than 0, determining that the target resource which is not reserved does not exist; and under the condition that the updated quantity is greater than or equal to 0, determining that the target resource which is not reserved exists.
Optionally, the device is configured to obtain the current remaining number of the target resource by the following method, including: the remaining number of the target resources corresponding to a target time period where the current moment is located is obtained, wherein the target resources are provided with a corresponding maximum number of reserved allowed times in each time period in a plurality of time periods, and the time periods comprise the target time period.
Optionally, the apparatus is configured to add the first reservation information to a target reservation queue in a case where there is the target resource that has not been reserved by: if there is the target resource that has not been reserved and the first reservation information is information of non-repeat reservation, the first reservation information is added to the target reservation queue.
Optionally, the device is further configured to: after first reservation information of a first account sent by a target application is acquired, determining whether the first reservation information is recorded in the target reservation queue; determining the first reservation information as non-repeated reservation information in the case that the first reservation information is not recorded in the target reservation queue; and determining the first reservation information as information of repeated reservation when the first reservation information is recorded in the target reservation queue.
Optionally, the device is configured to dynamically determine the current call frequency of the target interface according to a result of calling the target interface to process the unprocessed reservation information recorded in the target reservation queue, where the method includes: determining the current calling frequency of the target interface in the current period as a first frequency under the condition that the calling frequency of the target interface reaches the first frequency in the previous period of the current period and the target interface is successfully called in the previous period to process the unprocessed reservation information recorded in the target reservation queue, wherein the first frequency is a preset maximum frequency; and/or determining the current calling frequency of the target interface in the current period as a third frequency smaller than the second frequency when the calling frequency of the target interface is the second frequency in the period previous to the current period and the target interface is not successfully called to process the unprocessed reservation information recorded in the target reservation queue in the period previous to the current period; under the condition that the calling frequency of the target interface is smaller than a first frequency in a plurality of continuous periods before a current period, the target interface is successfully called to process the unprocessed reservation information recorded in the target reservation queue in a plurality of continuous periods before the current period, and the total number of the reservation information to be processed recorded in the target reservation queue of the last period before the current period is larger than the calling frequency of the target interface, the current calling frequency of the target interface in the current period is determined to be a fourth frequency, wherein the first frequency is a preset maximum frequency, and the fourth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period; and/or determining the current calling frequency of the target interface in the current period as a fifth frequency when the calling frequency of the target interface in the current period is smaller than the first frequency, the target interface is successfully called in a plurality of continuous periods before the current period to process the unprocessed reservation information recorded in the target reservation queue, and the total number of the reservation information to be processed recorded in the target reservation queue of the current period is larger than the calling frequency of the target interface, wherein the first frequency is a preset maximum frequency, and the fifth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period.
Optionally, the device is configured to determine the current call frequency of the target interface in the current period as a third frequency smaller than the second frequency by: acquiring a first quantity and a second quantity, wherein the first quantity represents the quantity of processing the unprocessed reservation information recorded in the target reservation queue without successfully calling the target interface in the last period, and the second quantity represents the total number of reservation information to be processed recorded in the target reservation queue in the last period; and determining the current calling frequency as the third frequency, wherein the third frequency is the second frequency (1-n is the first number/the second number), n is a preset attenuation multiple, n is a natural number, and the third frequency is larger than 0.
Optionally, the device is configured to determine the current call frequency of the target interface in the current period as a fourth frequency by: acquiring the calling frequency of the target interface in the period previous to the current period as a sixth frequency; and determining the current calling frequency as the fourth frequency, wherein the fourth frequency is m, the sixth frequency is m is greater than 1, and the fourth frequency is less than or equal to the first frequency.
Optionally, the device is further configured to: and calling the target interface in the current period according to the current calling frequency in the current period to process the unprocessed reservation information recorded in the target reservation queue to obtain a corresponding reservation result of whether the target resource is reserved successfully.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the account reservation method described above when running.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device including a memory in which a computer program is stored, and a processor configured to execute the account reservation method described above by the computer program.
In the embodiment of the invention, the first reservation information of the first account sent by the target application is acquired, the first reservation information is added to the target reservation queue under the condition that target resources which are not reserved exist, the reservation waiting time of the first reservation information is determined according to the number of the reservation information which is not processed in the target reservation queue and the current calling frequency of the target interface, the first reservation result is sent to the target application under the condition that the reservation waiting time does not exceed the target threshold, and the corresponding reservation result is sent to the target application according to the waiting time of the reservation information by dynamically adjusting the reservation queue, so that the aim of realizing account reservation by using the interface is fulfilled, thereby realizing the technical effects of optimizing user experience when a user reserves, improving the efficiency of the user reservation, and further solving the technical problems that the user is difficult to quickly and efficiently finish reservation and the reservation operation efficiency is low when the user performs the reservation operation in the related technology.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic illustration of an application environment of an alternative account reservation method according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative account reservation method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another alternative account reservation method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of yet another alternative account reservation method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of yet another alternative account reservation method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of yet another alternative account reservation method according to an embodiment of the present application;
FIG. 7 is a schematic diagram of yet another alternative account reservation method according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an alternative account reservation device according to an embodiment of the present application;
FIG. 9 is a schematic diagram of an alternative account reservation device according to an embodiment of the present application;
Fig. 10 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology involved in the embodiments of the present application will be described:
ISV: independent software developers, particularly companies that are responsible for government, enterprise development systems and software.
The application is illustrated below with reference to examples:
according to an aspect of the embodiment of the present application, there is provided a method for reserving an account, optionally, in this embodiment, the method for reserving an account may be applied to a hardware environment formed by the server 101 and the user terminal 103 as shown in fig. 1. As shown in fig. 1, the server 101 is connected to the terminal 103 through a network, and may be used to provide services (such as an application service, a conference service, a game service, etc.) for a user terminal or a client installed on the user terminal, and a database 105 may be provided on the server or independent of the server, for providing a data storage service for the server 101, where the server 101 may be a single server, a server cluster formed by a plurality of servers, or a cloud server, and the user terminal 103 may be a terminal device configured with a target client, and may include, but is not limited to, at least one of the following: a mobile phone (e.g., an Android mobile phone, iOS mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile Internet Devices, mobile internet device), a PAD, a desktop computer, a smart television, etc. The target client may be a video client, an instant messaging client, a browser client, an educational client, and the like. The network may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: local area networks, metropolitan area networks, and wide area networks, the wireless network comprising: bluetooth, WIFI and other wireless communication enabled networks may use the account subscription service described above through the portal of the target application 107 deployed on the terminal. The above is merely an example, and is not limited in any way in the present embodiment.
Optionally, as an optional implementation manner, as shown in fig. 2, the account reservation method includes:
s202, acquiring first reservation information of a first account sent by a target application, wherein the first reservation information is used for reserving target resources for the first account;
s204, adding first reservation information to a target reservation queue when a target resource which is not reserved exists, wherein the target reservation queue is used for recording the reservation information which is not processed, and the reservation information is used for reserving the target resource;
s206, determining reservation waiting time of the first reservation information according to the number of the reservation information which is not processed in the target reservation queue and the current calling frequency of the target interface, wherein the target interface is used for calling the reservation information which is not processed and is recorded in the target reservation queue according to the current calling frequency, and the reservation waiting time is used for representing waiting time required for calling the target interface to process the first reservation information in the target reservation queue;
and S208, sending a first reservation result to the target application under the condition that the reservation waiting time does not exceed the target threshold, wherein the first reservation result is used for indicating whether the reservation of the first account to the target resource is successful or not.
Optionally, in this embodiment, the first account may include, but is not limited to, a medical registration, a cinema ticket purchasing queue, a restaurant dining queue, a game login queue, and the like, where relevant information processing needs to be implemented through a dedicated interface, the first reservation information may include, but is not limited to, ticket purchasing request information, game login information, and the like, and the target resource may include, but is not limited to, a cinema seat number, a hospital diagnosable number, a game server login account maximum load number, and the like.
Optionally, in this embodiment, fig. 3 is a schematic diagram of an alternative account reservation method according to an embodiment of the present invention, as shown in fig. 3, the target reservation queue may be stored using list data types including, but not limited to, redis, and may also be stored using other common databases, taking the medical field as an example, each call interface maintains a target reservation queue, uses the list data types of redis to store, the target application inserts data into the tail of the target reservation queue by using an RPUSH operation, and the provider of the target resource uses LPOP to read reservation information to be reserved from the head of the target reservation queue, where the reservation information includes, but not limited to, order ID; using the string type of redis, reservation information is saved, which may include, but is not limited to (reservation department ID (Identity), reservation date, reservation period, reservation person ID), key is prefix+department id+person ID, connected by underlining, e.g. in app_20001_224532, app is prefix, 20001 is department ID,224532 is reservation person ID)
The method comprises the following specific steps:
1) Generating a key of the reservation information, storing the reservation information in a reservation information buffer, and setting the expiration time to be 1 hour;
2) Taking the key generated in the last step as the ID of reservation information, and implanting the ID into a target reservation queue;
3) And the provider of the target resource screens data from the target reservation queue according to a certain frequency, obtains the key of the reservation information, takes the key out of the reservation information buffer and makes reservation through calling the interface.
Optionally, in this embodiment, the current call frequency may include, but is not limited to, a call frequency preset by the system or the server, and may also include, but is not limited to, a call frequency dynamically adjusted according to a call frequency in a previous preset period. The above-mentioned call to process the unprocessed reservation information recorded in the target reservation queue according to the current call frequency may include, but is not limited to, sequentially processing the unprocessed reservation information in the target reservation queue according to the preset call frequency, and may also include, but is not limited to, processing the unprocessed reservation information according to the preset call frequency in a preset order, for example, in a case of having a plurality of call interfaces, the plurality of call interfaces process the reservation information in the target reservation queue in batches.
Alternatively, in this embodiment, the reservation waiting time may include, but is not limited to, a waiting time required for a reservation request to be issued, for example, a waiting time required for the first account to complete the related registration operation when the hospital registers, the target threshold may include, but is not limited to, a preset value of the target threshold by a terminal or a server, for example, the target threshold is set to 5 seconds, after the terminal where the first account is located sends a request for 5 seconds, the first reservation result is returned to the terminal, and the reservation result may include, but is not limited to, a success of the reservation, a failure of the reservation, a 10 minute period for reservation success, etc., which is just an example, and the number value of the specific threshold is not limited in the present invention.
Optionally, in this embodiment, the first reservation result is used to indicate that the reservation of the first account to the target resource is unsuccessful, which may include, but is not limited to, that the target resource cannot be reserved, that the first account has completed the reservation, and that the call interface has a network error, for example, in a case where the interface is overtime, the interface is overloaded, an internal error, and the like, and the failure is caused by an unstable system or network of the target resource provider, the first reservation result is sent to the target application to indicate that the reservation of the first account to the target resource is unsuccessful.
According to the method and the device, the first reservation information of the first account sent by the target application is obtained, the first reservation information is added to the target reservation queue under the condition that target resources which are not reserved exist, the reservation waiting time of the first reservation information is determined according to the number of the reservation information which is not processed in the target reservation queue and the current calling frequency of the target interface, the first reservation result is sent to the target application under the condition that the reservation waiting time does not exceed a target threshold value, the purpose of realizing account reservation by using the interface to the maximum extent is achieved by dynamically adjusting the reservation queue and sending the corresponding reservation result to the target application according to the waiting time of the reservation information, therefore, user experience when a user performs reservation is optimized, the technical effect of improving efficiency of account reservation by the user is achieved, and the technical problems that reservation is difficult to be completed quickly and efficiently when the user performs reservation operation in the related art, and the reservation operation efficiency is low are solved.
In an alternative embodiment, the method further comprises: and sending a second reservation result to the target application under the condition that the reservation waiting time exceeds the target threshold, wherein the second reservation result is used for indicating that the target resource is reserved.
Optionally, in this embodiment, the second reservation result may include, but is not limited to, being queued, being connected, etc., for example, the target threshold is set to 5 seconds, after the terminal where the first account is located sends the request for 5 seconds, the terminal where the first account is located is sent to the terminal where the first account is located, where the relevant reservation result recorded in the reservation is being reserved, the second reservation result may also include, but is not limited to, the reservation waiting time, the number of waiting people, for example, waiting for 10 minutes, the number of users in the previous queue, etc., and the specific content of the second reservation result may include one or more combinations of the foregoing, or other relevant content, which is not limited in this aspect of the present invention.
In an optional embodiment, the determining the reservation waiting time of the first reservation information according to the number of the reservation information that has not been processed in the target reservation queue and the current call frequency of the target interface includes: determining the reservation waiting time of the first reservation information by the following formula:
t=L/P+T,
wherein T represents the reservation waiting time, L represents the number of reservation information which is not processed in the target reservation queue, P represents the current calling frequency of the target interface, and T represents the average delay of calling the target interface.
Optionally, in this embodiment, the average delay may be preset by a server or a system, or may be estimated by a terminal or a server, for example, the average delay of the target interface is 1 second, 50 accounts exist in the reservation queue, and the current call frequency is 1 account/second, so that the time required for successful reservation of the currently added first account is estimated to be 51 seconds.
According to the embodiment, the waiting time required by each account in the reservation operation can be obtained, and further, different prompt information can be sent to the user based on different required waiting times, for example, an interface with short time consumption returns an exact reservation result to the application terminal; and the time consumption is immediately returned to the user for estimating time consumption, so that the use experience of the user is optimized, and the reservation efficiency of the user is improved.
In an alternative embodiment, after the obtaining the first subscription information of the first account sent by the target application, the method further includes: determining whether the target resource which is not reserved exists; and sending a third reservation result to the target application under the condition that the target resource which is not reserved yet exists is determined, wherein the third reservation result is used for indicating that the reservation to the target resource for the first account is not successful.
Alternatively, in this embodiment, the target resources that have not been reserved may include, but are not limited to, the number of seats remaining in the movie theater, the number of patients that the hospital can continue to receive, the upper limit of the game account number that the game server can carry minus the number of game accounts currently online, and so on. The foregoing is merely an example, and the present invention is not limited in any way to specific application.
Optionally, in this embodiment, taking a hospital as an example, a corresponding number source (corresponding to the target resource) cache pool may be allocated to each appointment period of each department, where the index is prefix+department identifier+period; and according to the department identification and the time slot of the needed reservation recorded in the first account information, acquiring the residual number sources corresponding to the departments and the time slots in the database, and sending the third reservation result for indicating unsuccessful reservation to the target resource to the target application when the fact that the number source cache pool does not have the corresponding number source is detected.
Through the embodiment, whether the reserved content can be reserved normally or not can be effectively determined, meaningless waiting of a user is avoided, time of the user is saved, and reservation efficiency is improved.
In an alternative embodiment, said determining whether said target resource exists that has not been reserved comprises: acquiring the current residual quantity of the target resource; determining that the target resource which is not reserved does not exist under the condition that the residual quantity is less than or equal to 0; subtracting 1 from the remaining number to obtain an updated number if the remaining number is greater than 0, wherein the target resource is set to allow reservation by a plurality of accounts simultaneously; under the condition that the updated quantity is smaller than 0, determining that the target resource which is not reserved does not exist; and under the condition that the updated quantity is greater than or equal to 0, determining that the target resource which is not reserved exists.
Alternatively, in this embodiment, in the case where the remaining number is less than or equal to 0, determining that there is no target resource that has not been reserved may include, but is not limited to, a plurality of the first accounts simultaneously acquiring the target resource, or may include, but is not limited to, a plurality of accounts acquiring the target resource through different channels,
optionally, in this embodiment, when the remaining number is greater than 0, the remaining number is subtracted by 1, so that the updated number may be obtained by subtracting one from the remaining number of the target resources, which is not limited to, so as to obtain the current allocable remaining number of the target resources, so that a plurality of accounts can be prevented from simultaneously robbing a small amount of target resources, and the storage amount of the current target resources cannot be effectively prompted for the user, so that the technical effects of optimizing the use experience of the user and improving the reservation efficiency of the user can be achieved.
In an alternative embodiment, the obtaining the current remaining number of the target resource includes: the remaining number of the target resources corresponding to a target time period where the current moment is located is obtained, wherein the target resources are provided with a corresponding maximum number of reserved allowed times in each time period in a plurality of time periods, and the time periods comprise the target time period.
Alternatively, in this embodiment, the maximum number of allowed reservations may be set by a server or a terminal, for example, by the server setting the maximum number of allowed reservations for each time period according to the capability that the interface can carry or the remaining number of target resources, which may also include, but is not limited to, configuring, in a request based on the terminal, the maximum number of allowed reservations set on each time period, for example, when the user selects, in the target application, that 5 seats remain in the movie theatre, without performing a reservation operation, and then performing a subsequent operation by determining the remaining target resource number corresponding to the target time period.
According to the method and the device for reserving the target resources, the maximum number of reserved users can be configured for different time periods respectively, efficient and rapid reservation operation is achieved according to the number of the residual target resources, efficient and rapid reservation operation can be achieved according to the number of the residual target resources based on different requirements of users, and the technical effects of optimizing user experience and improving user reservation efficiency can be achieved.
In an alternative embodiment, the adding the first reservation information to a target reservation queue in the presence of the target resource that has not been reserved includes: if there is the target resource that has not been reserved and the first reservation information is information of non-repeat reservation, the first reservation information is added to the target reservation queue.
Optionally, in this embodiment, the non-repeatedly reserved information includes, but is not limited to, the same reservation information sent by the same target application terminal and identity authentication information in the reservation information, for example, in a medical field application process, after a user has reserved registration by the target application, the reservation registration information of the target application is detected again, so as to determine that the reservation information is repeated, and after the user has reserved registration based on the identity card information, the reservation registration information of the same identity card information is detected again, so as to determine that the reservation information is repeated.
The foregoing is merely an example, and a specific manner for determining whether the first subscription information is repeated may include one or more combinations of the foregoing, or other manners in which it can be determined that the subscription information is repeated, and the present invention is not limited in any way herein.
In an alternative embodiment, after obtaining the first subscription information of the first account sent by the target application, the method includes: determining whether the first reservation information is recorded in the target reservation queue; determining the first reservation information as non-repeated reservation information in the case that the first reservation information is not recorded in the target reservation queue; and determining the first reservation information as information of repeated reservation when the first reservation information is recorded in the target reservation queue.
Optionally, in this embodiment, when the user performs the reservation and submits the application, it is first determined whether the current account has a reservation in the reservation queue, and the first reservation information may be determined to be information of repeated reservation by including, but not limited to, detecting whether the current account is identified by the identification information of the current account in the account identification of the target reservation queue in the cache database, where the current account identification information is present, and determining the first reservation information to be information of non-repeated reservation where the target reservation queue does not have the first reservation information recorded.
Alternatively, in the present embodiment, after the first reservation information is determined as the information of the repeat reservation, the interface for deleting the account information recorded in the target reservation queue may be called to delete the information of the repeat reservation.
Through the embodiment, repeated submitting of the same reservation request can be effectively avoided, the utilization of the interface for reservation is increased, the use experience of a user can be optimized, and the technical effect of improving the reservation efficiency of the user can be achieved.
In an optional embodiment, the dynamically determining the current calling frequency of the target interface according to a result of calling the target interface to process the unprocessed reservation information recorded in the target reservation queue includes: determining the current calling frequency of the target interface in the current period as a first frequency under the condition that the calling frequency of the target interface reaches the first frequency in the previous period of the current period and the target interface is successfully called in the previous period to process the unprocessed reservation information recorded in the target reservation queue, wherein the first frequency is a preset maximum frequency; and/or determining the current calling frequency of the target interface in the current period as a third frequency smaller than the second frequency when the calling frequency of the target interface is the second frequency in the period previous to the current period and the target interface is not successfully called to process the unprocessed reservation information recorded in the target reservation queue in the period previous to the current period; under the condition that the calling frequency of the target interface is smaller than a first frequency in a plurality of continuous periods before a current period, the target interface is successfully called to process the unprocessed reservation information recorded in the target reservation queue in a plurality of continuous periods before the current period, and the total number of the reservation information to be processed recorded in the target reservation queue of the last period before the current period is larger than the calling frequency of the target interface, the current calling frequency of the target interface in the current period is determined to be a fourth frequency, wherein the first frequency is a preset maximum frequency, and the fourth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period; and/or determining the current calling frequency of the target interface in the current period as a fifth frequency when the calling frequency of the target interface in the current period is smaller than the first frequency, the target interface is successfully called in a plurality of continuous periods before the current period to process the unprocessed reservation information recorded in the target reservation queue, and the total number of the reservation information to be processed recorded in the target reservation queue of the current period is larger than the calling frequency of the target interface, wherein the first frequency is a preset maximum frequency, and the fifth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period.
Optionally, in this embodiment, the current call frequency of the target interface may be dynamically adjusted, and fig. 4 is a schematic diagram of an alternative account reservation method according to an embodiment of the present invention, as shown in fig. 4, the frequency maintenance 402 is that the frequency of processing the unprocessed reservation information recorded in the target reservation queue by calling the target interface has reached the highest call frequency preset by the system, and in a preset period, all reservation calls are successful, and the target interface is continuously called according to the frequency, so as to ensure that the reservation processing is realized by using the call interface maximally.
Optionally, in this embodiment, the frequency attenuation 404 reduces the calling frequency, and ensures that the reservation processing is preferentially and stably implemented when there is an unsuccessful call to the target interface to process the reservation information which is recorded in the target reservation queue and is not yet processed in the previous period.
Optionally, in this embodiment, when the frequency recovery 406 and the frequency recovery 408 detect that the call frequencies of the multiple periods before the current period are all less than the preset maximum call frequency, the processing results of the reservation information in the multiple periods before the current period are all successful, and the number of the reservation information to be processed recorded in the target reservation queue of the previous period of the current period is greater than the number of the reservation information that has been processed through the call target interface in the target reservation queue of the previous period of the current period, the call frequency is updated to the fourth frequency, where the fourth frequency may include, but is not limited to, the maximum call frequency (frequency recovery 406) or the ratio (frequency recovery 408) between the number of the reservation information to be processed recorded in the target reservation queue of the previous period of the current period and the number of the reservation information that has been processed through the call target interface in the target reservation queue of the previous period is not limited to the maximum call frequency, for example, if the number of the call target interface is 100%, and the task in the call frequency is 1 time of the call frequency is not greater than the maximum, and the call frequency is not increased by the preset frequency (for example, if the call frequency is increased by 1 time, and the current frequency is not increased by a factor of 1, and the current frequency is increased by a factor of the current frequency is not increased by a factor of 36, and the current frequency is further increased by a factor of 1, and the current consumption is further increased, and the current frequency is not increased by a current consumption is achieved.
According to the method and the device, the calling frequency of the calling interface is dynamically adjusted, so that reservation processing can be realized by the calling interface to the maximum extent, and the processing stability can be maintained.
In an optional embodiment, the determining the current call frequency of the target interface in the current period as a third frequency smaller than the second frequency includes: acquiring a first quantity and a second quantity, wherein the first quantity represents the quantity of processing the unprocessed reservation information recorded in the target reservation queue without successfully calling the target interface in the last period, and the second quantity represents the total number of reservation information to be processed recorded in the target reservation queue in the last period; and determining the current calling frequency as the third frequency, wherein the third frequency is the second frequency (1-n is the first number/the second number), n is a preset attenuation multiple, n is a natural number, and the third frequency is larger than 0.
Optionally, in this embodiment, for example, when the target interface is not successfully invoked to process the unprocessed reservation information recorded in the target reservation queue in the previous period, the type of unsuccessful processing is first determined, failure caused by instability of the target resource provider system or network, such as interface timeout, interface overload, internal error, etc., is counted as error (corresponding to the first number), in the 1s counting period, the invocation frequency is attenuated by 2 times (corresponding to the first number/the second number) of error rate (corresponding to the preset attenuation multiple), the invocation frequency in the previous period is configured to be 100, and the error rate is 20%, so that the invocation frequency needs to be attenuated by 40% in the next period, that is, the invocation frequency of the next period is 60 (corresponding to the third frequency), and the first number is the number of the reservation information that is not successfully invoked for processing the interface in the previous period, and the second number is the total amount of the reservation information that needs to be processed in the previous period.
According to the method and the device for scheduling the mobile terminal, the frequency of reservation processing is determined based on the number of processing reservation failure, so that the calling frequency is more flexible, real-time adjustment can be performed according to the current reservation processing result, and further, the technical effects of optimizing user experience and improving user reservation efficiency are achieved.
In an optional embodiment, the determining the current call frequency of the target interface in the current period as the fourth frequency includes: acquiring the calling frequency of the target interface in the period previous to the current period as a sixth frequency; and determining the current calling frequency as the fourth frequency, wherein the fourth frequency is m, the sixth frequency is m is greater than 1, and the fourth frequency is less than or equal to the first frequency.
Alternatively, in this embodiment, the number of the above-mentioned continuous multiple periods may be set to be 5, that is, if the success rate of the reservation processing in the duration of 5 statistical periods is 100%, and the frequency of calling the target interface does not reach the maximum calling interface frequency, and the number of tasks in the queue is more than 1 time of the calling frequency (which means that the speed of the newly generated task is greater than the speed of the consumption), the calling frequency may be increased, and a specific increasing manner may include, but is not limited to, increasing in a manner of 1.5 times the existing frequency (corresponding to the fourth frequency), for example, the existing frequency is 36, the next calling frequency is adjusted to be 54, and when the frequency is increased to the budget maximum frequency 100, the maximum calling frequency is maintained to call the target interface.
The above is merely an example, and the present embodiment is not particularly limited, and is specifically used to adjust the calling frequency.
In an alternative embodiment, the method further comprises: and calling the target interface in the current period according to the current calling frequency in the current period to process the unprocessed reservation information recorded in the target reservation queue to obtain a corresponding reservation result of whether the target resource is reserved successfully.
Alternatively, in the present embodiment, the reservation result may include, but is not limited to, success of reservation, failure of reservation, reservation result based on the reservation waiting time described above, and the like.
Through the embodiment, on one hand, the user experience when a large number of users reserve numbers is guaranteed, on the other hand, the calling frequency of calling interfaces is dynamically adjusted, the interface calling is maximally carried out, meanwhile, the problem that services are not available due to the fact that the interfaces are crushed is avoided, and the technical effects of optimizing the user experience and improving the user reservation efficiency can be achieved.
The invention is described in its entirety with reference to the following specific examples:
optionally, in this embodiment, fig. 5 is a schematic diagram of another account reservation method according to an embodiment of the present invention, as shown in fig. 5, specifically including the following steps:
S502, entering an applet/app (application, corresponding to the target application) through the terminal, and sending reservation information;
s504, judging whether a number exists (corresponding to whether the target resource capable of being reserved exists or not), executing step S506 when the judgment result is that the number exists, returning to step S502 when the judgment result is that the number does not exist, and returning to the reservation failure result to the app or the applet;
s506, adding reservation information to a target reservation queue;
s508, calling reservation information (corresponding to the first reservation information) in the reservation queue through the ISV interface, dynamically adjusting the calling frequency (corresponding to the result of processing the unprocessed reservation information recorded in the target reservation queue according to the calling target interface, and dynamically determining the current calling frequency of the target interface) according to the success rate of the reservation operation performed by the calling interface, specifically, dynamically adjusting the calling frequency in three modes of frequency maintenance, frequency attenuation and frequency recovery, wherein the frequency recovery can be recovered to the maximum frequency, and also can be recovered to the preset multiple of the calling frequency of the previous period based on the calling failure proportion;
s510, updating the number source buffer (corresponding to the residual quantity of the target resource)
S512, calculating the queuing time (corresponding to the reserved waiting time), comparing the calculated queuing time with a preset time threshold, judging the corresponding queuing time as short in estimated time when the queuing time is smaller than the preset time threshold, executing step S514, and judging the corresponding queuing time as long in estimated time when the queuing time is larger than the preset time threshold, and executing step S516;
s514, returning to the reservation state in real time (corresponding to the case that the first reservation result includes a successful reservation) when the state of the queuing time is the estimated time is short, where fig. 6 is a schematic diagram of another account reservation method according to an embodiment of the present invention, as shown in fig. 6, the first reservation result of the successful reservation is recorded in fig. 6, and may include, but is not limited to, specific reservation personnel, reservation location, reservation time, and the like.
S516, in the case that the state of the queuing time is that the estimated time is long, the reservation result is notified through an asynchronous message (corresponding to the foregoing case that the first reservation result includes that the reservation is unsuccessful), where fig. 7 is a schematic diagram of another account reservation method according to an embodiment of the present invention, as shown in fig. 7, the first reservation result that the current reservation is unsuccessful is recorded in fig. 7, and may include, but is not limited to, a specific reservation waiting time, a reason for the unsuccessful reservation, and a person, place, time, etc. that want to reserve.
S518, the reservation result is returned to the applet or app.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the invention, an account reservation device for implementing the account reservation method is also provided. As shown in fig. 8, the apparatus includes:
an obtaining module 802, configured to obtain first reservation information of a first account sent by a target application, where the first reservation information is used to reserve a target resource for the first account;
an adding module 804, configured to add, if there is the target resource that has not yet been reserved, the first reservation information to a target reservation queue, where the target reservation queue is configured to record reservation information that has not yet been processed, and the reservation information is configured to reserve the target resource;
A determining module 806, configured to determine a reservation waiting time of the first reservation information according to the number of reservation information that has not been processed in the target reservation queue and a current calling frequency of a target interface, where the target interface is used to be called according to the current calling frequency to process the reservation information that has not been processed and is recorded in the target reservation queue, and the reservation waiting time is used to represent a waiting time required to call the target interface to process the first reservation information in the target reservation queue;
and a sending module 808, configured to send a first reservation result to the target application if the reservation waiting time does not exceed a target threshold, where the first reservation result is used to indicate whether to successfully reserve the first account for the target resource.
In an alternative embodiment, the apparatus is further adapted to: and sending a second reservation result to the target application under the condition that the reservation waiting time exceeds the target threshold, wherein the second reservation result is used for indicating that the target resource is reserved.
In an alternative embodiment, fig. 9 is a schematic structural diagram of an account reservation device according to an embodiment of the present invention, where the determining module 806 includes: a determining unit 902, configured to determine the reservation waiting time of the first reservation information according to the following formula:
t=L/P+T,
Wherein T represents the reservation waiting time, L represents the number of reservation information which is not processed in the target reservation queue, P represents the current calling frequency of the target interface, and T represents the average delay of calling the target interface.
In an alternative embodiment, the apparatus is further adapted to: after the first reservation information of the first account sent by the target application is obtained, determining whether the target resource which is not reserved exists; and sending a third reservation result to the target application under the condition that the target resource which is not reserved yet exists is determined, wherein the third reservation result is used for indicating that the reservation to the target resource for the first account is not successful.
In an alternative embodiment, the apparatus is configured to determine whether the target resource that has not been reserved exists by: acquiring the current residual quantity of the target resource; determining that the target resource which is not reserved does not exist under the condition that the residual quantity is less than or equal to 0; subtracting 1 from the remaining number to obtain an updated number if the remaining number is greater than 0, wherein the target resource is set to allow reservation by a plurality of accounts simultaneously; under the condition that the updated quantity is smaller than 0, determining that the target resource which is not reserved does not exist; and under the condition that the updated quantity is greater than or equal to 0, determining that the target resource which is not reserved exists.
In an alternative embodiment, the apparatus is configured to obtain the current remaining number of the target resource by including: the remaining number of the target resources corresponding to a target time period where the current moment is located is obtained, wherein the target resources are provided with a corresponding maximum number of reserved allowed times in each time period in a plurality of time periods, and the time periods comprise the target time period.
In an alternative embodiment, the apparatus is configured to add the first reservation information to a target reservation queue if there is the target resource that has not been reserved by: if there is the target resource that has not been reserved and the first reservation information is information of non-repeat reservation, the first reservation information is added to the target reservation queue.
In an alternative embodiment, the apparatus is further adapted to: after first reservation information of a first account sent by a target application is acquired, determining whether the first reservation information is recorded in the target reservation queue; determining the first reservation information as non-repeated reservation information in the case that the first reservation information is not recorded in the target reservation queue; and determining the first reservation information as information of repeated reservation when the first reservation information is recorded in the target reservation queue.
In an alternative embodiment, the apparatus is configured to dynamically determine the current calling frequency of the target interface according to a result of calling the target interface to process the not-yet-processed reservation information recorded in the target reservation queue, where the method includes: determining the current calling frequency of the target interface in the current period as a first frequency under the condition that the calling frequency of the target interface reaches the first frequency in the previous period of the current period and the target interface is successfully called in the previous period to process the unprocessed reservation information recorded in the target reservation queue, wherein the first frequency is a preset maximum frequency; and/or determining the current calling frequency of the target interface in the current period as a third frequency smaller than the second frequency when the calling frequency of the target interface is the second frequency in the period previous to the current period and the target interface is not successfully called to process the unprocessed reservation information recorded in the target reservation queue in the period previous to the current period; under the condition that the calling frequency of the target interface is smaller than a first frequency in a plurality of continuous periods before a current period, the target interface is successfully called to process the unprocessed reservation information recorded in the target reservation queue in a plurality of continuous periods before the current period, and the total number of the reservation information to be processed recorded in the target reservation queue of the last period before the current period is larger than the calling frequency of the target interface, the current calling frequency of the target interface in the current period is determined to be a fourth frequency, wherein the first frequency is a preset maximum frequency, and the fourth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period; and/or determining the current calling frequency of the target interface in the current period as a fifth frequency when the calling frequency of the target interface in the current period is smaller than the first frequency, the target interface is successfully called in a plurality of continuous periods before the current period to process the unprocessed reservation information recorded in the target reservation queue, and the total number of the reservation information to be processed recorded in the target reservation queue of the current period is larger than the calling frequency of the target interface, wherein the first frequency is a preset maximum frequency, and the fifth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period.
In an alternative embodiment, the apparatus is configured to determine the current call frequency of the target interface in the current period as a third frequency smaller than the second frequency by: acquiring a first quantity and a second quantity, wherein the first quantity represents the quantity of processing the unprocessed reservation information recorded in the target reservation queue without successfully calling the target interface in the last period, and the second quantity represents the total number of reservation information to be processed recorded in the target reservation queue in the last period; and determining the current calling frequency as the third frequency, wherein the third frequency is the second frequency (1-n is the first number/the second number), n is a preset attenuation multiple, n is a natural number, and the third frequency is larger than 0.
In an alternative embodiment, the apparatus is configured to determine the current call frequency of the target interface in the current period as the fourth frequency by: acquiring the calling frequency of the target interface in the period previous to the current period as a sixth frequency; and determining the current calling frequency as the fourth frequency, wherein the fourth frequency is m, the sixth frequency is m is greater than 1, and the fourth frequency is less than or equal to the first frequency.
In an alternative embodiment, the apparatus is further adapted to: and calling the target interface in the current period according to the current calling frequency in the current period to process the unprocessed reservation information recorded in the target reservation queue to obtain a corresponding reservation result of whether the target resource is reserved successfully.
According to still another aspect of the embodiment of the present invention, there is further provided an electronic device for implementing the account reservation method, where the electronic device may be a terminal device or a server as shown in fig. 1. The embodiment uses the electronic device as a terminal and a server, and can be described by taking the server as an example. As shown in fig. 10, the electronic device comprises a memory 1002 and a processor 1004, the memory 1002 having stored therein a computer program, the processor 1004 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, acquiring first reservation information of a first account sent by a target application, wherein the first reservation information is used for reserving target resources for the first account;
s2, adding first reservation information to a target reservation queue under the condition that target resources which are not reserved exist, wherein the target reservation queue is used for recording the reservation information which is not processed, and the reservation information is used for reserving the target resources;
s3, determining reservation waiting time of the first reservation information according to the number of the reservation information which is not processed in the target reservation queue and the current calling frequency of the target interface, wherein the target interface is used for calling the reservation information which is not processed and is recorded in the target reservation queue according to the current calling frequency, and the reservation waiting time is used for representing waiting time required for calling the target interface to process the first reservation information in the target reservation queue;
and S4, sending a first reservation result to the target application under the condition that the reservation waiting time does not exceed the target threshold, wherein the first reservation result is used for indicating whether the reservation of the first account to the target resource is successful or not.
Alternatively, as will be appreciated by those skilled in the art, the structure shown in fig. 10 is merely illustrative, and the electronic device may be a smart phone (such as AndroID phone, iOS phone, etc.), a tablet computer, a palmtop computer, and a terminal device such as a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 10 is not limited to the structure of the electronic device and the electronic apparatus described above. For example, the electronics may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
The memory 1002 may be configured to store software programs and modules, such as program instructions/modules corresponding to the account reservation method and apparatus in the embodiment of the present invention, and the processor 1004 executes the software programs and modules stored in the memory 1002 to perform various function applications and data processing, that is, implement the account reservation method described above. The memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 1002 may further include memory located remotely from the processor 1004, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1002 may be used for storing information such as a target resource and an account, but is not limited to. As an example, as shown in fig. 10, the memory 1002 may include, but is not limited to, the acquisition module 802, the adding module 804, the determining module 806, and the sending module 808 in the account reservation device. In addition, other module units in the account reservation device may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1006 is configured to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission means 1006 includes a network adapter (Network Interface Controller, NIC) that can be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1006 is a Radio Frequency (RF) module for communicating with the internet wirelessly.
In addition, the electronic device further includes: a display 1008 for displaying the account reservation information; and a connection bus 1010 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring first reservation information of a first account sent by a target application, wherein the first reservation information is used for reserving target resources for the first account;
s2, adding first reservation information to a target reservation queue under the condition that target resources which are not reserved exist, wherein the target reservation queue is used for recording the reservation information which is not processed, and the reservation information is used for reserving the target resources;
s3, determining reservation waiting time of the first reservation information according to the number of the reservation information which is not processed in the target reservation queue and the current calling frequency of the target interface, wherein the target interface is used for calling the reservation information which is not processed and is recorded in the target reservation queue according to the current calling frequency, and the reservation waiting time is used for representing waiting time required for calling the target interface to process the first reservation information in the target reservation queue;
And S4, sending a first reservation result to the target application under the condition that the reservation waiting time does not exceed the target threshold, wherein the first reservation result is used for indicating whether the reservation of the first account to the target resource is successful or not.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (24)

1. An account reservation method is characterized by comprising the following steps:
acquiring first reservation information of a first account sent by a target application, wherein the first reservation information is used for reserving target resources for the first account;
adding the first reservation information to a target reservation queue in the case that the target resource which is not reserved exists, wherein the target reservation queue is used for recording the reservation information which is not processed and is used for reserving the target resource;
determining reservation waiting time of the first reservation information according to the number of the reservation information which is not processed in the target reservation queue and the current calling frequency of a target interface, wherein the target interface is used for calling according to the current calling frequency to process the reservation information which is recorded in the target reservation queue and is not processed, and the reservation waiting time is used for representing waiting time required by calling the target interface to process the first reservation information in the target reservation queue;
If the reservation waiting time does not exceed a target threshold, a first reservation result is sent to the target application, wherein the first reservation result is used for indicating whether the reservation of the first account to the target resource is successful or not;
the method further comprises the steps of:
determining the current calling frequency of the target interface in the current period as a first frequency under the condition that the calling frequency of the target interface reaches the first frequency in the previous period of the current period and the target interface is successfully called in the previous period to process the unprocessed reservation information recorded in the target reservation queue, wherein the first frequency is a preset maximum frequency; and/or
When the calling frequency of the target interface is a second frequency in a period which is the last period of the current period and the target interface is not successfully called in the last period to process the unprocessed reservation information recorded in the target reservation queue, determining the current calling frequency of the target interface in the current period as a third frequency which is smaller than the second frequency;
under the condition that the calling frequency of the target interface is smaller than a first frequency in a plurality of continuous periods before a current period, the target interface is successfully called to process the unprocessed reservation information recorded in the target reservation queue in a plurality of continuous periods before the current period, and the total number of the reservation information to be processed recorded in the target reservation queue of the last period before the current period is larger than the calling frequency of the target interface, the current calling frequency of the target interface in the current period is determined to be a fourth frequency, wherein the first frequency is a preset maximum frequency, and the fourth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period; and/or
And under the condition that the calling frequency of the target interface is smaller than the first frequency in the current period, the target interface is successfully called to process the unprocessed reservation information recorded in the target reservation queue in a plurality of continuous periods before the current period, and the total number of the reservation information to be processed recorded in the target reservation queue of the current period is larger than the calling frequency of the target interface, determining the current calling frequency of the target interface in the current period as a fifth frequency, wherein the first frequency is a preset maximum frequency, and the fifth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period.
2. The method according to claim 1, wherein the method further comprises:
and sending a second reservation result to the target application under the condition that the reservation waiting time exceeds the target threshold, wherein the second reservation result is used for indicating that the target resource is reserved.
3. The method of claim 1, wherein determining the reservation latency of the first reservation information based on the number of reservation information not yet processed in the target reservation queue and the current call frequency of the target interface comprises:
Determining the reservation waiting time of the first reservation information by the following formula:
t=L/P+T,
wherein T represents the reservation waiting time, L represents the number of reservation information which is not processed in the target reservation queue, P represents the current calling frequency of the target interface, and T represents the average delay of calling the target interface.
4. The method of claim 1, wherein after the obtaining the first subscription information of the first account sent by the target application, the method further comprises:
determining whether the target resource which is not reserved exists;
and sending a third reservation result to the target application under the condition that the target resource which is not reserved yet exists is determined, wherein the third reservation result is used for indicating that the reservation to the target resource for the first account is not successful.
5. The method of claim 4, wherein the determining whether the target resource exists that has not been reserved comprises:
acquiring the current residual quantity of the target resource;
determining that the target resource which is not reserved does not exist under the condition that the residual quantity is less than or equal to 0;
Subtracting 1 from the remaining number to obtain an updated number if the remaining number is greater than 0, wherein the target resource is set to allow reservation by a plurality of accounts simultaneously;
under the condition that the updated quantity is smaller than 0, determining that the target resource which is not reserved does not exist; and under the condition that the updated quantity is greater than or equal to 0, determining that the target resource which is not reserved exists.
6. The method of claim 5, wherein the obtaining the current remaining number of the target resource comprises:
the remaining number of the target resources corresponding to a target time period where the current moment is located is obtained, wherein the target resources are provided with a corresponding maximum number of reserved allowed times in each time period in a plurality of time periods, and the time periods comprise the target time period.
7. The method of claim 1, wherein the adding the first reservation information to a target reservation queue if there are the target resources that have not been reserved, comprises:
if there is the target resource that has not been reserved and the first reservation information is information of non-repeat reservation, the first reservation information is added to the target reservation queue.
8. The method of claim 7, wherein after obtaining the first subscription information of the first account transmitted by the target application, comprising:
determining whether the first reservation information is recorded in the target reservation queue;
determining the first reservation information as non-repeated reservation information in the case that the first reservation information is not recorded in the target reservation queue;
and determining the first reservation information as information of repeated reservation when the first reservation information is recorded in the target reservation queue.
9. The method of claim 1, wherein the determining the current call frequency of the target interface for the current period as a third frequency that is less than the second frequency comprises:
acquiring a first quantity and a second quantity, wherein the first quantity represents the quantity of processing the unprocessed reservation information recorded in the target reservation queue without successfully calling the target interface in the last period, and the second quantity represents the total number of reservation information to be processed recorded in the target reservation queue in the last period;
and determining the current calling frequency as the third frequency, wherein the third frequency is the second frequency (1-n is the first number/the second number), n is a preset attenuation multiple, n is a natural number, and the third frequency is larger than 0.
10. The method of claim 1, wherein the determining the current call frequency of the target interface within the current period as the fourth frequency comprises:
acquiring the calling frequency of the target interface in the period previous to the current period as a sixth frequency;
and determining the current calling frequency as the fourth frequency, wherein the fourth frequency is m, the sixth frequency is m is greater than 1, and the fourth frequency is less than or equal to the first frequency.
11. The method according to any one of claims 1 to 10, further comprising:
and calling the target interface in the current period according to the current calling frequency in the current period to process the unprocessed reservation information recorded in the target reservation queue to obtain a corresponding reservation result of whether the target resource is reserved successfully.
12. An account reservation device, comprising:
the acquisition module is used for acquiring first reservation information of a first account sent by a target application, wherein the first reservation information is used for reserving target resources for the first account;
an adding module, configured to add, in a case where the target resource that has not been reserved exists, the first reservation information to a target reservation queue, where the target reservation queue is configured to record reservation information that has not been processed, and the reservation information is configured to reserve the target resource;
The determining module is used for determining the reservation waiting time of the first reservation information according to the number of the reservation information which is not processed in the target reservation queue and the current calling frequency of a target interface, wherein the target interface is used for being called according to the current calling frequency to process the reservation information which is recorded in the target reservation queue and is not processed, and the reservation waiting time is used for representing waiting time required by calling the target interface to process the first reservation information in the target reservation queue;
the sending module is used for sending a first reservation result to the target application under the condition that the reservation waiting time does not exceed a target threshold value, wherein the first reservation result is used for indicating whether the reservation of the first account to the target resource is successful or not;
the device is also for:
determining the current calling frequency of the target interface in the current period as a first frequency under the condition that the calling frequency of the target interface reaches the first frequency in the previous period of the current period and the target interface is successfully called in the previous period to process the unprocessed reservation information recorded in the target reservation queue, wherein the first frequency is a preset maximum frequency; and/or
When the calling frequency of the target interface is a second frequency in a period which is the last period of the current period and the target interface is not successfully called in the last period to process the unprocessed reservation information recorded in the target reservation queue, determining the current calling frequency of the target interface in the current period as a third frequency which is smaller than the second frequency;
under the condition that the calling frequency of the target interface is smaller than a first frequency in a plurality of continuous periods before a current period, the target interface is successfully called to process the unprocessed reservation information recorded in the target reservation queue in a plurality of continuous periods before the current period, and the total number of the reservation information to be processed recorded in the target reservation queue of the last period before the current period is larger than the calling frequency of the target interface, the current calling frequency of the target interface in the current period is determined to be a fourth frequency, wherein the first frequency is a preset maximum frequency, and the fourth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period; and/or
And under the condition that the calling frequency of the target interface is smaller than the first frequency in the current period, the target interface is successfully called to process the unprocessed reservation information recorded in the target reservation queue in a plurality of continuous periods before the current period, and the total number of the reservation information to be processed recorded in the target reservation queue of the current period is larger than the calling frequency of the target interface, determining the current calling frequency of the target interface in the current period as a fifth frequency, wherein the first frequency is a preset maximum frequency, and the fifth frequency is larger than the calling frequency of the target interface in a plurality of continuous periods before the current period.
13. The apparatus of claim 12, wherein the apparatus is further configured to:
and sending a second reservation result to the target application under the condition that the reservation waiting time exceeds the target threshold, wherein the second reservation result is used for indicating that the target resource is reserved.
14. The apparatus of claim 12, wherein the apparatus is configured to determine the reservation latency of the first reservation information based on the number of outstanding reservation information in the target reservation queue and the current call frequency of the target interface by:
Determining the reservation waiting time of the first reservation information by the following formula:
t=L/P+T,
wherein T represents the reservation waiting time, L represents the number of reservation information which is not processed in the target reservation queue, P represents the current calling frequency of the target interface, and T represents the average delay of calling the target interface.
15. The apparatus of claim 12, wherein the apparatus is further configured to:
after the first reservation information of the first account sent by the target application is obtained, determining whether the target resource which is not reserved exists;
and sending a third reservation result to the target application under the condition that the target resource which is not reserved yet exists is determined, wherein the third reservation result is used for indicating that the reservation to the target resource for the first account is not successful.
16. The apparatus of claim 15, wherein the apparatus is configured to determine whether the target resource that has not been reserved is present by:
acquiring the current residual quantity of the target resource;
determining that the target resource which is not reserved does not exist under the condition that the residual quantity is less than or equal to 0;
Subtracting 1 from the remaining number to obtain an updated number if the remaining number is greater than 0, wherein the target resource is set to allow reservation by a plurality of accounts simultaneously;
under the condition that the updated quantity is smaller than 0, determining that the target resource which is not reserved does not exist; and under the condition that the updated quantity is greater than or equal to 0, determining that the target resource which is not reserved exists.
17. The apparatus of claim 16, wherein the apparatus is configured to obtain the current remaining number of target resources by:
the remaining number of the target resources corresponding to a target time period where the current moment is located is obtained, wherein the target resources are provided with a corresponding maximum number of reserved allowed times in each time period in a plurality of time periods, and the time periods comprise the target time period.
18. The apparatus of claim 12, wherein the apparatus is configured to add the first reservation information to a target reservation queue if there are the target resources that have not been reserved by:
if there is the target resource that has not been reserved and the first reservation information is information of non-repeat reservation, the first reservation information is added to the target reservation queue.
19. The apparatus of claim 18, wherein the apparatus is further configured to:
after first reservation information of a first account sent by a target application is acquired, determining whether the first reservation information is recorded in the target reservation queue;
determining the first reservation information as non-repeated reservation information in the case that the first reservation information is not recorded in the target reservation queue;
and determining the first reservation information as information of repeated reservation when the first reservation information is recorded in the target reservation queue.
20. The apparatus of claim 12, wherein the apparatus is configured to determine a current call frequency of the target interface within a current period as a third frequency that is less than the second frequency by:
acquiring a first quantity and a second quantity, wherein the first quantity represents the quantity of processing the unprocessed reservation information recorded in the target reservation queue without successfully calling the target interface in the last period, and the second quantity represents the total number of reservation information to be processed recorded in the target reservation queue in the last period;
And determining the current calling frequency as the third frequency, wherein the third frequency is the second frequency (1-n is the first number/the second number), n is a preset attenuation multiple, n is a natural number, and the third frequency is larger than 0.
21. The apparatus of claim 12, wherein the apparatus is configured to determine a current call frequency of the target interface within the current period as a fourth frequency by:
acquiring the calling frequency of the target interface in the period previous to the current period as a sixth frequency;
and determining the current calling frequency as the fourth frequency, wherein the fourth frequency is m, the sixth frequency is m is greater than 1, and the fourth frequency is less than or equal to the first frequency.
22. The apparatus according to any one of claims 12 to 21, further adapted to:
and calling the target interface in the current period according to the current calling frequency in the current period to process the unprocessed reservation information recorded in the target reservation queue to obtain a corresponding reservation result of whether the target resource is reserved successfully.
23. A computer readable storage medium comprising a stored program, wherein the program when run performs the method of any one of claims 1 to 11.
24. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 11 by means of the computer program.
CN202010443160.9A 2020-05-22 2020-05-22 Account reservation method and device, storage medium and electronic equipment Active CN111625375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010443160.9A CN111625375B (en) 2020-05-22 2020-05-22 Account reservation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010443160.9A CN111625375B (en) 2020-05-22 2020-05-22 Account reservation method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111625375A CN111625375A (en) 2020-09-04
CN111625375B true CN111625375B (en) 2023-10-24

Family

ID=72272552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010443160.9A Active CN111625375B (en) 2020-05-22 2020-05-22 Account reservation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111625375B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732454A (en) * 2020-12-30 2021-04-30 北京懿医云科技有限公司 Medical service appointment method, device, storage medium and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571973A (en) * 2001-02-07 2005-01-26 环球影城公司 Reservation system and methods for theme parks
CN102025652A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Service bus and message processing method
CN104520907A (en) * 2012-06-07 2015-04-15 环球城市电影有限责任公司 Queue management system and method
CN105719019A (en) * 2016-01-21 2016-06-29 华南理工大学 Public bicycle peak time demand prediction method considering user reservation data
KR20170090147A (en) * 2016-01-28 2017-08-07 울산대학교 산학협력단 Apparatus and method for reserving facility in theme park
JP2017182190A (en) * 2016-03-28 2017-10-05 方珮齡 Booking, notification system and method using mobile communication device
CN107578112A (en) * 2017-08-31 2018-01-12 努比亚技术有限公司 A kind of reserving method, terminal, server and readable storage medium storing program for executing
CN108009658A (en) * 2017-10-23 2018-05-08 林楚莲 A kind of subscription services information acquisition method, apparatus and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160148121A1 (en) * 2013-11-27 2016-05-26 Er Express, Llc Emergency-room reservation system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571973A (en) * 2001-02-07 2005-01-26 环球影城公司 Reservation system and methods for theme parks
CN102025652A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Service bus and message processing method
CN104520907A (en) * 2012-06-07 2015-04-15 环球城市电影有限责任公司 Queue management system and method
CN105719019A (en) * 2016-01-21 2016-06-29 华南理工大学 Public bicycle peak time demand prediction method considering user reservation data
KR20170090147A (en) * 2016-01-28 2017-08-07 울산대학교 산학협력단 Apparatus and method for reserving facility in theme park
JP2017182190A (en) * 2016-03-28 2017-10-05 方珮齡 Booking, notification system and method using mobile communication device
CN107578112A (en) * 2017-08-31 2018-01-12 努比亚技术有限公司 A kind of reserving method, terminal, server and readable storage medium storing program for executing
CN108009658A (en) * 2017-10-23 2018-05-08 林楚莲 A kind of subscription services information acquisition method, apparatus and system

Also Published As

Publication number Publication date
CN111625375A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
WO2018133306A1 (en) Dispatching method and device in content delivery network
US20210311781A1 (en) Method and system for scalable job processing
CN108052384B (en) Task processing method, service platform and electronic equipment
CN107800901B (en) User call processing method, device, computer equipment and storage medium
CN110827000A (en) Conference room reservation method and device
CN106161485B (en) A kind of resource regulating method of infrastructure service cluster, device and system
CN110417910B (en) Notification message sending method, device, server and storage medium
CN110351311B (en) Load balancing method
CN112057846B (en) Interaction method, device, equipment and storage medium for cloud game service scheduling
CN110012068B (en) Download control method, device and storage medium
CN111787345A (en) Interactive resource processing method and device based on network live broadcast room, server and storage medium
CN114724694B (en) Medical resource processing method and device and readable storage medium
CN111200606A (en) Deep learning model task processing method, system, server and storage medium
CN111427551A (en) User code operation method of programming platform, equipment and storage medium
CN109428926B (en) Method and device for scheduling task nodes
CN109584115A (en) Release method, device and the storage medium of associated client
CN111625375B (en) Account reservation method and device, storage medium and electronic equipment
CN110233840B (en) Service processing method, device, equipment and storage medium
CN111135586A (en) Game matching method, game matching device, storage medium and electronic device
CN111866544B (en) Data processing method, device, equipment and computer readable storage medium
CN107045452B (en) Virtual machine scheduling method and device
CN112169312A (en) Queuing scheduling method, device, equipment and storage medium for cloud game service
CN111654526A (en) Load balancing method and system for streaming media server
CN105323270B (en) Network information push method and system
CN115665173A (en) Websocket communication method, system and storage medium based on MQ

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant