Information processing method, device, server and storage medium
By receiving and storing virtual resource transfer request data on the server, extracting information at a preset rate, and buffering processing pressure, the problem of reduced server throughput and poor user experience under high concurrency is solved, and resource efficiency and user experience are improved. .
Patent Information
- Application Number
- CN201810355284.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-04-19
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-03-16
AI Technical Summary
When facing high concurrent information processing requests, the existing technology may cause an avalanche phenomenon in the server, resulting in a sharp decline in throughput capacity and even failure to provide services. The current limiting error state lasts for a long time, resulting in waste of resources and poor user experience.
By receiving the virtual resource transfer request sent by the client, the corresponding virtual resource transfer data information is stored according to the preset storage policy, and the data information is extracted according to the preset extraction rate, buffering the processing pressure of the server and avoiding the impact of instantaneous high concurrency on the server. maximum throughput requirements.
It reduces server processing pressure, reduces resource waste, reduces system costs, improves user experience, avoids forced error reporting, and ensures stable operation of the server under high concurrency conditions.
Smart Images

Figure CN110196769B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to an information processing method, device, server and storage medium. Background Art
[0002] With the development of mobile Internet technology, mobile phones and other terminals have become necessities in people's lives, and the increase in the number of terminals in use has also put forward higher requirements on the processing capacity of servers, especially when there is an instantaneous influx of information processing requests that are several times the service capacity of the server, such as when there will be a large number of users scrambling for red envelopes at the same time on the New Year's Eve of the Spring Festival. Due to the limited processing capacity of the server, the server may experience an avalanche phenomenon, the throughput capacity will drop sharply, and it may even be completely unable to provide services to the outside world.
[0003] In the prior art, a commonly used solution to the above problem is current limiting, that is, quickly rejecting services for information processing requests that exceed the server's processing capacity in the pre-stage, and only releasing information processing requests that the server can process, thereby ensuring continuous and stable operation of the system by controlling the number of requests entering the system, and displaying error prompts for users who are unable to provide services.
[0004] In the process of implementing the present invention, the inventors found that the prior art has at least the following problems:
[0005] In order to reduce the duration of the server current limiting error state, it is often necessary to deploy servers that exceed daily demand, resulting in a certain degree of resource waste and increased costs. In addition, for users who are unable to provide services, direct errors are reported to them, resulting in poor user experience. After receiving the error prompt, users will generally retry continuously immediately, which will still put a lot of pressure on the server and waste the system's limited service capabilities. Summary of the invention
[0006] In order to solve the problems of the prior art, the embodiments of the present invention provide an information processing method, device, server and storage medium. The technical solution is as follows:
[0007] In a first aspect, an information processing method is provided, the method comprising:
[0008] Receive virtual resource transfer requests sent by each client; each of the virtual resource transfer requests carries corresponding virtual resource transfer data information;
[0009] Storing the virtual resource transfer data information according to a preset storage strategy;
[0010] The virtual resource transfer data information is extracted according to a preset extraction rate.
[0011] In a second aspect, an information processing device is provided, the device comprising:
[0012] A first receiving module is used to receive virtual resource transfer requests sent by each client; each of the virtual resource transfer requests carries corresponding virtual resource transfer data information;
[0013] A storage module, used for storing the virtual resource transfer data information according to a preset storage strategy;
[0014] The extraction module is used to extract the virtual resource transfer data information according to a preset extraction rate.
[0015] In a third aspect, a server is provided, including: a processor and a memory;
[0016] The memory is used to store computer program instructions;
[0017] The processor calls the computer program instructions to receive virtual resource transfer requests sent by each client; each of the virtual resource transfer requests carries corresponding virtual resource transfer data information;
[0018] Storing the virtual resource transfer data information according to a preset storage strategy;
[0019] The virtual resource transfer data information is extracted according to a preset extraction rate.
[0020] In a fourth aspect, a computer storage medium is provided, which stores computer program instructions, and when the computer program instructions are executed, the above-mentioned information processing method is implemented.
[0021] The technical solution provided by the embodiment of the present invention has the following beneficial effects:
[0022] After receiving the virtual resource transfer requests sent by various clients, the present invention first stores the corresponding virtual resource transfer data information according to a preset storage strategy, and then extracts the stored virtual resource transfer data information according to a preset extraction rate, thereby buffering the processing pressure of the server, so that the server can stably process the virtual resource transfer requests according to its processing capacity, reducing the requirements of the maximum throughput rate of the server due to the instantaneous high concurrency of virtual resource transfer requests, which is beneficial to reducing the cost of the entire system and improving the user experience effect when the server processing capacity is insufficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention;
[0025] Figure 2 is a flow chart of an information processing method provided by an embodiment of the present invention;
[0026] Figure 3 It is a flow chart of a method for storing virtual resource transfer data information according to a preset storage strategy provided by an embodiment of the present invention;
[0027] Figure 4 It is a flowchart of a method for generating index information and storing the index information and virtual resource transfer data information in a first account provided by an embodiment of the present invention;
[0028] Figure 5 It is a schematic flow chart of a method for extracting virtual resource transfer data information according to a preset extraction rate provided by an embodiment of the present invention;
[0029] Figure 6 is a flowchart of another information processing method provided by an embodiment of the present invention;
[0030] Figure 7 is a flowchart of another information processing method provided by an embodiment of the present invention;
[0031] Figure 8 is a flowchart of another information processing method provided by an embodiment of the present invention;
[0032] Fig. 9 is a flowchart of another information processing method provided by an embodiment of the present invention;
[0033] Fig.10 is a structural block diagram of an information processing device provided by an embodiment of the present invention;
[0034] Fig.11 is a structural block diagram of a storage module provided by an embodiment of the present invention;
[0035] Fig.12 is a structural block diagram of another information processing device provided by an embodiment of the present invention;
[0036] Fig.13 is a structural block diagram of another information processing device provided by an embodiment of the present invention;
[0037] Fig.14 A schematic diagram of the structure of a server provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0039] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present invention. The implementation environment includes: a server 02 and at least one terminal 01 connected to the server 02.
[0040] A client is running in the terminal 01, and the client may be any client having the function of sending and receiving virtual resources. For example, the client running in the terminal 01 may be a social application client, an instant messaging client, a payment application client, a game client, a reading client, a client dedicated to sending and receiving virtual resources, and the like.
[0041] Terminal 01 can be a mobile phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, a desktop computer, etc.
[0042] The server 02 may be a single server, or a server cluster consisting of several servers, or a cloud computing service center.
[0043] The server 02 can establish communication connections with the terminals 01 through a network. The network can be a wireless network or a wired network.
[0044] It should be noted that in various embodiments of the present invention, the virtual resources involved may be currency, game equipment, game materials, game pets, game coins, icons, memberships, titles, value-added services, points, ingots, gold beans, gift certificates, exchange certificates, coupons, greeting cards, money, etc. The embodiments of the present invention do not limit the resource types.
[0045] Please refer to Figure 2 , which shows a flowchart of an information processing method provided by an embodiment of the present invention. The information processing method of this embodiment can be applied to Figure 1 In the server 02 of the implementation environment shown. Figure 2 As shown, the information processing method may include the following steps:
[0046] Step 202: Receive virtual resource transfer requests sent by each client.
[0047] Specifically, the client may be the above-mentioned client having the function of sending a virtual resource transfer request, which runs on a terminal, and the server receives the virtual resource transfer request sent by each client.
[0048] It should be noted that the number of virtual resource transfer requests sent by the clients and received by the server may be tens of thousands, hundreds of thousands or millions, etc. per unit time, that is, it may be a highly concurrent virtual resource request volume generated instantly.
[0049] In an embodiment of the present invention, each virtual resource transfer request carries virtual resource transfer data information, which may include account information of the client sending the virtual resource transfer request, virtual resource quantity information, and account information of the virtual resource sender or receiver, etc. The above virtual resource quantity information is the quantity of virtual resources that need to be transferred by the virtual resource transfer request.
[0050] After receiving the virtual resource transfer request sent by the client, the server immediately obtains the virtual resource transfer data information carried in the virtual resource transfer request.
[0051] Step 204: store the virtual resource transfer data information according to a preset storage policy.
[0052] In the embodiment of the present invention, the following preset storage strategy may be used to store virtual resource transfer data information.
[0053] Method 1: The virtual resource transfer data information is stored in a cache queue, such as an asynchronous message queue, and the virtual resource transfer data information required for subsequent processing can be directly extracted from the cache queue.
[0054] Method 2: You can use Figure 3 method, Figure 3 FIG. 1 is a flow chart of a method for storing virtual resource transfer data information according to a preset storage strategy provided by an embodiment of the present invention. Figure 3 As shown, the method includes:
[0055] Step 302: Generate index information according to the virtual resource transfer data information, and store the index information and the virtual resource transfer data information in a first account.
[0056] In an embodiment of the present invention, the server may pre-create the first account before receiving the virtual resource transfer request sent by the client. The server may also create the first account in real time according to the virtual resource transfer data information when generating index information according to the virtual resource transfer data information. For example, the server may create a first account corresponding to the client's account information in the virtual resource transfer data information. The first account may be understood as a corresponding virtual account relative to the client's account.
[0057] It should be noted that, in the embodiment of the present invention, the client account and the first account are stored in different storage databases, wherein the client account is stored in the relational database Mysql, and the first account can be stored in the memory cloud storage database cache.
[0058] The index information corresponds to the virtual resource transfer request, and the unique virtual resource transfer data information corresponding to the virtual resource transfer request can be found through the index information. The index information can be represented by a processing order number or a serial number.
[0059] In the embodiment of the present invention, the following can be used Figure 4 The method shown generates index information and stores the index information and virtual resource transfer data information in the first account. Figure 4 As shown, the method includes:
[0060] Step 3022, obtaining the client's account information.
[0061] The server can obtain the client's account information from the virtual resource transfer data information.
[0062] For example, the virtual resource transfer requests received by the server are A, B, and C, respectively, and the virtual resource transfer data information corresponding to the virtual resource transfer requests are obtained as a, b, and c. Each virtual resource transfer data information contains at least the client's account information and virtual resource quantity information. For example, virtual resource transfer data information a contains at least the client's account 1 and virtual resource quantity X; virtual resource transfer data information b contains at least the client's account 2 and virtual resource quantity Y; virtual resource transfer data information c contains at least the client's account 3 and virtual resource quantity Z. The server obtains the client's account 1, the client's account 2, and the client's account 3, respectively.
[0063] Step 3024, generate index information according to the client's account information.
[0064] It is understandable that there may be multiple virtual resource transfer requests related to the client's account, so there may also be multiple index information generated based on the client's account, and each index information corresponds to virtual resource transfer data information related thereto.
[0065] For example, client A sends three virtual resource transfer requests to the server. Correspondingly, the server receives the three virtual resource transfer requests respectively and obtains the virtual resource transfer data information carried by the three virtual resource transfer requests, namely virtual resource transfer data information A1, virtual resource transfer data information A2 and virtual resource transfer data information A3. When generating index information, the client's account A is obtained according to the virtual resource transfer data information A1, and index 11 is generated according to the client's account A; the client's account A is obtained according to the virtual resource transfer data information A2, and index 12 is generated according to the client's account A; the client's account A is obtained according to the virtual resource transfer data information A3, and index 13 is generated according to the client's account A.
[0066] Step 3026, creating a correspondence between the index information and the virtual resource transfer data information.
[0067] After the index information is generated, a corresponding relationship between the index information and the virtual resource transfer data information is created so that the corresponding virtual resource transfer data information can be found according to the index information later.
[0068] For example, a correspondence between index 11 and virtual resource transfer data information A1 is created, a correspondence between index 12 and virtual resource transfer data information A2 is created, and a correspondence between index 13 and virtual resource transfer data information A3 is created.
[0069] Step 3028: store the index information and the virtual resource transfer data information in the first account according to the above correspondence.
[0070] Specifically, the correspondence between the index information of multiple clients and the virtual resource transfer data information can be stored in the first account and stored in a list, as shown in Table 1. In the first account, according to the client account name classification, the correspondence between the index information and the virtual resource transfer data information under the same client account is stored under the client account name classification.
[0071] Table 1
[0072]
[0073] Of course, in the embodiment of the present invention, a first account may be separately established for each client, that is, the first account corresponds to the client account one by one. For example, a first account A may be created based on the client account A, and the first account A is used to store the corresponding relationship between the index information related to the client account A and the virtual resource transfer data information. A first account B may be created based on the client account B, and the first account B is used to store the corresponding relationship between the index information related to the client account B and the virtual resource transfer data information.
[0074] Step 304: store the index information into a cache queue.
[0075] In the embodiment of the present invention, the cache queue may be a message queue such as an asynchronous message queue. The cache queue may store a plurality of the above-mentioned index information. The plurality of index information may be stored in the cache queue according to a first-in-first-out rule.
[0076] In actual applications, the index information in the cache queue can be stored according to the client's account information, that is, all the index information corresponding to each client's account is used as a cache sub-queue, and the index information in the cache sub-queue can be arranged according to the first-in-first-out rule.
[0077] For example, the message queue includes message subqueue A, message subqueue B, and message subqueue C, wherein message subqueue A corresponds to the client's account A, message subqueue B corresponds to the client's account B, and message subqueue C corresponds to the client's account C. Message subqueue A stores index 11, index 12, and index 13, message subqueue B stores index 21, and message subqueue C stores index 31.
[0078] In an embodiment of the present invention, when storing index information in a cache queue, a cache subqueue corresponding to the client's account information can be searched in the cache queue, and then the index information can be stored in the cache subqueue. Specifically, the index information can be stored at the end of the cache subqueue according to a first-in-first-out rule. For example, before storing the index information in a message queue, the client's account information corresponding to the index information is first obtained, and then the message subqueue corresponding to the index information is searched in the message queue according to the client's account information, and then the index information is stored at the end of the message subqueue.
[0079] Step 206: extract virtual resource transfer data information according to a preset extraction rate.
[0080] The server may extract the virtual resource transfer data information at a preset extraction rate according to its processing capability.
[0081] In the embodiment of the present invention, when the virtual resource transfer data information is stored in the cache queue, the virtual resource transfer data information can be directly extracted from the cache queue. Figure 3 When storing the method shown, you can use Figure 5 The extraction was performed using the method shown. Figure 5 FIG. 2 is a flow chart of a method for extracting virtual resource transfer data information according to a preset extraction rate provided by an embodiment of the present invention. Figure 5 As shown, the method includes:
[0082] Step 502: extract the index information from the cache queue according to a preset extraction rate.
[0083] The server may extract index information from the head of the cache queue according to its processing capability and at a preset extraction rate for subsequent processing.
[0084] Specifically, before extracting index information from the message queue, the server may also detect the idle state of its current resources, and determine the amount of index information to be extracted from the cache queue and whether to extract the index information for corresponding processing according to the detected idle state of the current resources.
[0085] Step 504: Obtain corresponding virtual resource transfer data information from the first account according to the index information.
[0086] In the embodiment of the present invention, the first account stores the correspondence between the index information and the virtual resource transfer data information, and the server searches for the virtual resource transfer data information corresponding to the index information and obtains the information.
[0087] After receiving the virtual resource transfer request sent by each client, the information processing method provided by the embodiment of the present invention first stores the corresponding virtual resource transfer data information according to the preset storage strategy, and then extracts the stored virtual resource transfer data information according to the preset extraction rate, which buffers the processing pressure of the server, so that the server can stably process the virtual resource transfer request according to its processing capacity, reduces the requirement of the maximum throughput rate of the server due to the instantaneous high concurrent virtual resource transfer request volume, and is conducive to reducing the cost of the entire system. In addition, since the virtual resource transfer data information is stored, it will not force an error to the user, improving the user experience effect when the server processing capacity is insufficient.
[0088] Please refer to Figure 6 , which shows a flow chart of another information processing method provided by an embodiment of the present invention. The information processing method of this embodiment can be applied to Figure 1 In the server 02 of the implementation environment shown. Figure 6As shown, the information processing method may include the following steps:
[0089] Step 602: Receive virtual resource transfer requests sent by each client.
[0090] It should be noted that the number of virtual resource transfer requests sent by the clients and received by the server may be tens of thousands, hundreds of thousands or millions, etc. per unit time, that is, it may be a highly concurrent virtual resource request volume generated instantly.
[0091] In an embodiment of the present invention, each virtual resource transfer request carries virtual resource transfer data information, which may include account information of the client sending the virtual resource transfer request, virtual resource quantity information, and account information of the virtual resource sender or receiver, etc. The above virtual resource quantity information is the quantity of virtual resources that need to be transferred by the virtual resource transfer request.
[0092] After receiving the virtual resource transfer request sent by the client, the server immediately obtains the virtual resource transfer data information carried in the virtual resource transfer request.
[0093] Step 604: Generate index information according to the virtual resource transfer data information, and store the index information and the virtual resource transfer data information in the first account.
[0094] In an embodiment of the present invention, the server may pre-create the first account before receiving the virtual resource transfer request sent by the client. The server may also create the first account in real time according to the virtual resource transfer data information when generating index information according to the virtual resource transfer data information. For example, the server may create a first account corresponding to the client's account information in the virtual resource transfer data information. The first account may be understood as a corresponding virtual account relative to the client's account.
[0095] It should be noted that, in the embodiment of the present invention, the client account and the first account are stored in different storage databases, wherein the client account is stored in the relational database Mysql, and the first account can be stored in the memory cloud storage database cache.
[0096] The index information corresponds to the virtual resource transfer request, and the unique virtual resource transfer data information corresponding to the virtual resource transfer request can be found through the index information. The index information can be represented by a processing order number or a serial number.
[0097] For details on how to store index information and virtual resource transfer data, see Figure 4 , I will not go into details here.
[0098] See also Figure 7 , the embodiment of the present invention may further include before step 604:
[0099] Step 702: Obtain the virtual resource transfer request amount.
[0100] In the embodiment of the present invention, the virtual resource transfer request amount may be the number of virtual resource transfer requests within a unit time, or may be the sum of the traffic of each virtual resource transfer request within a unit time.
[0101] Step 704 , determining whether the virtual resource transfer request amount exceeds a preset threshold. If the virtual resource transfer request amount exceeds the preset threshold, executing step 604 .
[0102] If the virtual resource transfer request amount does not exceed the preset threshold, step 614 may be directly executed.
[0103] By judging whether the amount of virtual resource transfer requests obtained exceeds a preset threshold, it is determined whether the server is capable of immediately processing the currently received virtual resource transfer requests.
[0104] The preset threshold corresponds to the amount of virtual resource transfer requests. When the amount of virtual resource transfer requests is the number of virtual resource transfer requests processed per unit time, the preset threshold is the maximum number of virtual resource transfer requests that the server can process per unit time; when the amount of virtual resource transfer requests is the sum of the traffic of each virtual resource transfer request processed per unit time, the preset threshold is the maximum value of the traffic that the server can process per unit time. When the server reaches the maximum value of the number of virtual resource transfer requests or the maximum value of the sum of the traffic of each virtual resource transfer request, the server can be operated at full load or at a state close to full load, such as a load state of 90%. In order to enable the server to operate stably at maximum load, in an embodiment of the present invention, preferably, the preset threshold is set so that when the preset threshold is reached, the server runs at a state close to full load, such as a load state of 90%.
[0105] In the embodiment of the present invention, a verification step of the virtual resource transfer request may be included before step 604 to determine the legitimacy of the virtual resource transfer request. Only after the verification is passed can step 604 be performed. For verification of the virtual resource transfer request, please continue to refer to Figure 7 , specifically including:
[0106] Step 706, obtaining first verification information.
[0107] In the embodiment of the present invention, the virtual resource transfer data information includes first verification information corresponding to the virtual resource transfer request, and the first verification information is used by the server to verify the legitimacy of the virtual resource transfer request.
[0108] The first verification information includes full-factor verification information, which may include a platform signature, an operation password, virtual item content, and a virtual item validity signature, etc.
[0109] Step 708 , verify the virtual resource transfer request according to the first verification information, and if the verification passes, proceed to step 604 .
[0110] The server verifies the legitimacy of the virtual resource transfer request based on the first verification information obtained. The specific verification process may be that the server compares the first verification information obtained with the information stored for verifying the virtual resource transfer request. When the two are consistent, the current virtual resource transfer request is considered to be legal, the verification is passed, and the next step can be performed. If the two are inconsistent, the current virtual resource transfer request is considered to be illegal, and the verification fails.
[0111] When the verification fails, the server may return a prompt indicating that the verification has failed to the client, so as to inform the user that the next step of the virtual resource transfer request will not be performed.
[0112] It should be noted that when performing verification, all items in the full factor verification information can be verified, or only one or several items can be verified.
[0113] Step 606: Return a prompt to the client indicating that the virtual resource transfer request has been processed.
[0114] After storing the index information and the corresponding virtual resource transfer data information in the first account, the server can fabricate the effect that the virtual resource transfer should produce, that is, return a prompt to the client that the virtual resource transfer request has been processed, so as to improve the user experience and make the user unaware of the server's delay in processing its virtual resource transfer request.
[0115] Step 608: store the index information in the cache queue.
[0116] In the embodiment of the present invention, the cache queue may be a message queue such as an asynchronous message queue. The cache queue may store a plurality of the above-mentioned index information. The plurality of index information may be stored in the cache queue according to a first-in-first-out rule.
[0117] Specifically, the index information in the cache queue may be stored according to the client's account information, that is, all the index information corresponding to each client's account is used as a cache sub-queue, and the index information in the cache sub-queue may be arranged according to a first-in-first-out rule.
[0118] In an embodiment of the present invention, when storing index information in a cache queue, a cache subqueue corresponding to the client's account information can be searched in the cache queue, and then the index information can be stored in the cache subqueue. Specifically, the index information can be stored at the end of the cache subqueue according to a first-in-first-out rule. For example, before storing the index information in a message queue, the client's account information corresponding to the index information is first obtained, and then the message subqueue corresponding to the index information is searched in the message queue according to the client's account information, and then the index information is stored at the end of the message subqueue.
[0119] Step 610: extract index information from the cache queue according to a preset extraction rate.
[0120] The server can extract index information from the head of the message queue according to its processing capability and a preset extraction rate for subsequent processing.
[0121] Specifically, before extracting index information from the message queue, the server may also detect the idle state of its current resources, and determine the number of index information to be extracted from the message queue and whether to extract the index information for corresponding processing according to the detected idle state of the current resources.
[0122] Step 612: Obtain corresponding virtual resource transfer data information from the first account according to the index information.
[0123] In the embodiment of the present invention, the first account stores the correspondence between the index information and the virtual resource transfer data information, and the server searches for the virtual resource transfer data information corresponding to the index information and obtains the information.
[0124] Step 614: transfer the corresponding amount of virtual resources to the second account according to the virtual resource transfer data information.
[0125] After obtaining the virtual resource transfer data information corresponding to the index information, the server further obtains the number of virtual resources in the virtual resource transfer data information, and transfers virtual resources equal to the number of virtual resources to the second account.
[0126] It should be noted that the second account is the account of the virtual resource recipient. In different application scenarios, the second account can be the account of a client with different functions. For example, in the scenario of grabbing red envelopes during the Spring Festival, the second account can be the account of the client that sends the virtual resource transfer request, that is, the account of the client that grabs the red envelope; in the Taobao Double 11 shopping spree, the second account can also be the account of the merchant's client.
[0127] It should be noted that, in order to improve security and prevent the first verification information in the virtual resource transfer data information from being tampered with, in the embodiment of the present invention, a further verification step may be included before step 614 to re-judge the legitimacy of the virtual resource transfer request. Only after the verification is passed, step 614 can be performed. The further verification can be seen in Figure 7 , specifically including:
[0128] Step 710, obtaining second verification information.
[0129] In an embodiment of the present invention, the virtual resource transfer data information also includes second verification information corresponding to the virtual resource transfer request, and the second verification information includes summary element verification information, which is a string MD5 value corresponding to the full element verification information of the above-mentioned first verification information.
[0130] Step 712 , verify the virtual resource transfer request according to the second verification information. If the verification passes, proceed to step 614 .
[0131] The server verifies the legitimacy of the virtual resource transfer request based on the acquired second verification information. The specific verification process may be that the server compares the acquired second verification information with the information stored for verifying the virtual resource transfer request. When the two are consistent, the current virtual resource transfer request is considered to be legitimate, the verification is passed, and the next operation can be performed. If the two are inconsistent, the current virtual resource transfer request is considered to be illegal, and the verification fails.
[0132] If the verification fails, an alarm message may be returned to the server administrator to inform that the verification information may have been tampered with and manual intervention is required.
[0133] Step 616: Delete the virtual resource transfer data information in the first account.
[0134] After transferring the corresponding amount of virtual resources to the second account according to the virtual resource transfer data information, the server deletes the virtual resource transfer data information that has been transferred in the first account.
[0135] For example, the server extracts index 11 from the message queue, obtains virtual resource transfer data information A1 from the first account according to the index 11, and after transferring the corresponding virtual resource quantity to the client's account according to the virtual resource transfer data information A1, the virtual resource transfer data information A1 in the first account is deleted. Of course, index 11 can also be deleted at the same time, so as to prevent the same virtual resource from being stored in the first account and the second account at the same time, so as to ensure that when the subsequent user needs to display the total number of virtual resources, the total number of virtual resources displayed will not be inflated or inflated.
[0136] The information processing method provided by the embodiment of the present invention buffers the processing pressure of the server, and enables the server to stably process virtual resource transfer requests according to its processing capacity, thereby reducing the requirements of the maximum throughput rate of the server caused by the instantaneous high-concurrency virtual resource transfer requests, which is conducive to reducing the cost of the entire system. In addition, since the virtual resource transfer data information is stored, no strong error is reported to the user, which improves the user experience effect when the server processing capacity is insufficient.
[0137] Please refer to Figure 8 , which shows a flow chart of another information processing method provided by an embodiment of the present invention. The information processing method of this embodiment can be applied to Figure 1 In the server 02 of the implementation environment shown. Figure 8 As shown, the information processing method may include the following steps:
[0138] Step 802: Receive virtual resource transfer requests sent by each client.
[0139] In an embodiment of the present invention, each virtual resource transfer request carries virtual resource transfer data information, which may include account information of the client sending the virtual resource transfer request, virtual resource quantity information, and account information of the virtual resource sender or receiver, etc. The above virtual resource quantity information is the quantity of virtual resources that need to be transferred by the virtual resource transfer request.
[0140] Step 804: Generate index information according to the virtual resource transfer data information, and store the index information and the virtual resource transfer data information in the first account.
[0141] Step 806: store the index information in the cache queue.
[0142] The above steps 802-806 can refer to Figure 6 The relevant steps of the information processing method shown are not repeated here.
[0143] Step 808: Receive a virtual resource query request sent by the client.
[0144] When the client user needs to query the total number of virtual resources, the user can send a virtual resource query request to the server through the client, and the virtual resource query request carries the client's account information.
[0145] Correspondingly, the server can obtain the client's account information in the virtual resource query request.
[0146] Step 810: Search the first account for virtual resource transfer data information corresponding to the client's account information.
[0147] After obtaining the client's account information carried in the virtual resource query request, the server searches the first account according to the client's account information to find out the virtual resource transfer information corresponding to the client's account information. Specifically, the server can find all index information under the account through the client's account information, and then find each virtual resource transfer data information from the index information according to the corresponding relationship.
[0148] Step 812: Acquire virtual resource quantity information in the virtual resource transfer data information.
[0149] After the server finds the virtual resource transfer data information corresponding to the client's account information in the first account, it obtains the virtual resource quantity information in the virtual resource transfer data information. It is understandable that there may be several virtual resource transfer information corresponding to the client's account information in the first account, and the server obtains the virtual resource quantity information in these several virtual resource transfer information respectively.
[0150] Step 814: Calculate the total quantity of the first virtual resource according to the virtual resource quantity information.
[0151] After acquiring the virtual resource quantity information, the server calculates the sum of the quantities of each virtual resource and uses the calculation result as the total quantity of the first virtual resource.
[0152] For example, the numbers of virtual resources in the first account corresponding to the account information of the client are a, b, and c, and the total number of first virtual resources is X=a+b+c.
[0153] Step 816: Obtain the total amount of the second virtual resource in the client's account according to the client's account information.
[0154] The server obtains the total amount Y of the second virtual resource in the client's account according to the client's account information. Taking the red envelope grabbing scenario as an example, the virtual resource is currency, and the total amount Y of the second virtual resource is the amount of currency in the client's account.
[0155] Step 818: Calculate the third total number of virtual resources according to the first total number of virtual resources and the second total number of virtual resources, and return the third total number of virtual resources to the client.
[0156] After calculating and obtaining the first total number of virtual resources X and the second total number of virtual resources Y, the server calculates the third total number of virtual resources Z. It should be noted that the specific calculation rule of the third total number of virtual resources can be determined according to the actual application scenario.
[0157] For example, in the application scenario of grabbing red envelopes, when the user needs to query the total amount in his account, the total number of the third virtual resources Z=X+Y, that is, the total number of the first virtual resources corresponding to the client's account in the first account is summed with the total number of the second virtual resources in the client's account, so that the sum of the number of virtual resources stored in the first account to be transferred and the number of virtual resources already transferred to the client's account is presented to the user, so that the total number of virtual resources displayed seen by the client user is the sum of the first account and the client's account; and in the application scenario of Taobao Double 11 shopping, when the user, that is, the buyer of the item, needs to query the total amount in his account, the total number of the third virtual resources Z=YX, that is, the difference between the total number of virtual resources in the client's account and the number of virtual resources stored in the first account to be transferred is calculated.
[0158] The information processing method provided by the embodiment of the present invention takes into account the corresponding quantities of virtual resources in the first account and the second account when displaying the virtual resource query results. Therefore, the displayed results will not be abnormal because the information processing method of the embodiment of the present invention is used to buffer the processing pressure of the server.
[0159] Please refer to Fig. 9 , which shows a flow chart of another information processing method provided by an embodiment of the present invention. The information processing method of this embodiment can be applied to Figure 1 In the server 02 of the implementation environment shown. Fig. 9 As shown, the information processing method may include the following steps:
[0160] Step 902: Receive virtual resource transfer requests sent by each client.
[0161] In an embodiment of the present invention, each virtual resource transfer request carries virtual resource transfer data information, which may include account information of the client sending the virtual resource transfer request, virtual resource quantity information, and account information of the virtual resource sender or receiver, etc. The above virtual resource quantity information is the quantity of virtual resources that need to be transferred by the virtual resource transfer request.
[0162] Step 904: Generate index information according to the virtual resource transfer data information, and store the index information and the virtual resource transfer data information in the first account.
[0163] Step 906: store the index information in the cache queue.
[0164] The above steps 902-906 can refer to Figure 6 The relevant steps of the information processing method shown are not repeated here.
[0165] Step 908: Receive a virtual resource usage request sent by the client.
[0166] When the client user needs to use the virtual resources in the first account, the user can send a virtual resource use request to the server through the client, and the virtual resource use request carries the client's account information.
[0167] Step 910: Obtain index information corresponding to the account information of the client in the first account.
[0168] After obtaining the client's account information carried in the virtual resource use request, the server searches the first account according to the client's account information to find the index information corresponding to the client's account information. Of course, it is understandable that there may be multiple index information corresponding to the client's account information in the first account.
[0169] Step 912: search the cache queue and move the index information corresponding to the client's account information to the head of the cache queue.
[0170] After obtaining the index information corresponding to the client's account information, the server searches for a buffer queue such as a message queue according to the index information. When the index information is found in the message queue, the index information is moved to the head of the message queue so that the server can first pull the index information and process it first.
[0171] In an embodiment of the present invention, when the message queue includes a message sub-queue corresponding to the account information of the client, since the index information corresponding to the account information of the same client is stored in the same message sub-queue, the message sub-queue corresponding to the account information of the client can also be moved to the head of the message queue, so that the server can give priority to processing the index information of the message sub-queue.
[0172] In summary, the information processing method provided in this embodiment, when receiving a user's request to use virtual resources, will give priority to processing the index information corresponding to the account of the client of the virtual resource use request, thereby satisfying the user's normal use of the relevant virtual resources, and making the user unaware of the use of the information processing method of the embodiment of the present invention to buffer his virtual resource transfer request, without affecting the user experience.
[0173] Please refer to Fig.10 , which shows a structural block diagram of an information processing device provided by an embodiment of the present invention, the device has the function of implementing the server side in the above method example, and the function can be implemented by hardware, or by hardware executing corresponding software. The device may include: a first receiving module 110, a storage module 120, and an extraction module 130.
[0174] The first receiving module 110 is used to receive virtual resource transfer requests sent by each client; each of the virtual resource transfer requests carries corresponding virtual resource transfer data information.
[0175] The storage module 120 is used to store the virtual resource transfer data information according to a preset storage policy.
[0176] The extraction module 130 is used to extract the virtual resource transfer data information according to a preset extraction rate.
[0177] As an example, Fig.11 As shown, the storage module 120 may include:
[0178] The first storage submodule 1210 is used to store the virtual resource transfer data information into a cache queue.
[0179] The extraction module 130 may include:
[0180] The first extraction submodule 1310 is configured to extract virtual resource transfer data information from the cache queue according to a preset extraction rate.
[0181] As another example, Fig.12 As shown, the storage module 120 may include:
[0182] The generating module 1220 is configured to generate index information according to the virtual resource transfer data information, and store the index information and the virtual resource transfer data information in a first account.
[0183] The second storage submodule 1230 is used to store the index information into a cache queue.
[0184] The extraction module 130 may include:
[0185] The second extraction submodule 1320 is used to extract index information from the cache queue according to a preset extraction rate.
[0186] The second acquisition module 1330 is used to acquire corresponding virtual resource transfer data information from the first account according to the index information.
[0187] Optional, such as Fig.12 As shown, the generation module 1220 may include:
[0188] The first acquisition module 1221 is used to acquire the account information of the client.
[0189] The generating submodule 1222 is used to generate index information according to the account information of the client.
[0190] The creation module 1223 is used to create a corresponding relationship between the index information and the virtual resource transfer data information.
[0191] The third storage submodule 1224 is used to store the index information and the virtual resource transfer data information in the first account according to the corresponding relationship.
[0192] Optional, such as Fig.12 As shown, the second storage submodule 1230 may include:
[0193] The first search module 1231 is used to search the cache sub-queue corresponding to the account information of the client in the cache queue.
[0194] The storage module 1232 is used to store the index information into the cache sub-queue.
[0195] Optional, such as Fig.12 As shown, the device may also include:
[0196] The transfer module 140 is used to transfer the corresponding amount of virtual resources to the second account according to the virtual resource transfer data information.
[0197] The deleting module 150 is used to delete the virtual resource transfer data information in the first account.
[0198] Optional, such as Fig.12 As shown, the device may also include:
[0199] The first returning module 160 is configured to return a prompt indicating that the transfer of the virtual resource transfer request has been completed to the corresponding client.
[0200] Optional, such as Fig.12 As shown, the device may also include:
[0201] The third acquisition module 170 is used to acquire the virtual resource transfer request amount.
[0202] The judgment module 180 is used to judge whether the virtual resource transfer request amount exceeds a preset threshold; when the virtual resource transfer request amount exceeds the preset threshold, the virtual resource transfer data information is stored according to a preset storage policy.
[0203] Optional, such as Fig.12 As shown, the device may further include a verification module 1210, and the verification module 1210 is used to obtain virtual resource transfer information to verify the legitimacy of the corresponding virtual resource transfer request.
[0204] As an example, Fig.13 As shown, the device may also include:
[0205] The second receiving module 190 is configured to receive a virtual resource query request sent by a client, wherein the virtual resource query request carries the account information of the client.
[0206] The second search module 1110 is used to search the first account for each virtual resource transfer data information corresponding to the account information of the client.
[0207] The fourth acquisition module 1120 is used to acquire the virtual resource quantity information in each of the virtual resource transfer data information.
[0208] The first calculation module 1130 is used to calculate the total quantity of the first virtual resource according to the virtual resource quantity information.
[0209] The fifth acquisition module 1140 is configured to acquire the total quantity of the second virtual resources in the account of the client according to the account information of the client.
[0210] The second calculation module 1150 is configured to calculate the total number of third virtual resources according to the total number of the first virtual resources and the total number of the second virtual resources.
[0211] The second returning module 1160 is configured to return the total quantity of the third virtual resources to the client.
[0212] As another example, Fig.13 As shown, the device may also include:
[0213] The third receiving module 1170 is configured to receive a virtual resource use request sent by a client, wherein the virtual resource use request carries the account information of the client.
[0214] The sixth acquisition module 1180 is used to acquire index information corresponding to the account information of the client in the first account.
[0215] The queue adjustment module 1190 is used to search the cache queue and move the index information corresponding to the account information of the client to the head of the cache queue.
[0216] In summary, the information processing device provided by the embodiment of the present invention, after receiving the virtual resource transfer request sent by each client, first stores the corresponding virtual resource transfer data information according to the preset storage strategy, and then extracts the stored virtual resource transfer data information according to the preset extraction rate, which buffers the processing pressure of the server, so that the server can stably process the virtual resource transfer request according to its processing capacity, reduces the requirement of the maximum throughput rate of the server due to the instantaneous high concurrent virtual resource transfer request volume, is conducive to reducing the cost of the entire system, and improves the user experience effect when the server processing capacity is insufficient
[0217] In addition, when a virtual resource query request is received from a user, the total number of corresponding virtual resources in the first account and the total number of virtual resources in the client's account are considered at the same time, and the total number of virtual resources calculated by the two is returned to the user as a query result, so that the total amount of virtual items queried by the user will not be displayed abnormally because the information processing method of an embodiment of the present invention is used to buffer the processing pressure of the server.
[0218] In addition, when a user's request to use a virtual resource is received, the index information corresponding to the account of the client of the virtual resource use request is processed first, thereby satisfying the user's normal use of the relevant virtual resources and making the user unaware of the use of the information processing method of an embodiment of the present invention to buffer his virtual resource transfer request, which will not affect the user experience.
[0219] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0220] See also Fig.14 , which is a schematic diagram of the structure of a server provided by an embodiment of the present invention, the server 1400 may include a central processing unit (CPU) 1401, a system memory 1404 including a random access memory (RAM) 1402 and a read-only memory (ROM) 1403, and a system bus 1405 connecting the system memory 1404 and the central processing unit 1401. The server 1400 also includes a basic input / output system (I / O system) 1406 that helps transmit information between various components in the computer, and a large-capacity storage device 1407 for storing an operating system 1413, application programs 1414 and other program modules 1115.
[0221] The basic input / output system 1406 includes a display 1408 for displaying information and an input device 1409 such as a mouse and a keyboard for user inputting information. The display 1408 and the input device 1409 are connected to the central processor 1401 through an input / output controller 1416 connected to the system bus 1405. The basic input / output system 1406 may also include an input / output controller 1416 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1416 also provides output to a display screen, a printer, or other types of output devices.
[0222] The mass storage device 1407 is connected to the central processor 1401 via a mass storage controller (not shown) connected to the system bus 1405. The mass storage device 1407 and its associated computer-readable medium provide non-volatile storage for the server 1400. That is, the mass storage device 1407 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROM drive.
[0223] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storage technologies, CD-ROM, DVD or other optical storage, tape cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the above. The above-mentioned system memory 1404 and mass storage device 1407 can be collectively referred to as memory.
[0224] According to various embodiments of the present invention, the server 1400 can also be connected to a remote computer on the network through a network such as the Internet. That is, the server 1400 can be connected to the network 1412 through the network interface unit 1411 connected to the system bus 1405, or the network interface unit 1411 can be used to connect to other types of networks or remote computer systems (not shown).
[0225] The memory further includes one or more programs, which are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for executing the information processing method.
[0226] In an embodiment of the present invention, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by a processor of a terminal to complete the various steps on the terminal side in the above method embodiment, or the instructions can be executed by a processor of a server to complete the various steps on the server side in the above method embodiment. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0227] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0228] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0229] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0230] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An information processing method, characterized in that: The method comprises: Receive virtual resource transfer requests sent by each client; each of the virtual resource transfer requests carries corresponding virtual resource transfer data information; Obtain the amount of virtual resource transfer requests per unit time; If the amount of virtual resource transfer requests within the unit time exceeds a preset threshold, index information is generated according to the virtual resource transfer data information, and the index information and the virtual resource transfer data information are stored in a first account; the first account is a virtual account relative to the client's account, and the client's account and the first account are stored in different storage databases; wherein the preset threshold is the maximum value of the amount of virtual resource transfer requests that can be processed by the server within a unit time; Returning to the corresponding client a prompt indicating that the virtual resource transfer request has been completed; the prompt is the effect that the fictitious virtual resource transfer should produce; Storing the index information in a cache queue; Extracting the index information from the cache queue at a preset extraction rate, and acquiring corresponding virtual resource transfer data information from the first account according to the index information; According to the virtual resource transfer data information, the corresponding amount of virtual resources is transferred to the account of the virtual resource recipient; and the virtual resource transfer data information in the first account is deleted.
2. The information processing method according to claim 1, characterized in that: The virtual resource transfer data information includes the corresponding client account information and virtual resource quantity information; The step of generating index information according to the virtual resource transfer data information, and storing the index information and the virtual resource transfer data information in the first account comprises: Obtaining the account information of the client; Generating index information according to the account information of the client; Creating a correspondence between the index information and the virtual resource transfer data information; The index information and the virtual resource transfer data information are stored in the first account according to the corresponding relationship.
3. The information processing method according to claim 2, characterized in that: The storing the index information into a cache queue comprises: Searching the cache subqueue in the cache queue for the account information of the client; The index information is stored in the cache sub-queue.
4. The information processing method according to claim 1, characterized in that: After generating index information according to the virtual resource transfer data information and storing the index information and the virtual resource transfer data information in the first account, the method further includes: Receiving a virtual resource query request sent by a client, wherein the virtual resource query request carries account information of the client; Searching for virtual resource transfer data information corresponding to the account information of the client in the first account; Acquire virtual resource quantity information in the virtual resource transfer data information; Calculate the total quantity of the first virtual resource according to the virtual resource quantity information; Acquiring the total amount of the second virtual resource in the account of the client according to the account information of the client; The third total number of virtual resources is calculated according to the first total number of virtual resources and the second total number of virtual resources, and the third total number of virtual resources is returned to the client.
5. The information processing method according to claim 1, characterized in that: After generating index information according to the virtual resource transfer data information and storing the index information and the virtual resource transfer data information in the first account, the method further includes: Receiving a virtual resource usage request sent by a client, wherein the virtual resource usage request carries account information of the client; Obtaining index information corresponding to the account information of the client in the first account; The cache queue is searched, and the index information corresponding to the account information of the client is moved to the head of the cache queue.
6. An information processing device, characterized in that: The device comprises: A first receiving module is used to receive virtual resource transfer requests sent by each client; each of the virtual resource transfer requests carries corresponding virtual resource transfer data information; A storage module, used for obtaining the amount of virtual resource transfer requests within a unit time; if the amount of virtual resource transfer requests within the unit time exceeds a preset threshold, generating index information according to the virtual resource transfer data information, and storing the index information and the virtual resource transfer data information in a first account, wherein the first account is a virtual account relative to the client's account, and the client's account and the first account are stored in different storage databases; wherein the preset threshold is the maximum amount of virtual resource transfer requests that can be processed by the server within a unit time; and storing the index information in a cache queue; A first returning module is used to return a prompt to the corresponding client indicating that the virtual resource transfer request has been completed; the prompt is the effect that the fictitious virtual resource transfer should produce; An extraction module, configured to extract the index information from the cache queue at a preset extraction rate, and obtain corresponding virtual resource transfer data information from the first account according to the index information; A transfer module, used to transfer the corresponding amount of virtual resources to the account of the virtual resource recipient according to the virtual resource transfer data information; A deletion module is used to delete the virtual resource transfer data information in the first account.
7. The information processing device according to claim 6, characterized in that: The virtual resource transfer data information includes the corresponding client account information and virtual resource quantity information; The storage module comprises: A first acquisition module, used to acquire the account information of the client; A generating submodule, used to generate index information according to the account information of the client; A creation module, used to create a corresponding relationship between the index information and the virtual resource transfer data information; The third storage submodule is used to store the index information and the virtual resource transfer data information in the first account according to the corresponding relationship.
8. The information processing device according to claim 7, characterized in that: The storage module comprises: A first search module, configured to search the cache subqueue in the cache queue for the cache subqueue corresponding to the account information of the client; The storage module is used to store the index information into the cache sub-queue.
9. The information processing device according to claim 6, characterized in that: The device also includes: A second receiving module is used to receive a virtual resource query request sent by a client, wherein the virtual resource query request carries the account information of the client; A second search module, used for searching the first account for each virtual resource transfer data information corresponding to the account information of the client; A fourth acquisition module, used to acquire virtual resource quantity information in each of the virtual resource transfer data information; A first calculation module, configured to calculate the total quantity of the first virtual resource according to the virtual resource quantity information; A fifth acquisition module, configured to acquire the total amount of the second virtual resource in the account of the client according to the account information of the client; A second calculation module, configured to calculate a third total number of virtual resources based on the first total number of virtual resources and the second total number of virtual resources; The second returning module is used to return the total quantity of the third virtual resources to the client.
10. The information processing device according to claim 6, characterized in that: The device also includes: A third receiving module is used to receive a virtual resource use request sent by a client, wherein the virtual resource use request carries the account information of the client; A sixth acquisition module, configured to acquire index information corresponding to the account information of the client in the first account; The queue adjustment module is used to search the cache queue and move the index information corresponding to the account information of the client to the head of the cache queue.
11. A server, characterized in that: include: Processor and memory; The memory is used to store computer program instructions; The processor calls the computer program instructions to receive virtual resource transfer requests sent by each client; Each of the virtual resource transfer requests carries corresponding virtual resource transfer data information; Obtain the amount of virtual resource transfer requests per unit time; If the amount of virtual resource transfer requests within the unit time exceeds a preset threshold, generating index information according to the virtual resource transfer data information, and storing the index information and the virtual resource transfer data information in the first account; The first account is a virtual account relative to the client's account, and the client's account and the first account are stored in different storage databases; wherein the preset threshold is the maximum value of the virtual resource transfer request amount that can be processed by the server per unit time; Returning to the corresponding client a prompt indicating that the virtual resource transfer request has been completed; the prompt is the effect that the fictitious virtual resource transfer should produce; Storing the index information in a cache queue; Extracting the index information from the cache queue at a preset extraction rate, and acquiring corresponding virtual resource transfer data information from the first account according to the index information; According to the virtual resource transfer data information, the corresponding amount of virtual resources is transferred to the account of the virtual resource recipient; and the virtual resource transfer data information in the first account is deleted.
12. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, and when the computer program instructions are executed, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
VNC (Virtual Network Computer)-based remote resource access method and proxy device
CN102523207A
Virtual resource monitoring method, device and system
CN104376491A
Method and system for controlling transaction amount to enter into account
CN107015869A
Resource transfer method, related equipment and system
CN107493342A
Order asynchronous processing method and device, storage medium and terminal
CN107679931A
