技术领域Technical Field
本发明涉及信息处理技术领域,特别涉及一种信息处理方法、装置、服务器及存储介质。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
随着移动互联网技术的发展,手机等终端已成为人们生活中的必需品,而终端使用数量的增加对服务器的处理能力也提出了更高的要求,尤其是当出现瞬时涌入几倍于服务器服务能力的信息处理请求量时,如在春节除夕跨年时会有海量用户同时抢红包的场景,由于服务器的处理能力有限,可能导致服务器发生雪崩现象,吞吐能力会急剧下降,甚至完全无法对外提供服务。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.
现有技术中,对于上述问题常用的解决方案是限流,即对超过服务器处理能力的信息处理请求在前置阶段快速拒绝服务,只放行服务器可以处理的信息处理请求,通过控制进入系统的请求数量来保证系统持续稳定地运行,而对于无力提供服务的用户展示报错提示。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.
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of implementing the present invention, the inventors found that the prior art has at least the following problems:
为了减少服务器限流报错状态的持续时间,往往需要部署高于日常需求的服务器,导致一定程度上资源的浪费,提高了成本;此外,对于无力提供服务的用户直接向其强硬报错,导致用户体验差,用户收到报错提示后一般会立刻连续重试,仍会对服务器产生大量压力,浪费系统有限的服务能力。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
为了解决现有技术的问题,本发明实施例提供了一种信息处理方法、装置、服务器及存储介质。所述技术方案如下: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:
第一方面,提供了一种信息处理方法,所述方法包括:In a first aspect, an information processing method is provided, the method comprising:
接收各客户端发送的虚拟资源转移请求;每个所述虚拟资源转移请求中均携带有相对应的虚拟资源转移数据信息;Receive virtual resource transfer requests sent by each client; each of the virtual resource transfer requests carries corresponding virtual resource transfer data information;
根据预设的存储策略存储所述虚拟资源转移数据信息;Storing the virtual resource transfer data information according to a preset storage strategy;
按照预设的提取速率提取所述虚拟资源转移数据信息。The virtual resource transfer data information is extracted according to a preset extraction rate.
第二方面,提供了一种信息处理装置,所述装置包括:In a second aspect, an information processing device is provided, the device comprising:
第一接收模块,用于接收各客户端发送的虚拟资源转移请求;每个所述虚拟资源转移请求中均携带有相对应的虚拟资源转移数据信息;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 storing the virtual resource transfer data information according to a preset storage strategy;
提取模块,用于按照预设的提取速率提取所述虚拟资源转移数据信息。The extraction module is used to extract the virtual resource transfer data information according to a preset extraction rate.
第三方面,提供了服务器,包括:处理器和存储器;In a third aspect, a server is provided, including: a processor and a 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;
根据预设的存储策略存储所述虚拟资源转移数据信息;Storing the virtual resource transfer data information according to a preset storage strategy;
按照预设的提取速率提取所述虚拟资源转移数据信息。The virtual resource transfer data information is extracted according to a preset extraction rate.
第四方面,提供了一种计算机存储介质,该计算机存储介质存储有计算机程序指令,该计算机程序指令被执行时,实现上述信息处理的方法。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.
本发明实施例提供的技术方案带来的有益效果是:The technical solution provided by the embodiment of the present invention has the following beneficial effects:
本发明在接收到各个客户端发送的虚拟资源转移请求后,首先按照预设的存储策略存储相对应的虚拟资源转移数据信息,然后按照预设的提取速率提取存储的虚拟资源转移数据信息,缓冲了服务器的处理压力,从而使得服务器能够按照其处理能力稳定地进行虚拟资源转移请求的处理,降低了瞬间高并发的虚拟资源转移请求量对服务器最大吞吐率的要求,有利于降低整个系统的成本,改善服务器处理能力不足时的用户体验效果。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
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。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.
图1是本发明实施例提供的实施环境的示意图;FIG1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention;
图2是本发明实施例提供的一种信息处理方法的流程图;FIG2 is a flow chart of an information processing method provided by an embodiment of the present invention;
图3是本发明实施例提供的根据预设的存储策略存储虚拟资源转移数据信息的方法流程示意图;3 is a schematic diagram of a method flow for storing virtual resource transfer data information according to a preset storage strategy provided by an embodiment of the present invention;
图4是本发明实施例提供的生成索引信息,并存储索引信息与虚拟资源转移数据信息至第一账户中的方法流程示意图;4 is a schematic flow chart 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;
图5是本发明实施例提供的按照预设的提取速率提取虚拟资源转移数据信息的方法流程示意图;5 is a schematic flow chart of a method for extracting virtual resource transfer data information at a preset extraction rate according to an embodiment of the present invention;
图6是本发明实施例提供的另一种信息处理方法的流程示意图;6 is a schematic flow chart of another information processing method provided by an embodiment of the present invention;
图7是本发明实施例提供的另一种信息处理方法的流程示意图;7 is a schematic flow chart of another information processing method provided by an embodiment of the present invention;
图8是本发明实施例提供的另一种信息处理方法的流程示意图;8 is a schematic flow chart of another information processing method provided by an embodiment of the present invention;
图9是本发明实施例提供的另一种信息处理方法的流程示意图;9 is a schematic flow chart of another information processing method provided by an embodiment of the present invention;
图10是本发明实施例提供的一种信息处理装置的结构方框图;10 is a block diagram of the structure of an information processing device provided by an embodiment of the present invention;
图11是本发明实施例提供的存储模块的结构方框图;11 is a block diagram of a storage module according to an embodiment of the present invention;
图12是本发明实施例提供的另一种信息处理装置的结构方框图;12 is a block diagram of another information processing device provided by an embodiment of the present invention;
图13是本发明实施例提供的另一种信息处理装置的结构方框图;13 is a block diagram of another information processing device provided by an embodiment of the present invention;
图14本发明实施例提供的服务器的结构示意图。FIG14 is a schematic diagram of the structure of a server provided in an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。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.
请参考图1,其示出了本发明实施例提供的实施环境的示意图。该实施环境包括:服务器02和与该服务器02连接的至少一个终端01。Please refer to FIG1 , 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 .
终端01中运行有客户端,该客户端可以是任何具有虚拟资源收发功能的客户端。例如,终端01中运行的客户端可以是社交应用客户端、即时通信客户端、支付类应用客户端、游戏客户端、阅读客户端、专用于收发虚拟资源的客户端等等。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.
终端01可以是手机、平板电脑、电子书阅读器、MP3(Moving Picture ExpertsGroup Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving PictureExperts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。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.
服务器02可以是一台服务器,也可以是由若干台服务器组成的服务器集群,或者是一个云计算服务中心。The server 02 may be a single server, or a server cluster consisting of several servers, or a cloud computing service center.
服务器02可以通过网络分别与终端01建立通信连接。该网络可以是无线网络,也可以是有线网络。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.
需要说明的是,在本发明各个实施例中,所涉及的虚拟资源可以是货币、游戏装备、游戏材料、游戏宠物、游戏币、图标、会员、称号、增值业务、积分、元宝、金豆、礼金券、兑换券、优惠券、贺卡、金钱等等。本发明实施例对资源类型不作限定。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.
请参考图2,其示出了本发明实施例提供的一种信息处理方法的流程图,本实施例的信息处理方法可以应用于图1所示实施环境的服务器02中。如图2所示,该信息处理方法可以包括如下步骤:Please refer to Figure 2, which shows a flow chart of an information processing method provided by an embodiment of the present invention. The information processing method of this embodiment can be applied to the server 02 in the implementation environment shown in Figure 1. As shown in Figure 2, the information processing method may include the following steps:
步骤202,接收各客户端发送的虚拟资源转移请求。Step 202: Receive virtual resource transfer requests sent by each client.
具体的,客户端可以是上述具有发送虚拟资源转移请求功能的客户端,运行在一终端上,服务器接收各客户端发送的虚拟资源转移请求。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.
需要说明的是,服务器接收的各客户端发送的虚拟资源转移请求的数量可以是单位时间内几万个、几十万个或是几百万个等等,即可以是一个瞬间产生的高并发的虚拟资源请求量。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.
在本发明实施例中,每个虚拟资源转移请求中均携带有虚拟资源转移数据信息,该虚拟资源转移数据信息可以包括发送虚拟资源转移请求的客户端的账户信息、虚拟资源数量信息以及虚拟资源发送方或者接收方的账户信息等,上述虚拟资源数量信息为虚拟资源转移请求所需要转移的虚拟资源数量。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.
服务器接收客户端发送的虚拟资源转移请求之后,随即获取该虚拟资源转移请求中所携带的虚拟资源转移数据信息。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.
步骤204,根据预设的存储策略存储虚拟资源转移数据信息。Step 204: store the virtual resource transfer data information according to a preset storage policy.
在本发明实施例中,可以采用以下预设的存储策略来存储虚拟资源转移数据信息。In the embodiment of the present invention, the following preset storage strategy may be used to store virtual resource transfer data information.
方式一:将虚拟资源转移数据信息存入缓存队列,如异步消息队列中,后续处理需要使用的虚拟资源转移数据信息均可以从该缓存队列中直接提取。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.
方式二:可以采用图3的方法,图3所示为本发明实施例提供的根据预设的存储策略存储虚拟资源转移数据信息的方法流程示意图,如图3所示,该方法包括:Mode 2: The method of FIG. 3 may be used. FIG. 3 is a flow chart of a method for storing virtual resource transfer data information according to a preset storage policy provided by an embodiment of the present invention. As shown in FIG. 3 , the method includes:
步骤302,根据虚拟资源转移数据信息生成索引信息,将所述索引信息与所述虚拟资源转移数据信息存储在第一账户中。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.
在本发明实施例中,服务器可以在接收到客户端发送的虚拟资源转移请求之前,预先创建第一账户。服务器还可以在根据虚拟资源转移数据信息生成索引信息时,根据上述虚拟资源转移数据信息实时创建上述第一账户,例如可以根据虚拟资源转移数据信息中的客户端的账户信息创建与其相对应的第一账户,该第一账户相对于客户端的账户可以理解为对应的虚拟账户。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.
需要说明的是,在本发明实施例中,客户端的账户和第一账户采用不同的存储数据库存储,其中,客户端的账户采用关系型数据库Mysql存储,而第一账户可以采用内存云存储数据库cache存储。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.
索引信息与虚拟资源转移请求相对应,通过索引信息可以查找到与其相对应的唯一的虚拟资源转移数据信息。该索引信息的表示形式可以为处理单号,也可以为序列号等。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.
在本发明实施例中,可以采用如图4所示的方法生成索引信息,并存储索引信息与虚拟资源转移数据信息至第一账户中。如图4所示,该方法包括:In an embodiment of the present invention, the method shown in FIG4 may be used to generate index information, and store the index information and virtual resource transfer data information in the first account. As shown in FIG4, the method includes:
步骤3022,获取客户端的账户信息。Step 3022, obtaining the client's account information.
服务器可以从虚拟资源转移数据信息中获取到客户端的账户信息。The server can obtain the client's account information from the virtual resource transfer data information.
举例而言,服务器接收的虚拟资源转移请求分别为A、B、C,获取到与该虚拟资源转移请求相对应的虚拟资源转移数据信息分别为a、b、c。每一个虚拟资源转移数据信息中均至少包含客户端的账户信息、虚拟资源数量信息。如,虚拟资源转移数据信息a至少包含客户端的账户1,虚拟资源数量X;虚拟资源转移数据信息b至少包含客户端的账户2,虚拟资源数量Y;虚拟资源转移数据信息c至少包含客户端的账户3,虚拟资源数量Z。服务器分别获取客户端的账户1,客户端的账户2和客户端的账户3。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.
步骤3024,根据客户端的账户信息生成索引信息。Step 3024, generate index information according to the client's account information.
可以理解的,与客户端的账户相关的虚拟资源转移请求可能有多个,那么根据客户端的账户生成的索引信息也为多个,每个索引信息对应与其相关的虚拟资源转移数据信息。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.
举例而言,客户端A向服务器发送了3个虚拟资源转移请求,相应的,服务器分别接收这个3个虚拟资源转移请求,并获取这3个虚拟资源转移请求所携带的虚拟资源转移数据信息,分别为虚拟资源转移数据信息A1,虚拟资源转移数据信息A2和虚拟资源转移数据信息A3。在生成索引信息时,根据虚拟资源转移数据信息A1获取到客户端的账户A,并根据该客户端的账户A生成索引11;根据虚拟资源转移数据信息A2获取到客户端的账户A,并根据该客户端的账户A生成索引12;根据虚拟资源转移数据信息A3获取到客户端的账户A,并根据该客户端的账户A生成索引13。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.
步骤3026,创建索引信息与虚拟资源转移数据信息间的对应关系。Step 3026, creating a correspondence between the index information and the virtual resource transfer data information.
在生成索引信息之后,创建索引信息与虚拟资源转移数据信息间的对应关系,以使得后续根据索引信息可以查找到相应的虚拟资源转移数据信息。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.
例如,创建索引11与虚拟资源转移数据信息A1的对应关系,创建索引12与虚拟资源转移数据信息A2的对应关系,创建索引13与虚拟资源转移数据信息A3的对应关系。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.
步骤3028,按照上述对应关系将索引信息与虚拟资源转移数据信息存储在上述第一账户中。Step 3028: store the index information and the virtual resource transfer data information in the first account according to the above correspondence.
具体的,可以将多个客户端的索引信息与虚拟资源转移数据信息的对应关系存储在第一账户中,并以列表形成存储,如表1所示。在第一账户中,按照客户端的账户名称分类,将同一客户端的账户下的索引信息与虚拟资源转移数据信息的对应关系存储在该客户端的账户名称分类下。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.
表1Table 1
当然,在本发明实施例中,还可以为每一个客户端单独建立一个第一账户,即第一账户与客户端的账户一一对应。例如,可以根据客户端的账户A创建第一账户A,该第一账户A用于存储与客户端的账户A相关的索引信息与虚拟资源转移数据信息的对应关系。根据客户端的账户B创建第一账户B,该第一账户B用于存储与客户端的账户B相关的索引信息与虚拟资源转移数据信息的对应关系。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.
步骤304,将所述索引信息存入缓存队列。Step 304: store the index information into a cache queue.
在本发明实施例中,缓存队列可以为消息队列如异步消息队列,该缓存队列可以存储多个上述索引信息,多个索引信息可以按照先入先出的规则存储在缓存队列中。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.
在实际应用中,缓存队列中的索引信息可以按照客户端的账户信息存储,即每个客户端的账户对应的所有索引信息作为一个缓存子队列,缓存子队列中的索引信息可以按照先入先出的规则排列。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.
举例而言,消息队列中包括消息子队列A、消息子队列B和消息子队列C,其中,消息子队列A与客户端的账户A对应,消息子队列B与客户端的账户B对应,消息子队列C与客户端的账户C对应。消息子队列A中存储索引11、索引12和索引13,消息子队列B中存储索引21,消息子队列C中存储索引31。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.
在本发明实施例中,将索引信息存入缓存队列中时,可以查找缓存队列中与客户端的账户信息相对应的缓存子队列,然后将索引信息存储在该缓存子队列中,具体的,可以按照先入先出规则,将该索引信息存入缓存子队列的队尾。例如,在将索引信息存入消息队列之前,先获取该索引信息所对应的客户端的账户信息,然后依据该客户端的账户信息查找消息队列中与其对应的消息子队列,然后再将索引信息存入该消息子队列的队尾。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.
步骤206,按照预设的提取速率提取虚拟资源转移数据信息。Step 206: extract virtual resource transfer data information according to a preset extraction rate.
服务器可以根据其处理能力按照预设的提取速率提取虚拟资源转移数据信息。The server may extract the virtual resource transfer data information at a preset extraction rate according to its processing capability.
在本发明实施例中,当虚拟资源转移数据信息储存在缓存队列中时,可以直接从缓存队列中提取虚拟资源转移数据信息。当虚拟资源转移数据信息按照图3所示的方法存储时,可以采用图5所示的方法进行提取,图5所示为本发明实施例提供的按照预设的提取速率提取虚拟资源转移数据信息的方法流程示意图。如图5所示,该方法包括:In an embodiment of the present invention, when the virtual resource transfer data information is stored in a cache queue, the virtual resource transfer data information can be directly extracted from the cache queue. When the virtual resource transfer data information is stored according to the method shown in FIG3, it can be extracted using the method shown in FIG5, which 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. As shown in FIG5, the method includes:
步骤502,按照预设的提取速率从所述缓存队列中提取所述索引信息。Step 502: extract the index information from the cache queue according to a preset extraction rate.
服务器可以根据其处理能力按照预设的提取速率从缓存队列的队首开始提取索引信息,以进行后续的处理。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.
具体的,在从消息队列中提取索引信息之前,服务器还可以检测其当前资源的空闲状态,根据检测的当前资源的空闲状态确定从缓存队列中提取的索引信息的数量以及是否提取索引信息进行相应的处理。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.
步骤504,根据索引信息从第一账户中获取相对应的虚拟资源转移数据信息。Step 504: Obtain corresponding virtual resource transfer data information from the first account according to the index information.
在本发明实施例中,第一账户中存储有索引信息与虚拟资源转移数据信息的对应关系,服务器通过索引信息查找到与其相对应的虚拟资源转移数据信息后获取该信息。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.
本发明实施例提供的信息处理方法在接收到各个客户端发送的虚拟资源转移请求后,首先按照预设的存储策略存储相对应的虚拟资源转移数据信息,然后按照预设的提取速率提取存储的虚拟资源转移数据信息,缓冲了服务器的处理压力,从而使得服务器能够按照其处理能力稳定地进行虚拟资源转移请求的处理,降低了瞬间高并发的虚拟资源转移请求量对服务器最大吞吐率的要求,有利于降低整个系统的成本。此外,由于对虚拟资源转移数据信息进行了存储,因此不会向用户强硬报错,改善服务器处理能力不足时的用户体验效果。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.
请参考图6,其示出了本发明实施例提供的另一种信息处理方法的流程示意图,本实施例的信息处理方法可以应用于图1所示实施环境的服务器02中。如图6所示,该信息处理方法可以包括如下步骤: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 the server 02 in the implementation environment shown in Figure 1. As shown in Figure 6, the information processing method may include the following steps:
步骤602,接收各客户端发送的虚拟资源转移请求。Step 602: Receive virtual resource transfer requests sent by each client.
需要说明的是,服务器接收的各客户端发送的虚拟资源转移请求的数量可以是单位时间内几万个、几十万个或是几百万个等等,即可以是一个瞬间产生的高并发的虚拟资源请求量。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.
在本发明实施例中,每个虚拟资源转移请求中均携带有虚拟资源转移数据信息,该虚拟资源转移数据信息可以包括发送虚拟资源转移请求的客户端的账户信息、虚拟资源数量信息以及虚拟资源发送方或者接收方的账户信息等,上述虚拟资源数量信息为虚拟资源转移请求所需要转移的虚拟资源数量。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.
服务器接收客户端发送的虚拟资源转移请求之后,随即获取该虚拟资源转移请求中所携带的虚拟资源转移数据信息。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.
步骤604,根据虚拟资源转移数据信息生成索引信息,将索引信息与虚拟资源转移数据信息存储在第一账户中。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.
在本发明实施例中,服务器可以在接收到客户端发送的虚拟资源转移请求之前,预先创建第一账户。服务器还可以在根据虚拟资源转移数据信息生成索引信息时,根据上述虚拟资源转移数据信息实时创建上述第一账户,例如可以根据虚拟资源转移数据信息中的客户端的账户信息创建与其相对应的第一账户,该第一账户相对于客户端的账户可以理解为对应的虚拟账户。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.
需要说明的是,在本发明实施例中,客户端的账户和第一账户采用不同的存储数据库存储,其中,客户端的账户采用关系型数据库Mysql存储,而第一账户可以采用内存云存储数据库cache存储。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.
索引信息与虚拟资源转移请求相对应,通过索引信息可以查找到与其相对应的唯一的虚拟资源转移数据信息。该索引信息的表示形式可以为处理单号,也可以为序列号等。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.
具体的,如何存储索引信息与虚拟资源转移数据信息可以参见图4,在此处不再赘述。Specifically, how to store the index information and the virtual resource transfer data information can be seen in FIG. 4 , which will not be described in detail here.
请参见图7,本发明实施例在步骤604之前还可以包括:Referring to FIG. 7 , the embodiment of the present invention may further include, before step 604:
步骤702,获取虚拟资源转移请求量。Step 702: Obtain the virtual resource transfer request amount.
在本发明实施例中,虚拟资源转移请求量可以是单位时间内的虚拟资源转移请求的个数,也可以是单位时间内各个虚拟资源转移请求的流量总和。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.
步骤704,判断虚拟资源转移请求量是否超过预设阈值,若虚拟资源转移请求量超过预设阈值,则执行步骤604。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 .
若虚拟资源转移请求量没有超过预设阈值,则可以直接执行步骤614。If the virtual resource transfer request amount does not exceed the preset threshold, step 614 may be directly executed.
通过判断获取的虚拟资源转移请求量是否超过预设阈值,以此来确定服务器是否有能力对当前接收的虚拟资源转移请求立刻进行处理。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.
预设阈值与虚拟资源转移请求量相对应,当虚拟资源转移请求量是单位时间内处理的虚拟资源转移请求的个数时,预设阈值为服务器单位时间内能够处理的虚拟资源转移请求个数的最大值;当虚拟资源转移请求量是单位时间内处理的各个虚拟资源转移请求的流量总和时,预设阈值为服务器单位时间内能够处理的流量的最大值。当服务器达到上述虚拟资源转移请求个数的最大值或者各个虚拟资源转移请求的流量总和的最大值时,服务器可以是以满负荷状态运行,也可以是以接近满负荷状态运行,如可以是90%的负荷状态。为了使得服务器能够以最大负荷且稳定地运行,在本发明实施例中,优选的,预设阈值设置为当达到该预设阈值时,服务器以接近满负荷状态运行,如可以是90%的负荷状态运行。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%.
在本发明实施例中,步骤604之前还可以包括虚拟资源转移请求的验证步骤,以对虚拟资源转移请求的合法性进行判断,只有验证通过后,才能进行步骤604。对于虚拟资源转移请求的验证请继续参见图7,具体的包括: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, step 604 can be performed. Please continue to refer to Figure 7 for the verification of the virtual resource transfer request, which specifically includes:
步骤706,获取第一验证信息。Step 706, obtaining first verification information.
在本发明实施例中,虚拟资源转移数据信息包括与虚拟资源转移请求相对应的第一验证信息,该第一验证信息用于服务器验证虚拟资源转移请求的合法性。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.
第一验证信息包括全量要素验证信息,该全量要素验证信息可以包括平台签名、操作密码、虚拟物品内容和虚拟物品有效性签名等。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.
步骤708,根据第一验证信息对虚拟资源转移请求进行验证,若验证通过,则进入步骤604。Step 708 , verify the virtual resource transfer request according to the first verification information, and if the verification passes, proceed to step 604 .
服务器根据获取的第一验证信息对该虚拟资源转移请求进行合法性验证。具体的验证过程可以是服务器将获取的第一验证信息与其存储的用于对虚拟资源转移请求进行验证的信息相比对,在二者相符时,认为当前的虚拟资源转移请求合法,验证通过,可以进行下一步操作,若二者不相符,则认为当前的虚拟资源转移请求不合法,验证未通过。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 operation can be performed. If the two are inconsistent, the current virtual resource transfer request is considered to be illegal, and the verification fails.
当验证未通过时,服务器可以向客户端返回验证未通过的提示,以告知用户不会对其虚拟资源转移请求进行下一步的操作。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.
需要说明的是,在进行验证时,可以对全量要素验证信息中的所有项都进行验证,也可以对其中的某一项或者某几项进行验证。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.
步骤606,向客户端返回虚拟资源转移请求已完成处理的提示。Step 606: Return a prompt to the client indicating that the virtual resource transfer request has been processed.
服务器在将索引信息和对应的虚拟资源转移数据信息存储在第一账户中之后,可以虚构虚拟资源转移应该产生的效果,即向客户端返回虚拟资源转移请求已完成处理的提示,以提高用户的体验效果,使得用户对于服务器延迟处理其虚拟资源转移请求无感。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, i.e., 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.
步骤608,将索引信息存入缓存队列中。Step 608: store the index information in the cache queue.
在本发明实施例中,缓存队列可以为消息队列如异步消息队列,该缓存队列可以存储多个上述索引信息,多个索引信息可以按照先入先出的规则存储在缓存队列中。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.
具体的,缓存队列中的索引信息可以按照客户端的账户信息存储,即每个客户端的账户对应的所有索引信息作为一个缓存子队列,缓存子队列中的索引信息可以按照先入先出的规则排列。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.
在本发明实施例中,将索引信息存入缓存队列中时,可以查找缓存队列中与客户端的账户信息相对应的缓存子队列,然后将索引信息存储在该缓存子队列中,具体的,可以按照先入先出规则,将该索引信息存入缓存子队列的队尾。例如,在将索引信息存入消息队列之前,先获取该索引信息所对应的客户端的账户信息,然后依据该客户端的账户信息查找消息队列中与其对应的消息子队列,然后再将索引信息存入该消息子队列的队尾。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.
步骤610,按照预设的提取速率从缓存队列中提取索引信息。Step 610: extract index information from the cache queue according to a preset extraction rate.
服务器可以根据其处理能力按照预设的提取速率从消息队列的队首开始提取索引信息,以进行后续的处理。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.
具体的,在从消息队列中提取索引信息之前,服务器还可以检测其当前资源的空闲状态,根据检测的当前资源的空闲状态确定从消息队列中提取的索引信息的个数以及是否提取索引信息进行相应的处理。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.
步骤612,根据索引信息从第一账户中获取相对应的虚拟资源转移数据信息。Step 612: Obtain corresponding virtual resource transfer data information from the first account according to the index information.
在本发明实施例中,第一账户中存储有索引信息与虚拟资源转移数据信息的对应关系,服务器通过索引信息查找到与其相对应的虚拟资源转移数据信息后获取该信息。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.
步骤614,根据虚拟资源转移数据信息将相对应的虚拟资源数量转移至第二账户中。Step 614: transfer the corresponding amount of virtual resources to the second account according to the virtual resource transfer data information.
服务器获取到与索引信息相对应的虚拟资源转移数据信息之后,进一步获取该虚拟资源转移数据信息中的虚拟资源数量,并将与该虚拟资源数量相等的虚拟资源转移至第二账户中。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.
需要说明的是,第二账户为虚拟资源接收方的账户,在不同的应用场景中,第二账户可以为不同功能的客户端的账户。比如,在春节跨年抢红包的场景中,第二账户可以为发送虚拟资源转移请求的客户端的账户,即抢红包的客户端的账户;在淘宝双11抢购中,第二账户还可以为商户的客户端的账户。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.
需要说明的是,为了提高安全性,防止虚拟资源转移数据信息中的第一验证信息被篡改,在本发明实施例中,步骤614之前还可以包括进一步地验证步骤,以对虚拟资源转移请求的合法性进行再次判断,只有验证通过后,才能进行步骤614,该进一步的验证可见参见图7,具体的包括: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 FIG. 7, and specifically includes:
步骤710,获取第二验证信息。Step 710, obtaining second verification information.
在本发明实施例中,虚拟资源转移数据信息还包括与虚拟资源转移请求相对应的第二验证信息,该第二验证信息包括摘要要素验证信息,该摘要要素验证信息为与上述第一验证信息的全量要素验证信息相对应的字符串MD5值。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.
步骤712,根据第二验证信息对虚拟资源转移请求进行验证,若验证通过,则进入步骤614。Step 712 , verify the virtual resource transfer request according to the second verification information. If the verification passes, proceed to step 614 .
服务器根据获取的第二验证信息对该虚拟资源转移请求进行合法性验证。具体的验证过程可以是服务器将获取的第二验证信息与其存储的用于对虚拟资源转移请求进行验证的信息相比对,在二者相符时,认为当前的虚拟资源转移请求合法,验证通过,可以进行下一步操作,若二者不相符,则认为当前的虚拟资源转移请求不合法,验证未通过。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 step can be performed. If the two are inconsistent, the current virtual resource transfer request is considered to be illegal, and the verification fails.
若验证未通过,则可以向服务器管理员返回报警消息,告知可能验证信息被篡改,需要人工干预。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.
步骤616,删除第一账户中的所述虚拟资源转移数据信息。Step 616: Delete the virtual resource transfer data information in the first account.
服务器在根据虚拟资源转移数据信息将相对应的虚拟资源数量转移至第二账户中之后,删除第一账户中的已经发生转移的虚拟资源转移数据信息。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.
比如,服务器从消息队列中提取索引11,根据该索引11从第一账户中获取到虚拟资源转移数据信息A1,根据该虚拟资源转移数据信息A1将其相对应的虚拟资源数量转移至客户端的账户中之后,将第一账户中的虚拟资源转移数据信息A1进行删除,当然也可以随之删除索引11,从而防止同一虚拟资源同时存放在第一账户和第二账户中,以保证后续用户需要进行虚拟资源总数的展示时,不会出现展示的虚拟资源总数虚高或者虚低的现象。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.
本发明实施例提供的信息处理方法缓冲了服务器的处理压力,通使得服务器能够按照其处理能力稳定地进行虚拟资源转移请求的处理,降低了瞬间高并发的虚拟资源转移请求量对服务器最大吞吐率的要求,有利于降低整个系统的成本。此外,由于对虚拟资源转移数据信息进行了存储,因此不会向用户强硬报错,改善服务器处理能力不足时的用户体验效果。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.
请参考图8,其示出了本发明实施例提供的另一种信息处理方法的流程示意图,本实施例的信息处理方法可以应用于图1所示实施环境的服务器02中。如图8所示,该信息处理方法可以包括如下步骤: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 the server 02 in the implementation environment shown in Figure 1. As shown in Figure 8, the information processing method may include the following steps:
步骤802,接收各客户端发送的虚拟资源转移请求。Step 802: Receive virtual resource transfer requests sent by each client.
在本发明实施例中,每个虚拟资源转移请求中均携带有虚拟资源转移数据信息,该虚拟资源转移数据信息可以包括发送虚拟资源转移请求的客户端的账户信息、虚拟资源数量信息以及虚拟资源发送方或者接收方的账户信息等,上述虚拟资源数量信息为虚拟资源转移请求所需要转移的虚拟资源数量。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.
步骤804,根据虚拟资源转移数据信息生成索引信息,并将索引信息与虚拟资源转移数据信息存储在第一账户中。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.
步骤806,将索引信息存入缓存队列中。Step 806: store the index information in the cache queue.
上述步骤802-806可以参照图6所示的信息处理方法的相关步骤,在此不再赘述。The above steps 802-806 can refer to the relevant steps of the information processing method shown in Figure 6, and will not be repeated here.
步骤808,接收客户端发送的虚拟资源查询请求。Step 808: Receive a virtual resource query request sent by the client.
当客户端用户需要对虚拟资源的总数进行查询时,用户可以通过客户端向服务器发送虚拟资源查询请求,该虚拟资源查询请求中携带有客户端的账户信息。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.
相应的,服务器能够获取该虚拟资源查询请求中的客户端的账户信息。Correspondingly, the server can obtain the client's account information in the virtual resource query request.
步骤810,查找第一账户中与客户端的账户信息相对应的虚拟资源转移数据信息。Step 810: Search the first account for virtual resource transfer data information corresponding to the client's account information.
服务器在获取到虚拟资源查询请求中携带的客户端的账户信息之后,根据客户端的账户信息查找第一账户,以找出与该客户端的账户信息相对应的虚拟资源转移信息。具体的,服务器可以通过客户端的账户信息找到该账户下的所有索引信息,然后根据对应关系,由索引信息查找到各虚拟资源转移数据信息。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.
步骤812,获取虚拟资源转移数据信息中的虚拟资源数量信息。Step 812: Acquire virtual resource quantity information in the virtual resource transfer data information.
服务器将第一账户中与该客户端的账户信息相对应的虚拟资源转移数据信息找出之后,获取虚拟资源转移数据信息中的虚拟资源数量信息。可以理解的,第一账户中与该客户端的账户信息相对应的虚拟资源转移信息可能有若干个,则服务器分别获取这若干个虚拟资源转移信息中的虚拟资源数量信息。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.
步骤814,根据虚拟资源数量信息计算第一虚拟资源总数量。Step 814: Calculate the total quantity of the first virtual resource according to the virtual resource quantity information.
服务器在获取到虚拟资源数量信息之后,计算各个虚拟资源数量的加和,并将该计算结果作为第一虚拟资源总数量。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.
比如,第一账户中与客户端的账户信息相对应的虚拟资源数量为a,b,c,则第一虚拟资源总数量X=a+b+c。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.
步骤816,根据客户端的账户信息,获取该客户端的账户中的第二虚拟资源总数量。Step 816: Obtain the total amount of the second virtual resource in the client's account according to the client's account information.
服务器根据该客户端的账户信息获取该客户端的账户中的第二虚拟资源总数量Y。以抢红包场景为例时,该虚拟资源为货币,第二虚拟资源总数量Y为客户端的账户中的货币金额。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.
步骤818,根据第一虚拟资源总数量和第二虚拟资源总数量计算第三虚拟资源总数量,并向客户端返回所述第三虚拟资源总数量。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.
服务器在计算并获取到第一虚拟资源总数量X和第二虚拟资源总数量Y之后,计算第三虚拟资源总数量Z。需要说明的是,第三虚拟资源总数量可以根据实际的应用场景确定其具体的计算规则。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.
比如,在抢红包的应用场景中,用户需要查询其账户中的总金额时,第三虚拟资源总数量Z=X+Y,即将第一账户中与该客户端的账户相对应的第一虚拟资源总数量与客户端的账户中的第二虚拟资源总数量求和,从而将待转移的存储在第一账户中的虚拟资源数量与已经转移至客户端的账户中的虚拟资源数量的总和呈现给用户,使得客户端用户看到的展示的虚拟资源总数量为第一账户和客户端的账户中的总和;而在淘宝双11抢购的应用场景中,当用户即物品购买者需要查询其账户中的总金额时,第三虚拟资源总数量Z=Y-X,即将客户端的账户中的虚拟资源总数量与待转移的存储在第一账户中的虚拟资源数量求差值。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=Y-X, 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.
本发明实施例提供的信息处理方法由于在展示虚拟资源查询结果时,同时考虑了第一账户和第二账户中相对应的虚拟资源数量,因此不会因为采用了本发明实施例的信息处理方法缓冲了服务器的处理压力而使得显示的结果异常。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.
请参考图9,其示出了本发明实施例提供的另一种信息处理方法的流程示意图,本实施例的信息处理方法可以应用于图1所示实施环境的服务器02中。如图9所示,该信息处理方法可以包括如下步骤:Please refer to Figure 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 the server 02 in the implementation environment shown in Figure 1. As shown in Figure 9, the information processing method may include the following steps:
步骤902,接收各客户端发送的虚拟资源转移请求。Step 902: Receive virtual resource transfer requests sent by each client.
在本发明实施例中,每个虚拟资源转移请求中均携带有虚拟资源转移数据信息,该虚拟资源转移数据信息可以包括发送虚拟资源转移请求的客户端的账户信息、虚拟资源数量信息以及虚拟资源发送方或者接收方的账户信息等,上述虚拟资源数量信息为虚拟资源转移请求所需要转移的虚拟资源数量。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.
步骤904,根据虚拟资源转移数据信息生成索引信息,并将索引信息与虚拟资源转移数据信息存储在第一账户中。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.
步骤906,将索引信息存入缓存队列中。Step 906: store the index information in the cache queue.
上述步骤902-906可以参照图6所示的信息处理方法的相关步骤,在此不再赘述。The above steps 902-906 can refer to the relevant steps of the information processing method shown in Figure 6, and will not be repeated here.
步骤908,接收客户端发送的虚拟资源使用请求。Step 908: Receive a virtual resource usage request sent by the client.
当客户端用户需要使用第一账户中的虚拟资源时,用户可以通过客户端向服务器发送虚拟资源使用请求,该虚拟资源使用请求中携带客户端的账户信息。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.
步骤910,获取第一账户中与上述客户端的账户信息相对应的索引信息。Step 910: Obtain index information corresponding to the account information of the client in the first account.
服务器在获取到虚拟资源使用请求中携带的客户端的账户信息之后,根据客户端的账户信息查找第一账户,以找出与该客户端的账户信息相对应的索引信息。当然,可以理解的,第一账户中与客户端的账户信息相对应的索引信息可以为多个。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.
步骤912,查找缓存队列,并将与客户端的账户信息相对应的索引信息移至缓存队列的队首。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.
服务器在获取到与客户端的账户信息相对应的索引信息后,根据该索引信息查找缓冲队列如消息队列。当在消息队列中查找到该索引信息后,将该索引信息移至消息队列的队首,以使得服务器能够优先拉取该索引信息,从而能够优先对该索引信息进行处理。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.
在本发明实施例中,当消息队列中包括与客户端的账户信息相对应的消息子队列时,由于与同一客户端的账户信息相对应的索引信息均存入在同一消息子队列中,因此,也可以将与客户端的账户信息相对应的消息子队列移至消息队列的队首,从而服务器能够优先对该消息子队列的索引信息进行处理。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.
综上,本实施例提供的信息处理方法,在接收到用户的虚拟资源使用请求时,优先将该虚拟资源使用请求的客户端的账户所对应的索引信息进行处理,从而满足用户对相关虚拟资源的正常使用,并使得用户对采用了本发明实施例的信息处理方法来缓冲其虚拟资源转移请求无感知,不会影响到用户的体验。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.
请参考图10,其示出了本发明实施例提供的一种信息处理装置的结构方框图,该装置具有实现上述方法示例中服务器侧的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置可以包括:第一接收模块110、存储模块120、提取模块130。Please refer to Figure 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, 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.
第一接收模块110,用于接收各客户端发送的虚拟资源转移请求;每个所述虚拟资源转移请求中均携带有相对应的虚拟资源转移数据信息。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.
存储模块120,用于根据预设的存储策略存储所述虚拟资源转移数据信息。The storage module 120 is used to store the virtual resource transfer data information according to a preset storage policy.
提取模块130,用于按照预设的提取速率提取所述虚拟资源转移数据信息。The extraction module 130 is used to extract the virtual resource transfer data information according to a preset extraction rate.
作为一个示例,如图11所示,存储模块120可以包括:As an example, as shown in FIG11 , the storage module 120 may include:
第一存储子模块1210,用于将所述虚拟资源转移数据信息存入缓存队列中。The first storage submodule 1210 is used to store the virtual resource transfer data information into a cache queue.
提取模块130可以包括:The extraction module 130 may include:
第一提取子模块1310,用于按照预设的提取速率从缓存队列中提取虚拟资源转移数据信息。The first extraction submodule 1310 is configured to extract virtual resource transfer data information from the cache queue according to a preset extraction rate.
作为另一个示例,如图12所示,存储模块120可以包括:As another example, as shown in FIG. 12 , the storage module 120 may include:
生成模块1220,用于根据所述虚拟资源转移数据信息生成索引信息,并将所述索引信息与虚拟资源转移数据信息存储在第一账户中。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.
第二存储子模块1230,用于将所述索引信息存入缓存队列。The second storage submodule 1230 is used to store the index information into a cache queue.
提取模块130可以包括:The extraction module 130 may include:
第二提取子模块1320,用于按照预设的提取速率从缓存队列中提取索引信息。The second extraction submodule 1320 is used to extract index information from the cache queue according to a preset extraction rate.
第二获取模块1330,用于根据所述索引信息从所述第一账户中获取相对应的虚拟资源转移数据信息。The second acquisition module 1330 is used to acquire corresponding virtual resource transfer data information from the first account according to the index information.
可选的,如图12所示,生成模块1220可以包括:Optionally, as shown in FIG12 , the generating module 1220 may include:
第一获取模块1221,用于获取所述客户端的账户信息。The first acquisition module 1221 is used to acquire the account information of the client.
生成子模块1222,用于根据所述客户端的账户信息生成索引信息。The generating submodule 1222 is used to generate index information according to the account information of the client.
创建模块1223,用于创建索引信息与虚拟资源转移数据信息间的对应关系。The creation module 1223 is used to create a corresponding relationship between the index information and the virtual resource transfer data information.
第三存储子模块1224,用于按照所述对应关系将索引信息与虚拟资源转移数据信息存储在第一账户中。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.
可选的,如图12所示,第二存储子模块1230可以包括:Optionally, as shown in FIG12 , the second storage submodule 1230 may include:
第一查找模块1231,用于查找缓存队列中与所述客户端的账户信息相对应的缓存子队列。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.
存入模块1232,用于将索引信息存入所述缓存子队列。The storage module 1232 is used to store the index information into the cache sub-queue.
可选的,如图12所示,该装置还可以包括:Optionally, as shown in FIG12 , the device may further include:
转移模块140,用于根据虚拟资源转移数据信息将相对应的虚拟资源数量转移至第二账户中。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.
删除模块150,用于删除第一账户中的所述虚拟资源转移数据信息。The deleting module 150 is used to delete the virtual resource transfer data information in the first account.
可选的,如图12所示,该装置还可以包括:Optionally, as shown in FIG12 , the device may further include:
第一返回模块160,用于向相对应的客户端返回所述虚拟资源转移请求已完成转移的提示。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.
可选的,如图12所示,该装置还可以包括:Optionally, as shown in FIG12 , the device may further include:
第三获取模块170,用于获取虚拟资源转移请求量。The third acquisition module 170 is used to acquire the virtual resource transfer request amount.
判断模块180,用于判断所述虚拟资源转移请求量是否超过预设阈值;当所述虚拟资源转移请求量超过预设阈值时,根据预设的存储策略存储所述虚拟资源转移数据信息。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.
可选的,如图12所示,该装置还可以包括验证模块1210,该验证模块1210用于获取虚拟资源转移信息,以对相应的虚拟资源转移请求进行合法性验证。Optionally, as shown in FIG. 12 , the apparatus may further include a verification module 1210 , wherein the verification module 1210 is configured to obtain virtual resource transfer information to verify the legitimacy of a corresponding virtual resource transfer request.
作为一个示例,如图13所示,该装置还可以包括:As an example, as shown in FIG13 , the device may further include:
第二接收模块190,用于接收客户端发送的虚拟资源查询请求,所述虚拟资源查询请求中携带所述客户端的账户信息。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.
第二查找模块1110,用于查找所述第一账户中与所述客户端的账户信息相对应的各虚拟资源转移数据信息。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.
第四获取模块1120,用于获取每个所述虚拟资源转移数据信息中的虚拟资源数量信息。The fourth acquisition module 1120 is used to acquire the virtual resource quantity information in each of the virtual resource transfer data information.
第一计算模块1130,用于根据所述虚拟资源数量信息计算第一虚拟资源总数量。The first calculation module 1130 is used to calculate the total quantity of the first virtual resource according to the virtual resource quantity information.
第五获取模块1140,用于根据所述客户端的账户信息,获取所述客户端的账户中的第二虚拟资源总数量。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.
第二计算模块1150,用于根据所述第一虚拟资源总数量和第二虚拟资源总数量计算第三虚拟资源总数量。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.
第二返回模块1160,用于向所述客户端返回所述第三虚拟资源总数量。The second returning module 1160 is configured to return the total quantity of the third virtual resources to the client.
作为另一个示例,如图13所示,该装置还可以包括:As another example, as shown in FIG13 , the apparatus may further include:
第三接收模块1170,用于接收客户端发送的虚拟资源使用请求,所述虚拟资源使用请求中携带所述客户端的账户信息。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.
第六获取模块1180,用于获取所述第一账户中与所述客户端的账户信息相对应的索引信息。The sixth acquisition module 1180 is used to acquire index information corresponding to the account information of the client in the first account.
队列调整模块1190,用于查找所述缓存队列,并将与所述客户端的账户信息相对应的索引信息移至所述缓存队列的队首。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.
综上,本发明实施例提供的信息处理装置,在接收到各个客户端发送的虚拟资源转移请求后,首先按照预设的存储策略存储相对应的虚拟资源转移数据信息,然后按照预设的提取速率提取存储的虚拟资源转移数据信息,缓冲了服务器的处理压力,从而使得服务器能够按照其处理能力稳定地进行虚拟资源转移请求的处理,降低了瞬间高并发的虚拟资源转移请求量对服务器最大吞吐率的要求,有利于降低整个系统的成本,改善服务器处理能力不足时的用户体验效果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
此外,在接收到用户的虚拟资源查询请求时,同时考虑第一账户中的相应虚拟资源总数量和客户端的账户中的虚拟资源总数量,并将二者计算后的虚拟资源总数量作为查询结果返回给用户,使得用户所查询到的虚拟物品总量不会因为采用了本发明实施例的信息处理方法缓冲了服务器的处理压力而显示异常。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.
此外,在接收到用户的虚拟资源使用请求时,优先将该虚拟资源使用请求的客户端的账户所对应的索引信息进行处理,从而满足用户对相关虚拟资源的正常使用,并使得用户对采用本发明实施例的信息处理方法来缓冲其虚拟资源转移请求无感知,不会影响到用户的体验。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.
需要说明的是,上述实施例提供的装置,在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。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.
请参阅图14,其所示为本发明实施例提供的服务器的结构示意图,该服务器1400可以包括中央处理器(CPU)1401、包括随机存取存储器(RAM)1402和只读存储器(ROM)1403的系统存储器1404,以及连接系统存储器1404和中央处理器1401的系统总线1405。所述服务器1400还包括帮助计算机内的各个器件之间传输信息的基本输入/输出系统(I/O系统)1406,和用于存储操作系统1413、应用程序1414和其他程序模块1115的大容量存储设备1407。Please refer to FIG. 14 , which is a schematic diagram of the structure of a server provided in 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 for facilitating information transmission 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.
所述基本输入/输出系统1406包括有用于显示信息的显示器1408和用于用户输入信息的诸如鼠标、键盘之类的输入设备1409。其中所述显示器1408和输入设备1409都通过连接到系统总线1405的输入输出控制器1416连接到中央处理器1401。所述基本输入/输出系统1406还可以包括输入输出控制器1416以用于接收和处理来自键盘、鼠标、或电子触控笔等多个其他设备的输入。类似地,输入输出控制器1416还提供输出到显示屏、打印机或其他类型的输出设备。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.
所述大容量存储设备1407通过连接到系统总线1405的大容量存储控制器(未示出)连接到中央处理器1401。所述大容量存储设备1407及其相关联的计算机可读介质为服务器1400提供非易失性存储。也就是说,所述大容量存储设备1407可以包括诸如硬盘或者CD-ROM驱动器之类的计算机可读介质(未示出)。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.
不失一般性,所述计算机可读介质可以包括计算机存储介质和通信介质。计算机存储介质包括以用于存储诸如计算机可读指令、数据结构、程序模块或其他数据等信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动介质。计算机存储介质包括RAM、ROM、EPROM、EEPROM、闪存或其他固态存储其技术,CD-ROM、DVD或其他光学存储、磁带盒、磁带、磁盘存储或其他磁性存储设备。当然,本领域技术人员可知所述计算机存储介质不局限于上述几种。上述的系统存储器1404和大容量存储设备1407可以统称为存储器。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.
根据本发明的各种实施例,所述服务器1400还可以通过诸如因特网等网络连接到网络上的远程计算机运行。也即服务器1400可以通过连接在所述系统总线1405上的网络接口单元1411连接到网络1412,或者说,也可以使用网络接口单元1411来连接到其他类型的网络或远程计算机系统(未示出)。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).
所述存储器还包括一个或者一个以上的程序,所述一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行。上述一个或者一个以上程序包含用于执行上述信息处理方法的指令。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.
在本发明实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器,上述指令可由终端的处理器执行以完成上述方法实施例中终端侧的各个步骤,或者上述指令由服务器的处理器执行以完成上述方法实施例中服务器侧的各个步骤。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。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.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者装置中还存在另外的相同要素。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.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。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.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。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.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。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.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810355284.4ACN110196769B (en) | 2018-04-19 | 2018-04-19 | Information processing method, device, server and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810355284.4ACN110196769B (en) | 2018-04-19 | 2018-04-19 | Information processing method, device, server and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN110196769A CN110196769A (en) | 2019-09-03 |
| CN110196769Btrue CN110196769B (en) | 2024-10-15 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810355284.4AActiveCN110196769B (en) | 2018-04-19 | 2018-04-19 | Information processing method, device, server and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN110196769B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110795232B (en)* | 2019-09-16 | 2023-10-20 | 腾讯科技(深圳)有限公司 | Data processing method, device, computer readable storage medium and computer equipment |
| CN111061573A (en)* | 2019-11-15 | 2020-04-24 | 北京三快在线科技有限公司 | Resource transfer method, device, electronic equipment and storage medium |
| CN110891086B (en)* | 2019-11-21 | 2022-04-05 | 北京三快在线科技有限公司 | Resource transfer method, device, terminal, server and storage medium |
| CN112015745B (en)* | 2020-08-19 | 2024-05-17 | 北京达佳互联信息技术有限公司 | Data management method and device |
| CN112616091B (en)* | 2020-12-18 | 2023-02-17 | 北京达佳互联信息技术有限公司 | Virtual article sending method and device, computer equipment and storage medium |
| CN113034283A (en)* | 2021-03-29 | 2021-06-25 | 中国银联股份有限公司 | Transaction data processing method, device and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107015869A (en)* | 2017-01-16 | 2017-08-04 | 平安银行股份有限公司 | Transaction entry control method and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102523207A (en)* | 2011-12-06 | 2012-06-27 | 北京航空航天大学 | VNC (Virtual Network Computer)-based remote resource access method and proxy device |
| CN104376491A (en)* | 2014-10-29 | 2015-02-25 | 中国建设银行股份有限公司 | Virtual resource monitoring method, device and system |
| CN105160522A (en)* | 2015-07-31 | 2015-12-16 | 腾讯科技(深圳)有限公司 | Virtual resource transfer method, related device and system |
| CN107679931A (en)* | 2017-08-17 | 2018-02-09 | 平安科技(深圳)有限公司 | Method, apparatus, storage medium and the terminal of order asynchronous process |
| CN107493342B (en)* | 2017-08-24 | 2019-12-27 | 维沃移动通信有限公司 | Resource transfer method, related equipment and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107015869A (en)* | 2017-01-16 | 2017-08-04 | 平安银行股份有限公司 | Transaction entry control method and system |
| Publication number | Publication date |
|---|---|
| CN110196769A (en) | 2019-09-03 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110196769B (en) | Information processing method, device, server and storage medium | |
| CN106716335B (en) | Asynchronous processing of mapping information | |
| CN104640092B (en) | Method, client, cloud server and system for identifying spam messages | |
| CN110336797A (en) | Blockchain-based enterprise certification, certification traceability method, device and equipment | |
| CN114625767B (en) | A data query method, device, equipment and readable medium | |
| CN111723159A (en) | Data verification method and device based on block chain | |
| CN110225104A (en) | Data capture method, device and terminal device | |
| CN107464151B (en) | Order data processing method and device for high-concurrency service | |
| TW202027456A (en) | Credibility verification method, system, apparatus and device for alliance chain | |
| TWI700606B (en) | Method, device and computer equipment for identifying authenticity of evidence based on blockchain deposit | |
| CN104601672B (en) | The method and apparatus of network resource sharing based on different application client | |
| CN112989295A (en) | User identification method and device | |
| CN114969840B (en) | Data leakage prevention method and device | |
| CN114996675A (en) | Data query method and device, computer equipment and storage medium | |
| TWI712879B (en) | Disaster tolerance data processing method, device, equipment and system | |
| CN118631478A (en) | Cloud platform login method, device, electronic device and storage medium | |
| WO2024082525A1 (en) | File snapshot method and system, electronic device, and storage medium | |
| CN111651749A (en) | Method, device, computer equipment and storage medium for retrieving account based on password | |
| US12174792B2 (en) | Reliable detection of deleted assets in data stores | |
| CN115204870A (en) | Block chain application management method and device, computer equipment and storage medium | |
| CN117891882A (en) | Data management system, method, equipment and storage medium based on blockchain | |
| CN114374686B (en) | File processing method, device and equipment based on browser | |
| CN107704557B (en) | Processing method and device for operating mutually exclusive data, computer equipment and storage medium | |
| CN112260935A (en) | Message processing method and device, electronic equipment and readable storage medium | |
| CN119629187B (en) | Metadata-based writing method, device, computer equipment, and storage medium |
| 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 | ||
| TG01 | Patent term adjustment | ||
| TG01 | Patent term adjustment |