CN114595057A - Virtual prize inventory management method and system for lottery platform - Google Patents

Virtual prize inventory management method and system for lottery platform Download PDF

Info

Publication number
CN114595057A
CN114595057A CN202210168714.8A CN202210168714A CN114595057A CN 114595057 A CN114595057 A CN 114595057A CN 202210168714 A CN202210168714 A CN 202210168714A CN 114595057 A CN114595057 A CN 114595057A
Authority
CN
China
Prior art keywords
inventory
virtual prize
lottery
virtual
prize inventory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210168714.8A
Other languages
Chinese (zh)
Inventor
袁帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bigo Technology Pte Ltd
Original Assignee
Bigo Technology Pte Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bigo Technology Pte Ltd filed Critical Bigo Technology Pte Ltd
Priority to CN202210168714.8A priority Critical patent/CN114595057A/en
Publication of CN114595057A publication Critical patent/CN114595057A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses a virtual prize inventory management method and system for a lottery platform. According to the technical scheme provided by the embodiment of the application, the first distribution proportion of the virtual prize inventory of each large-area server is determined according to the set proportion information, and each virtual prize inventory is initialized according to the first distribution proportion and the current virtual prize total inventory; periodically traversing each virtual prize inventory, and determining the inventory usage of each large-area server in the previous period; and configuring a second distribution proportion of each virtual prize inventory according to the inventory usage, and updating and configuring each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory. By adopting the technical means, the virtual prize inventory of each large-area server is distributed in proportion and periodically updated, so that the lottery service processing delay of each large-area server can be reduced, the lottery service processing efficiency is improved, the consistency of the virtual prize inventory is ensured, and the lottery interaction experience of a user is optimized.

Description

Virtual prize inventory management method and system for lottery platform
Technical Field
The embodiment of the application relates to the technical field of Internet, in particular to a virtual prize inventory management method and system for a lottery platform.
Background
At present, scenes related to lottery interaction are often needed in network live broadcast and network game activity operation. Taking a lottery drawing scene of a network live broadcasting room as an example, because users in a single live broadcasting room may come from different areas, for the network lottery drawing service of users in each area, a large area server arranged in a corresponding area is required to receive the network lottery drawing request of the users, the network lottery drawing request of the users is returned to a designated area server through the large area server to be processed in a unified way, and after the virtual prize inventory of lottery drawing prizes is deducted, lottery drawing results are returned. Therefore, the virtual prize inventory of the lottery prizes can be conveniently and uniformly managed, and the condition that the virtual prize inventory makes mistakes is avoided.
However, since each lottery drawing request is returned to the designated area server for uniform processing, the processing delay of the lottery drawing service is too large, the service processing efficiency is low, and the lottery drawing interaction experience of the user is affected.
Disclosure of Invention
The embodiment of the application provides a virtual prize inventory management method and system for a lottery drawing platform, which can improve the processing efficiency of lottery drawing services and solve the technical problem of too large delay of the existing lottery drawing service processing under the condition of ensuring the consistency of virtual prize inventory.
In a first aspect, an embodiment of the present application provides a method for managing virtual prize inventory of a lottery platform, including:
determining a first distribution proportion of virtual prize stocks of each large-area server according to the set proportion information, and initializing each virtual prize stock according to the first distribution proportion and the current virtual prize total stock;
periodically traversing each virtual prize inventory, and determining the inventory usage of each large-area server in the previous period;
and configuring a second distribution proportion of each virtual prize inventory according to the inventory usage, and updating and configuring each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory.
In a second aspect, the present application provides a virtual prize inventory management system for a lottery platform, including a central server and a plurality of large area servers;
the central server is configured to determine a first distribution proportion of the virtual prize inventory of each large-area server according to the set proportion information, and initialize each virtual prize inventory according to the first distribution proportion and the current virtual prize total inventory; periodically traversing each virtual prize inventory, and determining the inventory usage of each large-area server in the previous period; configuring a second distribution proportion of each virtual prize inventory according to the inventory usage, and updating and configuring each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory;
the large-area server is configured to receive a lottery drawing request of the user side, respond to the lottery drawing request, execute lottery drawing services based on the virtual prize inventory of the large-area server, and return corresponding lottery drawing results to the user side.
In a third aspect, an embodiment of the present application provides a lottery platform virtual prize inventory management apparatus, including:
the initialization module is configured to determine a first distribution proportion of the virtual prize inventory of each large-area server according to the set proportion information, and initialize each virtual prize inventory according to the first distribution proportion and the current virtual prize total inventory;
the periodic traversal module is configured to periodically traverse each virtual prize inventory and determine the inventory usage of each large-area server in the previous period;
and the periodic updating module is configured to configure a second distribution proportion of each virtual prize inventory according to the inventory usage, and update and configure each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory.
In a fourth aspect, an embodiment of the present application provides a lottery platform virtual prize inventory management device, including:
a memory and one or more processors;
the memory configured to store one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a lottery platform virtual prize inventory management method as described in the first aspect.
In a fifth aspect, embodiments of the present application provide a storage medium containing computer executable instructions which, when executed by a computer processor, are operable to perform a lottery platform virtual prize inventory management method as described in the first aspect.
The method comprises the steps of determining a first distribution proportion of virtual prize inventory of each large-area server according to set proportion information, and initializing each virtual prize inventory according to the first distribution proportion and the current virtual prize total inventory; periodically traversing each virtual prize inventory, and determining the inventory usage of each large-area server in the previous period; and configuring a second distribution proportion of each virtual prize inventory according to the inventory usage, and updating and configuring each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory. By adopting the technical means, the virtual prize inventory of each large-area server is distributed in proportion and periodically updated, so that the lottery service processing delay of each large-area server can be reduced, the lottery service processing efficiency is improved, the consistency of the virtual prize inventory is ensured, and the lottery interaction experience of a user is optimized.
In addition, according to the distribution proportion of the virtual prize inventory configured according to the inventory usage, the distribution accuracy of the virtual prize inventory of each large-area server can be improved, and the virtual prize inventory management effect is further optimized.
Drawings
Fig. 1 is a flowchart of a method for managing virtual prize inventory of a lottery platform according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a virtual prize inventory management system of a lottery platform according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of virtual prize inventory initialization in an embodiment of the present application;
FIG. 4 is a flow chart of virtual prize inventory update in an embodiment of the present application;
fig. 5 is a lottery service processing flow chart in the embodiment of the present application;
fig. 6 is a schematic structural diagram of a virtual prize inventory management device of a lottery platform according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a virtual prize inventory management device of a lottery platform according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The virtual prize inventory management method for the lottery platform aims to reduce lottery service processing delay of each large-area server and improve lottery service processing efficiency by distributing the virtual prize inventory of each large-area server in proportion and periodically updating. For a traditional lottery platform, taking a live broadcast scene as an example, as the lottery interaction between a main broadcast and audiences is more and more frequent, the live broadcast of videos shows a multizone and globalization trend. The users in a single live broadcast room gradually present the characteristic of multi-region distribution, and the lottery configuration of operators is different for the users in different regions. In order to implement the processing of the multi-zone lottery service, each zone server may use a backtracking technique. And returning the lottery drawing services generated in different areas to the designated area server for unified processing, and returning the processing results to each area server after the processing is finished. The whole lottery service processing flow is relatively complex, the processing delay of the lottery request is relatively large for the user side, and the lottery experience of the user is relatively poor. Therefore, the virtual prize inventory management method for the lottery platform is provided to solve the technical problem that the existing lottery service processing delay is too large.
Example (b):
fig. 1 is a flowchart of a method for managing virtual prize inventory of a lottery platform according to an embodiment of the present disclosure, where the method for managing virtual prize inventory of a lottery platform according to the present disclosure may be executed by a device for managing virtual prize inventory of a lottery platform, the device for managing virtual prize inventory of a lottery platform may be implemented in a software and/or hardware manner, and the device for managing virtual prize inventory of a lottery platform may be formed by two or more physical entities or may be formed by one physical entity. Generally, the lottery platform virtual prize inventory management device may be a processing device such as a server host.
The following description will be given taking the virtual prize inventory management device of the lottery platform as an example of a main body for executing the virtual prize inventory management method of the lottery platform. Referring to fig. 1, the virtual prize inventory management method for the lottery platform specifically includes:
s110, determining a first distribution ratio of the virtual prize inventory of each large-area server according to the set ratio information, and initializing each virtual prize inventory according to the first distribution ratio and the current virtual prize total inventory.
When the virtual prize inventory management is carried out, the virtual prize inventory of each district server is configured independently, and the virtual prize inventory of each district server is configured in proportion, so that each district server can independently execute the lottery service based on the virtual prize inventory configured by the district server, and the lottery service does not need to be processed by returning to a designated server. Meanwhile, in order to guarantee the consistency of virtual prize inventory and avoid the conditions of asynchronous virtual prize inventory quantity, vacancy and the like, the virtual prize inventory of each large-area server is periodically updated, so that each large-area server is adaptively configured with the virtual prize inventory of the large-area server in each period, and the lottery service is relatively stably executed in one period.
Specifically, the embodiment of the application also discloses a virtual prize inventory management system of the lottery platform, which comprises a central server and a plurality of large-area servers; the central server is configured to determine a first distribution proportion of the virtual prize inventory of each large-area server according to the set proportion information, and initialize each virtual prize inventory according to the first distribution proportion and the current virtual prize total inventory; periodically traversing each virtual prize inventory, and determining the inventory usage of each large-area server in the previous period; configuring a second distribution proportion of each virtual prize inventory according to the inventory usage, and updating and configuring each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory; the large-area server is configured to receive a lottery drawing request of the user side, respond to the lottery drawing request, execute lottery drawing services based on the virtual prize inventory of the large-area server, and return corresponding lottery drawing results to the user side.
Referring to fig. 2, a schematic structural diagram of a virtual prize inventory management system of a lottery platform according to an embodiment of the present application is provided. The lottery platform virtual prize inventory management method in the embodiment of the application may be executed by the central server of the lottery platform virtual prize inventory management system, and the central server may be an independent server, or may be a server selected from each large-area server as the central server. For a multi-zone lottery service processing scenario, as shown in fig. 2, for zones such as an asian large zone, an american large zone, and an european large zone, a large zone server 11 and a storage node 12 (such as a cache or a database) are correspondingly arranged, and each large zone server 11 independently processes the lottery service of the zone according to a virtual prize inventory configured by a central server. When a user side corresponding to a large area initiates a lottery drawing request, the lottery drawing request is sent to a gateway of the large area through an access service, and the lottery drawing request is forwarded to a large area server through the large area gateway for processing. The large-area server can generate a corresponding lottery drawing service result according to the virtual prize inventory configured by the central server and return the lottery drawing service result to the user side, so that the execution of the lottery drawing service is completed.
In the virtual prize inventory management system of the lottery platform, any access service can use an HTTP protocol to call a lottery platform interface, each large-area server and storage nodes form the lottery platform, and lottery requests uploaded by the access service of the large area are received and processed.
As shown in fig. 2, the large district servers in asian large district are configured as central servers, and each large district server is mainly used for processing API services based on the virtual prize inventory configured by the central server. API services are deployed in large regional servers in large regions of the world, each having separate cache and database components (i.e., storage nodes). And the lottery drawing request of the user side calls the API service processing deployed by the large-area server through the access service, so that the lottery drawing service processing is realized.
In addition, for the central server, a synchronization service 13 is also deployed, and the node is deployed only in the core large area and is mainly responsible for periodically and synchronously updating the virtual prize inventory of each large area. The API service and the synchronous service are both constructed by using a Java Springboot framework (Spiriebott framework), the API service simultaneously provides a Jar package accessed to the outside, if the access party is the Java service, the Java service can be called through a Feign component after the Jar package is introduced, and if the access party is other services, the Java service can be called through an HTTP interface provided by the API service directly. The synchronization service is scheduled by a distributed task scheduling method, and the execution period of automatically updating the virtual prize inventory is set according to actual requirements, for example, the virtual prize inventory is updated once per minute.
More specifically, based on the virtual prize inventory management system of the lottery platform, before processing lottery services, the central server may first initialize the virtual prize inventory of each large-area server, and then update the virtual prize inventory according to a set update period. As shown in fig. 3, when triggering the initialization of the virtual prize inventory, the central server first determines whether the current system supports multi-zone distribution inventory, and if not, directly distributes the virtual prize inventory to the central server, and the lottery requests of all the large-zone servers are returned to the central server for processing. If the current system supports multi-zone distributed inventory, the central server configures the virtual inventory distribution proportion of each large-zone server according to the set proportion information, defines the virtual inventory distribution proportion as a first distribution proportion, and initializes each virtual prize inventory according to the first distribution proportion and the current virtual prize total inventory.
Optionally, the scale information may be manually configured by an operator, or may be default scale information preset by the system. Generally, if the frequency of processing the lottery service in a certain large area is high, a relatively large allocation ratio may be configured, and if the frequency of processing the lottery service is small, a relatively small allocation ratio may be configured. The amount of each virtual prize stock can be determined according to the first distribution proportion of the virtual prize stock of each large-area server and the current total virtual prize stock, and the calculated virtual prize stock is written into the cache of each large-area server, so that the initialization of the virtual prize stock can be completed.
It should be noted that, according to the type of the actual lottery prize, the above-mentioned virtual prize inventory initialization is performed for each prize type, so as to ensure that the large-area server can independently perform the lottery service based on the virtual prize inventory of each type of prize.
And S120, periodically traversing the inventory of each virtual prize, and determining the inventory usage of each large-area server in the previous period.
Further, after the initialization of the virtual prize inventory is completed, the central server performs periodic updates of the virtual prize inventory based on the synchronization service. As shown in fig. 4, when periodically updating the virtual prize inventory, the central server first triggers the traversal operation of each of the local servers according to a set period. The setting period is set according to the actual virtual prize inventory updating requirement, for example, the virtual prize inventory is updated once in one minute. After the initialization of the virtual prize inventory is completed, the central server starts a timer to count time, triggers synchronous service after one minute and executes the periodic updating of the virtual prize inventory.
Specifically, the central server determines the inventory usage of each virtual prize inventory by traversing each of the large zone servers. It can be understood that, each lottery drawing service of the large-area server records the virtual prize inventory used by the lottery drawing service, so as to facilitate the instant deduction of the virtual prize inventory and the statistics of the usage amount of the virtual prize inventory. And calculating the distribution proportion of each virtual prize inventory in the next period based on the virtual inventory usage, namely the adaptability. It can be understood that, if the frequency of executing the lottery service in one period by a certain large-area server is high, in order to ensure that the large-area server reserves enough virtual prize inventory in the next period, a high distribution ratio should be adaptively configured, so as to avoid the situation that the virtual prize inventory of the large-area server is exhausted due to too much lottery service, which affects the processing efficiency of the lottery service.
S130, configuring a second distribution proportion of each virtual prize inventory according to the inventory usage, and updating and configuring each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory.
Further, the virtual prize inventory of each large-area server in the next period can be adaptively configured according to the inventory usage of each large-area server, and the virtual prize inventory is updated to the cache of each large-area server.
And calculating ratio information of the inventory usage of each large-area server, and configuring a second distribution proportion of each virtual prize inventory according to the ratio information, wherein the sum of the ratio information is 1. For example, if the ratio information of asian, european and american continents is 0.5, 0.3 and 0.2, respectively, the second allocation ratio value of asian continent server is 0.5, the second allocation ratio value of european continent server is 0.3 and the second allocation ratio value of american continent server is 0.2.
It should be noted that, during the process of executing the lottery service, the total inventory of the virtual prizes also changes in real time. Therefore, the current virtual prize total inventory needs to be determined according to the inventory usage and the virtual prize total inventory at the initial moment of the last period. It can be understood that the total inventory of the virtual prizes at the initial moment of the previous period minus the sum of the inventory usage amounts can obtain the total inventory of the current virtual prizes. In addition, in the virtual prize inventory management process, if the operator newly increases the inventory of a certain type of prize, the total inventory of the virtual prizes is also updated adaptively.
And then, according to the determined total virtual prize inventory and the second distribution proportion, the virtual prize inventory distribution of each large-area server can be completed in proportion. And writing the virtual prize inventory into the cache of each large-area server so that each large-area server executes the lottery service based on the updated virtual prize inventory. Therefore, the processing efficiency of the lottery service is improved while the consistency of the virtual prize inventory is ensured. It should be noted that, since the distribution proportion of each virtual prize inventory is distributed according to the inventory usage amount of the previous cycle, the distribution quantity of the virtual prize inventory of each large-area server can be adaptively adjusted, thereby avoiding the situation that the virtual prize inventory of the large-area server is used up or excessive due to uneven distribution, further ensuring that each large-area server stably executes the lottery drawing service, and optimizing the lottery drawing experience of the user.
Alternatively, for each large area server, when processing the lottery service, as shown in fig. 5, based on the lottery request of the user, the large area server may first detect whether the virtual inventory of the current lottery prize is empty, and if not, continue to perform the lottery service operation based on the virtual inventory of the lottery prize, and return the lottery result. And if the virtual prize inventory of the server is empty, requesting the corresponding virtual prize inventory from other large-area servers to execute the lottery service. When requesting virtual prize inventory from other large servers, it is first queried whether the prize is at a depleted state. If the current prize is set to be exhausted, the server in other large area has no virtual prize stock, and the lottery prize of the lottery service is reset to the appointed prize directly in response to the judgment result that the virtual prize stock is exhausted without applying the virtual prize stock to other large area. Therefore, the lottery service can be ensured to be smoothly carried out, and the failure of lottery service processing caused by the fact that the original virtual prize is exhausted is avoided. If the current prize is in a exhausted state, the virtual prize inventory of the prize can be applied to other large areas to ensure the normal execution of the current lottery service. It should be noted that, since the virtual prize inventory is applied to other large-area servers, the virtual prize inventory usage of the two large-area servers needs to be updated in real time, so as to ensure the consistency of the virtual prize inventory.
In addition, if the virtual prize stocks corresponding to other large district servers are determined to be empty in the process of applying for the virtual prize stocks from other large districts, the lottery prizes corresponding to the virtual prize stocks are set to be exhausted. Therefore, when the subsequent large server executes the lottery service of the prizes, the designated prizes are directly reset according to the exhausted state to execute the lottery service, the lengthy inquiry flow of the virtual prize inventory state is avoided, and the processing efficiency of the lottery service is improved.
Optionally, according to actual needs, when a prize is in a depleted state, the large server may further report the depleted information to the central server, so that the central server may notify an operator in time to supplement the depleted prize or modify a lottery prize, thereby ensuring smooth proceeding of subsequent lottery services.
In one embodiment, the lottery request includes corresponding prize pool ID information, the prize pool ID information corresponding to a plurality of virtual prize inventories, a sum of lottery probabilities of the respective virtual prize inventories corresponding to the prize pool ID information being 1; correspondingly, the large-area server is further configured to: and determining each virtual prize inventory corresponding to the prize pool ID information, and executing the lottery service based on each virtual prize inventory corresponding to the prize pool ID information. The virtual prize inventory comprises a period key value for identifying an updating configuration period, and the lottery drawing request comprises a corresponding period key value; the large area server is further configured to: and determining a period key value of the lottery drawing request, and selecting the virtual prize inventory containing the corresponding period key value to execute the lottery drawing service.
Specifically, a plurality of pieces of prize pool ID information may be configured corresponding to one lottery event, and one prize pool ID may correspond to a plurality of virtual prize inventory IDs. The number of draws of a user may be associated with the pool ID, and the prize probabilities for all virtual prize inventory in a pool should add up to 100%. The background can set virtual prize stock for a single prize, and the virtual prize stock can be periodically updated or non-periodically updated. If the virtual prize inventory is selected to be periodically updated, the lottery drawing request can contain corresponding period key values, the virtual prize inventory updated in each updating period contains corresponding period key values, and the virtual prize inventory of each period key value is relatively independent. Therefore, the corresponding virtual prize inventory can be selected according to the lottery drawing request to execute the lottery drawing service, and the stability of the lottery drawing service processing is guaranteed. If the non-periodic virtual prize inventory is selected, each lottery drawing request is deducted from the same virtual prize inventory, the periodic updating of the virtual prize inventory is not needed, and the virtual prize inventory can be supplemented in time when the virtual prize inventory is used up.
It can be understood that, according to the corresponding ID information and the periodic key value, it can be ensured that the corresponding virtual prize inventory can be accurately and quickly found to increase or decrease the inventory each time the lottery service is executed, so as to further improve the processing efficiency of the lottery service and reduce the processing delay of the lottery service.
Determining a first distribution ratio of the virtual prize inventory of each large-area server according to the set ratio information, and initializing each virtual prize inventory according to the first distribution ratio and the current virtual prize total inventory; periodically traversing each virtual prize inventory, and determining the inventory usage of each large-area server in the previous period; and configuring a second distribution proportion of each virtual prize inventory according to the inventory amount, and updating and configuring each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory. By adopting the technical means, the virtual prize inventory of each large-area server is distributed in proportion and periodically updated, so that the lottery service processing delay of each large-area server can be reduced, the lottery service processing efficiency is improved, the consistency of the virtual prize inventory is ensured, and the lottery interaction experience of a user is optimized.
In addition, according to the distribution proportion of the virtual prize inventory configured according to the inventory usage, the distribution accuracy of the virtual prize inventory of each large-area server can be improved, and the virtual prize inventory management effect is further optimized.
On the basis of the foregoing embodiment, fig. 6 is a schematic structural diagram of a virtual prize inventory management system of a lottery platform provided in the present application. Referring to fig. 6, the virtual prize inventory management system of the lottery platform provided in this embodiment specifically includes: an initialization module 21, a periodic traversal module 22 and a periodic update module 23.
The initialization module 21 is configured to determine a first distribution ratio of the virtual prize inventory of each large zone server according to the set ratio information, and initialize each virtual prize inventory according to the first distribution ratio and the current total virtual prize inventory;
the periodic traversing module 22 is configured to periodically traverse the inventory of each virtual prize and determine the inventory usage of each large-area server in the previous period;
the periodic updating module 23 is configured to configure the second distribution proportion of each virtual prize inventory according to the inventory usage, and update and configure each virtual prize inventory according to the second distribution proportion and the current total virtual prize inventory.
Specifically, the periodic updating module 23 is configured to calculate ratio information of the inventory usage of each large-area server, and configure a second distribution ratio of each virtual prize inventory according to the ratio information, where the sum of the ratio information is 1. And determining the current virtual prize total inventory according to the inventory amount and the virtual prize total inventory at the initial moment of the last period.
Determining a first distribution ratio of the virtual prize inventory of each large-area server according to the set ratio information, and initializing each virtual prize inventory according to the first distribution ratio and the current virtual prize total inventory; periodically traversing each virtual prize inventory, and determining the inventory usage of each large-area server in the previous period; and configuring a second distribution proportion of each virtual prize inventory according to the inventory usage, and updating and configuring each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory. By adopting the technical means, the virtual prize inventory of each large-area server is distributed in proportion and periodically updated, so that the lottery service processing delay of each large-area server can be reduced, the lottery service processing efficiency is improved, the consistency of the virtual prize inventory is ensured, and the lottery interaction experience of a user is optimized.
In addition, according to the distribution proportion of the virtual prize inventory configured according to the inventory usage, the distribution accuracy of the virtual prize inventory of each large-area server can be improved, and the virtual prize inventory management effect is further optimized.
The virtual prize inventory management system of the lottery platform provided by the embodiment of the application can be used for executing the virtual prize inventory management method of the lottery platform provided by the embodiment, and has corresponding functions and beneficial effects.
In addition to the above practical example, an embodiment of the present invention further provides a lottery platform virtual prize inventory management apparatus, and with reference to fig. 7, the lottery platform virtual prize inventory management apparatus includes: a processor 31, a memory 32, a communication module 33, an input device 34, and an output device 35. The memory 32, which is a computer-readable storage medium, may be configured to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the lottery platform virtual prize inventory management method described in any embodiment of the present application (e.g., an initialization module, a periodic traversal module, and a periodic update module in the lottery platform virtual prize inventory management system). The communication module 33 is configured to perform data transmission. The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory, that is, the above-described virtual prize inventory management method for the lottery platform is realized. The input device 34 may be configured to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 35 may include a display device such as a display screen. The virtual prize inventory management device for the lottery platform provided by the above embodiment can be configured to execute the virtual prize inventory management method for the lottery platform provided by the above embodiment, and has corresponding functions and beneficial effects.
On the basis of the above embodiments, the present application further provides a storage medium containing computer executable instructions, which when executed by a computer processor are configured to perform a lottery platform virtual prize inventory management method, and the storage medium may be any of various types of memory devices or storage devices. Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the lottery platform virtual prize inventory management method described above, and may also perform related operations in the lottery platform virtual prize inventory management method provided in any embodiment of the present application.

Claims (10)

1. A virtual prize inventory management method for a lottery platform is characterized by comprising the following steps:
determining a first distribution proportion of virtual prize inventory of each large-area server according to the set proportion information, and initializing each virtual prize inventory according to the first distribution proportion and the current virtual prize total inventory;
periodically traversing each virtual prize inventory, and determining inventory usage of each large-area server in the previous period;
and configuring a second distribution proportion of each virtual prize inventory according to the inventory usage, and updating and configuring each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory.
2. The method of claim 1, wherein before configuring each of the virtual prize inventories according to the second distribution ratio and the current total virtual prize inventory update, the method further comprises:
and determining the current virtual prize total inventory according to the inventory amount and the virtual prize total inventory at the initial moment of the last period.
3. The method as claimed in claim 1, wherein the step of configuring the second distribution ratio of each virtual prize inventory according to the inventory usage amount comprises:
and calculating ratio information of the inventory usage of each large-area server, configuring a second distribution ratio of each virtual prize inventory according to the ratio information, and enabling the sum of the ratio information to be 1.
4. A virtual prize inventory management system of a lottery platform is characterized by comprising a central server and a plurality of large-area servers;
the central server is configured to determine a first distribution proportion of virtual prize inventory of each large-area server according to set proportion information, and initialize each virtual prize inventory according to the first distribution proportion and the current virtual prize total inventory; periodically traversing each virtual prize inventory, and determining the inventory amount of each large-area server in the previous period; configuring a second distribution proportion of each virtual prize inventory according to the inventory usage, and updating and configuring each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory;
the large-area server is configured to receive a lottery drawing request of a user side, respond to the lottery drawing request, execute a lottery drawing service based on the virtual prize inventory of the large-area server, and return a corresponding lottery drawing result to the user side.
5. The lottery platform virtual prize inventory management system of claim 4, wherein the large area server is further configured to:
and when detecting that the virtual prize inventory of the user is empty, requesting the corresponding virtual prize inventory from other large-area servers to execute the lottery service.
6. The lottery platform virtual prize inventory management system according to claim 4, wherein the lottery request includes corresponding prize pool ID information corresponding to a plurality of the virtual prize inventories, the sum of lottery probabilities for each of the virtual prize inventories corresponding to the prize pool ID information being 1;
correspondingly, the large-area server is further configured to:
and determining each virtual prize inventory corresponding to the prize pool ID information, and executing a lottery service based on each virtual prize inventory corresponding to the prize pool ID information.
7. The lottery platform virtual prize inventory management system according to claim 4, wherein the virtual prize inventory includes a period key identifying an update configuration period, the lottery request including the corresponding period key;
the large area server is further configured to:
and determining the period key value of the lottery drawing request, and selecting the virtual prize inventory containing the corresponding period key value to execute lottery drawing services.
8. A virtual prize inventory management device for a lottery platform, comprising:
the initialization module is configured to determine a first distribution proportion of virtual prize inventory of each large-area server according to the set proportion information, and initialize each virtual prize inventory according to the first distribution proportion and the current virtual prize total inventory;
the periodic traversing module is configured to periodically traverse each virtual prize inventory and determine the inventory usage of each large server in the previous period;
and the periodic updating module is configured to configure a second distribution proportion of each virtual prize inventory according to the inventory usage, and update and configure each virtual prize inventory according to the second distribution proportion and the current virtual prize total inventory.
9. A virtual prize inventory management device for a lottery platform, comprising:
a memory and one or more processors;
the memory configured to store one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a lottery platform virtual prize inventory management method as claimed in any of claims 1 to 3.
10. A storage medium containing computer executable instructions which when executed by a computer processor are operable to perform a lottery platform virtual prize inventory management method as claimed in any of claims 1 to 3.
CN202210168714.8A 2022-02-23 2022-02-23 Virtual prize inventory management method and system for lottery platform Pending CN114595057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210168714.8A CN114595057A (en) 2022-02-23 2022-02-23 Virtual prize inventory management method and system for lottery platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210168714.8A CN114595057A (en) 2022-02-23 2022-02-23 Virtual prize inventory management method and system for lottery platform

Publications (1)

Publication Number Publication Date
CN114595057A true CN114595057A (en) 2022-06-07

Family

ID=81804261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210168714.8A Pending CN114595057A (en) 2022-02-23 2022-02-23 Virtual prize inventory management method and system for lottery platform

Country Status (1)

Country Link
CN (1) CN114595057A (en)

Similar Documents

Publication Publication Date Title
US7519691B2 (en) Selective update of console parameters from other consoles
US9270521B2 (en) Provisioning and managing a cluster deployed on a cloud
CN106815066B (en) Timed task scheduling method, device and system
CN109857518A (en) A kind of distribution method and equipment of Internet resources
CN103744719B (en) Lock management method and system, the collocation method and device of lock administration system
CN109379448B (en) File distributed deployment method and device, electronic equipment and storage medium
CN103024065A (en) System configuration management method for cloud storage system
CN105208047A (en) Online and off line methods of distributed system server, and server
CN102868770A (en) Method, equipment and system for distributing interface
CN110719311A (en) Distributed coordination service method, system and computer readable storage medium
CN100558142C (en) A kind of method, application and device that changes application state in a plurality of current service
EP3855689A1 (en) Method, apparatus, and system for providing service, storage medium, and electronic device
CN101308467A (en) Task processing method and device
CN107665141A (en) A kind of configuration method for database and its equipment
CN104410511A (en) Server management method and system
WO2021068763A1 (en) Cloud resource creation method, apparatus, client and server
CN114595057A (en) Virtual prize inventory management method and system for lottery platform
CN110929130B (en) Public security level audit data query method based on distributed scheduling
WO2016202202A1 (en) Device connection method and apparatus, and smart television system
CN106507195A (en) Method based on the intelligent television application handover management of linux system
CN116643845A (en) Capacity shrinking method, container arranging system, device and storage medium
US11562421B2 (en) Management of revisions on revisions of orders
CN115268951A (en) Installation method, device, equipment and storage medium of operating system
CN113326397A (en) Service data processing method and device
CN108696550A (en) Rapid build and the system and method for replicating cloud

Legal Events

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