A virtual item real-time transaction processing method and system
By identifying effective matching users and dynamically adjusting the number of concurrent server ports, the real-time and reliability issues of virtual item transactions under network latency or abnormal conditions were resolved, thereby improving the processing capacity of the trading platform.
Patent Information
- Application Number
- CN202411987254.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2044-12-31
AI Technical Summary
In the event of network latency or abnormalities, virtual item transactions may fail, or both parties may possess virtual items, making it difficult to meet the requirements for real-time and reliable transaction processing.
By identifying effective matching users, analyzing the exclusion of virtual item types, and reviewing historical transaction data, the number of concurrent server ports is dynamically adjusted to adapt to transaction demands and improve the real-time performance and reliability of the trading platform.
This effectively avoids transaction delays caused by insufficient concurrent server ports, thereby improving the reliability and real-time performance of transaction processing.
Smart Images

Figure CN119367777B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of transaction management, and particularly relates to a virtual article real-time transaction processing method and system. BACKGROUND
[0002] In the field of network games, mobile games and the like, a virtual article transaction platform is generally provided to realize purchase and transaction of virtual articles. In the invention patent application CN202311760977.9 “Virtual article transaction system and method based on transaction risk monitoring”, experience action result data and interface pressing track records are compared with experience action result data samples and interface pressing track record samples associated with a game account and recorded in advance in a user terminal to obtain transaction risk information of the virtual article this time. However, the following technical problems are ignored:
[0003] When processing virtual article transactions, in the case of network delay or abnormality, transaction failure or the existence of virtual articles on both sides after transaction may occur, so that it is difficult to meet the demand for reliable transaction of virtual articles. Therefore, if the number of concurrent ports of the server cannot be determined according to the transaction demand of virtual articles, the real-time processing of transaction data cannot be improved.
[0004] In view of the above technical problems, the application provides a virtual article real-time transaction processing method and system. SUMMARY
[0005] To achieve the object of the application, the application adopts the following technical solutions:
[0006] According to one aspect of the application, a virtual article real-time transaction processing method is provided.
[0007] A virtual article real-time transaction processing method, specifically comprising:
[0008] S1 determining matching users of virtual articles in a transaction platform according to the types of the virtual articles, and determining effective matching users in the matching users according to game login data of different matching users;
[0009] S2 determining the number of virtual articles matched by different effective matching users, and determining the number of concurrent ports of a server in the transaction platform of the virtual articles in combination with the type exclusion of different virtual articles in the effective matching users;
[0010] S3 obtaining historical transaction data of the transaction platform of virtual articles in different time periods, and determining whether to enter the next step when the number of ports does not meet the requirements in the time period does not exist on the basis of the historical transaction data and the number of concurrent ports of the server in the transaction platform;
[0011] S4 determines the deviation of the transaction data of the current date in different time periods from the historical transaction data, and determines the adjustment strategy of the port quantity of the transaction platform in the remaining time period of the current date in combination with the number of the concurrent network ports of the server in the remaining time period after the current time period.
[0012] The present application has the following beneficial effects:
[0013] Based on the historical transaction data and the number of the concurrent ports of the server in the transaction platform, it is determined whether there is a date in a time period in which the port quantity does not meet the requirements, so as to avoid the technical problem that the transaction processing delay cannot meet the requirements due to the fact that the number of the concurrent ports of the server cannot meet the requirements of the transaction volume, and improve the reliability of the transaction processing of the server, and realize the differentiated port setting strategy for different time periods.
[0014] The adjustment strategy of the port quantity of the transaction platform in the remaining time period of the current date is determined by using the deviation of the transaction data of the current date in different time periods from the historical transaction data, and in combination with the number of the concurrent network ports of the server in the remaining time period after the current time period, so as to not only consider the variation of the transaction data volume of the server in the current date, but also avoid the technical problem that the data processing reliability cannot meet the requirements due to the use of the original setting strategy caused by the excessive variation, and improve the real-time performance and reliability of the transaction processing of the server.
[0015] The further technical scheme is that the matching user of the virtual item is a game user who can use the virtual item.
[0016] The further technical scheme is that the game login data of the matching user includes the game login times of the matching user, the login time corresponding to different game login times, and the login duration.
[0017] The further technical scheme is that the method for determining the effective matching user is:
[0018] The login duration of the game login times of the matching user is determined, and the game login times with a login duration greater than a preset login duration are determined.
[0019] The game login times with a login duration greater than a preset login duration are taken as effective login times, and the effective login times are used to determine the effective matching user among the matching users.
[0020] The further technical scheme is that the effective matching user among the matching users is a matching user with an effective login time greater than a preset effective number threshold.
[0021] Further technical solutions are that the method for determining the effective matching user is:
[0022] The login time length of the game login times of the matching user is determined, and the game login times with a login time length greater than a preset login time length are determined.
[0023] The game login times with a login time length greater than a preset login time length are used as effective login times, and the login time length of the effective login times is used to determine the total login time length of different effective login times.
[0024] The effective matching user in the matching user is determined according to the total login time length.
[0025] Further technical solutions are that the effective matching user in the matching user is a matching user with a total login time length greater than a preset login time length.
[0026] Further technical solutions are that the deviation of the transaction data and the historical transaction data is determined according to the number deviation amount of the transaction times in different time periods in the current date and the historical average transaction times.
[0027] Further technical solutions are that the method for determining the adjustment strategy of the port number of the transaction platform in the remaining time period of the current date is:
[0028] The number deviation amount of different time periods is determined according to the number deviation amount of the transaction times in different time periods in the current date and the historical average transaction times, and when the number of time periods with a number deviation amount not in a preset number deviation amount interval does not meet the requirement, the number of concurrent ports of the server in the transaction platform of the virtual object is determined using the set number.
[0029] When the number of time periods with a number deviation amount not in a preset number deviation amount interval meets the requirement:
[0030] The set number of the concurrent ports of the server in different remaining time periods is determined using the set number, and the adjustment strategy of the port number of the transaction platform in the remaining time period of the current date is determined using the set number.
[0031] In a second aspect, the application provides a computer system, comprising a memory and a processor connected in communication, and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to perform the virtual object real-time transaction processing method.
[0032] Other features and advantages will be set forth in the following description, and the purposes and other advantages of the application will be achieved and obtained from the structures specifically pointed out in the description and the drawings.
[0033] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0034] The above and other features and advantages of the present invention will become more apparent from a detailed description of exemplary embodiments thereof with reference to the accompanying drawings;
[0035] Figure 1 This is a flowchart of a method for real-time transaction processing of virtual items;
[0036] Figure 2 The flowchart shows the method for effectively matching users.
[0037] Figure 3 This is a flowchart illustrating the method for determining the number of concurrent ports on a server in a virtual item trading platform.
[0038] Figure 4 This is a flowchart for determining dates within a given time period where the number of ports does not meet the requirement.
[0039] Figure 5 This is a flowchart illustrating the method for determining the number of ports on a trading platform for the remaining time period of the current date. Detailed Implementation
[0040] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. Based on the embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this specification.
[0041] In the event of network latency or anomalies, transactions may fail or both parties may retain virtual items after the transaction. Therefore, it is necessary to determine the number of concurrent ports on the server based on the transaction requirements of virtual items to improve the real-time processing of transaction data.
[0042] Matched users: Game users who are able to use the virtual items.
[0043] Valid matching users: Users whose cumulative login time exceeds the preset time.
[0044] Virtual item type exclusion in valid matching users: Based on the type of virtual item, determine the virtual items that cannot be used by the same valid matching user at the same time. These virtual items that cannot be used by the same valid matching user at the same time are considered as virtual items in the type exclusion in valid matching users.
[0045] Dates where the number of ports does not meet the requirements: This is determined based on the ratio of the number of historical transactions to the number of concurrent ports for different dates within the specified time period. If the ratio is not within a preset range, then the date is determined to be a date where the number of ports does not meet the requirements.
[0046] The strategy for adjusting the number of ports on the trading platform for the remaining time period of the current date is as follows: When a period of deviation exists due to the discrepancy between the trading data and historical trading data, the number of ports on the trading platform for the remaining time period of the current date is determined by setting the number of ports. When there is no period of deviation, the strategy for adjusting the number of ports on the trading platform for the remaining time period of the current date is determined by setting the number of concurrent network ports of the server for the remaining time period after the current time period.
[0047] Example 1: To solve the above problems, according to one aspect of the present invention, as shown in Example 1... Figure 1 As shown, a method for real-time transaction processing of virtual items is provided, specifically including:
[0048] S1 determines the matching users for the virtual items based on the type of virtual items in the trading platform, and determines the valid matching users among the matching users based on the game login data of different matching users;
[0049] Furthermore, the users matched with the virtual items are game users who are able to use the virtual items.
[0050] Specifically, the game login data of the matched user includes the number of times the matched user has logged into the game, the login time corresponding to different number of game logins, and the login duration.
[0051] Specifically, such as Figure 2 As shown, the method for determining the effective matching user is as follows:
[0052] Based on the login duration of the matched user's game login count, determine the number of game logins with a login duration greater than the preset login duration;
[0053] The number of game logins with a login duration greater than the preset login duration is considered as the valid login count, and the valid login count is used to determine the valid matched users among the matched users.
[0054] Furthermore, the valid matched users in the matched users are those whose valid login counts are greater than a preset valid count threshold.
[0055] Optionally, the method for determining the effective matching user is as follows:
[0056] Based on the login duration of the matched user's game login count, determine the number of game logins with a login duration greater than the preset login duration;
[0057] The number of game logins with a login duration greater than the preset login duration is taken as the valid login count, and the total login duration of different valid login counts is determined by using the login duration of the valid login counts;
[0058] The valid matched users among the matched users are determined based on the total login time.
[0059] Furthermore, the valid matched users among the matched users are those whose total login time is greater than the preset login time.
[0060] In another embodiment, the method for determining the effective matching user is as follows:
[0061] S11 uses the login duration of the matched user's game login count to determine the number of game logins with a login duration greater than a preset login duration, and takes the number of game logins with a login duration greater than the preset login duration as the valid login count;
[0062] Optionally, step S11 above includes the following:
[0063] S111 If, based on the login duration of the matched user's game login count, it is determined that there is no game login count with a login duration longer than the preset login duration, then it is determined that the matched user is not a valid matched user. If there is a game login count with a login duration longer than the preset login duration, proceed to step S112.
[0064] S112 takes the number of game logins with a login duration greater than the preset login duration as the valid login count. When the valid login count is greater than the preset valid count threshold, the matched user is determined to be a valid matched user. When the valid login count is not greater than the preset valid count threshold, proceed to step S113.
[0065] S113 When the number of valid login attempts is within the preset login attempt range, proceed to step S114. When the number of valid login attempts is not within the preset login attempt range, determine that the matched user is not a valid matched user.
[0066] S114 Obtain the login duration of different valid login attempts, and determine the total login duration of different valid login attempts based on the login duration of different valid login attempts. When the total login duration is greater than the preset login duration, it is determined that the matched user is a valid matched user. When the total login duration is not greater than the preset login duration, proceed to step S12.
[0067] S12 determines the number of valid logins for different dates based on the login time of the valid login count, and determines the login frequency coefficient for different dates based on the login duration of the valid login count for different dates, and determines the most frequent login dates based on the login frequency coefficient for different dates;
[0068] Optionally, step S12 above includes the following:
[0069] The number of valid logins for different dates is determined based on the login time of each valid login. Then, the login frequency coefficient for each date is determined by combining the login duration of the valid logins for each date. Based on the login frequency coefficient for each date, the most frequent login dates are determined.
[0070] S121 determines the number of valid logins for different dates based on the login time of the valid logins. When the number of dates with valid logins meets the requirement, proceed to step S122. When the number of dates without valid logins does not meet the requirement, it is determined that the matched user is not a valid matched user.
[0071] S122 determines the number of valid logins for different dates based on the login time of the valid logins, and determines the login frequency coefficient for different dates based on the login duration of the valid logins for different dates. If it is determined that there are no frequent login dates among the dates based on the login frequency coefficient for different dates, then proceed to step S123. If there are frequent login dates, then proceed to step S13.
[0072] S123 When the average login frequency coefficient of different dates is less than the preset frequency coefficient threshold, it is determined that the matched user is not a valid matched user; when the average login frequency coefficient of different dates is not less than the preset frequency coefficient threshold, it is determined that the matched user is a valid matched user.
[0073] S13 determines the valid matched users among the matched users based on the proportion of frequent login dates.
[0074] S2 determines the number of virtual items matched by different valid matching users, and, in combination with the type exclusion of different virtual items in the valid matching users, determines the number of concurrent ports of the server in the virtual item trading platform;
[0075] Furthermore, the type exclusion of the virtual item among the validly matched users is determined based on whether the virtual item can be used simultaneously among the validly matched users.
[0076] Specifically, such as Figure 3 As shown, the method for determining the number of concurrent ports of the server in the virtual item trading platform is as follows:
[0077] The number of valid matching users for the virtual items is determined by using the matching information between virtual items and valid matching users in the trading platform.
[0078] Based on the type rejection of different virtual items among the valid matching users, the valid matching users with rejection are determined, and the number of matches of the valid matching users and the proportion of the number of matches of the valid matching users with rejection are used to determine the popular items among the virtual items.
[0079] The number of popular items determines the number of concurrent ports of the server in the virtual item trading platform.
[0080] Furthermore, the number of popular items in the virtual items is determined based on the remaining number of valid matching users excluding those with exclusions. When the remaining number is greater than a preset threshold, the virtual item is determined to be a popular item.
[0081] It should be noted that the number of concurrent ports of the server in the virtual item trading platform is determined according to the preset number of ports corresponding to the number of popular items.
[0082] Optionally, the method for determining the number of concurrent ports of the server in the virtual item trading platform is as follows:
[0083] The number of valid matching users for the virtual items is determined by using the matching information between virtual items and valid matching users in the trading platform.
[0084] Based on the number of other virtual items that are excluded among different valid matching users, filter matching users are determined among the valid matching users, and the number of filter matching users is used to determine the popular items among the virtual items.
[0085] The number of popular items determines the number of concurrent ports of the server in the virtual item trading platform.
[0086] Furthermore, the filtered matching users are valid matching users whose number of other virtual items that are mutually exclusive is less than the preset number of virtual items.
[0087] In another embodiment, the popular item is a virtual item whose number of matched users exceeds a preset number of matched users.
[0088] Optionally, the method for determining the number of concurrent ports of the server in the virtual item trading platform is as follows:
[0089] S21 uses the matching status of virtual items and valid matching users in the trading platform to determine the number of valid matching users for the virtual items;
[0090] S22 determines the matching coefficient of different effective matching users based on the number of other virtual items that are excluded among different effective matching users, and uses the matching coefficient of different effective matching users to determine the item popularity coefficient of different virtual items.
[0091] S23 determines the platform popularity coefficient of the virtual item trading platform by summing the item popularity coefficients of different virtual items, and uses the platform popularity coefficient to determine the number of concurrent ports of the server in the virtual item trading platform.
[0092] Specifically, the popularity coefficient of the virtual item is determined by the sum of the products of the matching coefficients of different effective matching users and the preset weight coefficients of different effective matching users.
[0093] It is understood that the platform popularity coefficient of the virtual item trading platform is determined based on the ratio of the sum of the item popularity coefficients of different virtual items to a preset popularity coefficient.
[0094] Furthermore, the number of concurrent ports of the server in the virtual item trading platform is determined according to the preset number of ports corresponding to the platform's popularity coefficient.
[0095] Optionally, step S21 above includes the following:
[0096] S211 Obtain the quantity of virtual items in the trading platform. When the quantity of virtual items in the trading platform is greater than the preset quantity of items, determine the number of concurrent ports of the server in the trading platform using the port setting quantity. When the quantity of virtual items in the trading platform is not greater than the preset quantity of items, proceed to step S212.
[0097] S212 uses the matching status of virtual items and valid matching users in the trading platform to determine the number of valid matching users for the virtual items. When there are virtual items with a number of valid matching users greater than the preset number of matching users, proceed to step S214. When there are no virtual items with a number of valid matching users greater than the preset number of matching users, proceed to step S213.
[0098] S213 determines the total number of matches based on the number of virtual items in the trading platform and the number of valid matches of the virtual items. When the total number of matches is less than a preset total number threshold, the number of concurrent ports of the server in the trading platform of the virtual items is determined by using the port setting. When the total number of matches is not less than the preset total number threshold, proceed to step S22.
[0099] S214 When the number of valid matching users is greater than the number of virtual items with the preset number of matching users, and the number of virtual items is greater than the preset threshold for the number of virtual items, the number of concurrent ports of the server in the trading platform of the virtual items is determined by using the port setting quantity. When the number of valid matching users is greater than the number of virtual items with the preset number of matching users, but not greater than the preset threshold for the number of virtual items, proceed to step S22.
[0100] Optionally, step S22 above includes the following:
[0101] S221 uses the matching coefficients of different valid matching users in the virtual items to determine the item popularity coefficients of different virtual items. When the item popularity coefficients of different virtual items are all less than the preset popularity coefficient threshold, then proceed to step S222. When there are virtual items with item popularity coefficients greater than the preset popularity coefficient threshold, then proceed to step S223.
[0102] S222 Virtual items with a popularity coefficient greater than a preset popularity coefficient threshold are designated as popular items. When the number of popular items is greater than a preset popular item quantity threshold, the number of concurrent ports of the server in the trading platform of the virtual items is determined by using the port setting quantity. When the number of popular items is not greater than the preset popular item quantity threshold, proceed to step S23.
[0103] S223 determines the basic popularity coefficient of the virtual item trading platform based on the quantity of virtual items. When the basic popularity coefficient of the virtual item trading platform is less than the preset basic coefficient threshold, the number of concurrent ports of the server in the virtual item trading platform is determined using the basic set quantity. When the basic popularity coefficient of the virtual item trading platform is not less than the preset basic coefficient threshold, proceed to step S23.
[0104] S3 acquires historical transaction data of virtual items trading platforms for different time periods, and based on the historical transaction data and the number of concurrent ports of the servers in the trading platform, determines that there are no dates in the time period where the number of ports does not meet the requirements, and then proceeds to the next step.
[0105] Furthermore, the historical transaction data of the trading platform includes the number of historical transactions at different times and the transaction processing data volume for different historical transaction counts.
[0106] Specifically, such as Figure 4 As shown, determining that there are no days in the specified time period where the number of ports does not meet the requirement specifically includes:
[0107] Retrieve the historical number of transactions for the specified time period within the specified date at different times;
[0108] The required number of concurrent server ports at different times is determined by using the number of historical transactions at different times, and the port number deviation time is determined by combining the number of concurrent ports of the servers in the trading platform.
[0109] The number of ports on a given date is determined based on the number of times the number of ports deviates from the number of times during that time period.
[0110] Optionally, if the number of port number deviation times in the specified time period on the specified date is greater than the preset number of deviation times, then the number of ports on the specified date is determined to meet the requirements.
[0111] It should be noted that when there are days in the time period where the number of ports does not meet the requirements, the number of concurrent ports of the server in the virtual item trading platform is determined by using the port setting.
[0112] S4 determines the deviation between the transaction data of the current date and the historical transaction data at different time periods, and, in conjunction with the number of concurrent network ports of the server in the remaining time period after the current time period, determines the adjustment strategy for the number of ports of the trading platform in the remaining time period of the current date.
[0113] Furthermore, the deviation between the transaction data and historical transaction data is determined based on the deviation between the number of transactions in different time periods of the current date and the historical average number of transactions.
[0114] Specifically, such as Figure 5 As shown, the method for determining the adjustment strategy of the number of ports on the trading platform for the remaining time period of the current date is as follows:
[0115] The number of transactions in different time periods of the current date is determined by the number of transactions in different time periods compared with the historical average number of transactions. When the number of time periods whose number of transactions is not within the preset number of transactions does not meet the requirements, the number of concurrent ports of the server in the virtual item trading platform is determined by the number of ports set.
[0116] When the number of time periods where the frequency deviation is outside the preset frequency deviation range meets the requirements:
[0117] Based on the number of concurrent network ports of the server in the remaining time period after the current date, the number of ports to be set for different remaining time periods is determined. Then, the adjustment strategy for the number of ports of the trading platform in the remaining time period of the current date is determined by using the set number.
[0118] In a second aspect, according to Embodiment 2, the present invention provides a computer system comprising: a memory and a processor connected in communication, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the above-described method for real-time virtual item transaction processing when running the computer program.
[0119] In another embodiment, determining that there are no days in the time period where the number of ports does not meet the requirement specifically includes:
[0120] Obtain the historical transaction count at different times within the specified time period on the date. If the total historical transaction count for the specified time period on the date exceeds a preset total transaction count threshold, then determine that the number of ports on the date does not meet the requirements.
[0121] When the total number of historical transactions during the specified time period on the specified date is not greater than a preset total number threshold:
[0122] When the total number of historical transactions during the specified time period on the specified date is within a preset transaction count range:
[0123] Then it is determined that the number of ports on the stated date meets the requirements;
[0124] When the total number of historical transactions for the specified time period on the specified date is not within the preset transaction count range:
[0125] The required number of concurrent server ports at different times is determined by using the historical transaction count at different times. When the number of concurrent ports of the servers in the trading platform is determined to be the time when there is no port number deviation, it is determined that the port number of the date meets the requirements.
[0126] When there is a discrepancy in the number of ports:
[0127] Obtain the number of port number deviation moments on the stated date. If the number of port number deviation moments on the stated date is greater than a preset number of deviation moments, then it is determined that the port number on the stated date does not meet the requirements.
[0128] When the number of port number deviation times in the date is not greater than the preset number of deviation times:
[0129] The time period is divided into multiple unit-length time intervals. When there are unit-length time intervals where the number of port deviations does not meet the requirements:
[0130] If the number of time intervals within which the number of port number deviations does not meet the requirements is greater than the number of preset time intervals, then it is determined that the number of ports on the date does not meet the requirements.
[0131] When there is no unit time interval where the number of port quantity deviations does not meet the requirements, or when the number of unit time intervals where the number of port quantity deviations does not meet the requirements is not greater than the preset number of time intervals:
[0132] By using the deviation between the number of ports and the required number at different times of port number deviation, the interval deviation coefficient for different unit time intervals is determined, and the maximum value of the interval deviation coefficient for different unit time intervals is used to determine whether the number of ports on the date meets the requirements.
[0133] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, devices, and non-volatile computer storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0134] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0135] The above description is merely one or more embodiments of this specification and is not intended to limit this specification. Various modifications and variations can be made to the one or more embodiments of this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of one or more embodiments of this specification should be included within the scope of the claims of this specification.
Claims
1. A method for real-time transaction processing of virtual items, characterized in that, Specifically, it includes: The matching users for the virtual items are determined based on the type of virtual items in the trading platform, and the valid matching users are determined based on the game login data of different matching users. Determine the number of virtual items matched by different valid matching users, and, in conjunction with the type exclusion of different virtual items among the valid matching users, determine the number of concurrent ports of the server in the virtual item trading platform; Obtain historical transaction data of virtual items trading platforms for different time periods, and based on the historical transaction data and the number of concurrent ports of the servers in the trading platform, determine if there are no dates in the time period where the number of ports does not meet the requirements, and then proceed to the next step. Determine the deviation between the transaction data of the current date and the historical transaction data at different time periods, and combine this with the number of concurrent network ports of the server in the remaining time periods after the current date to determine the adjustment strategy for the number of ports of the trading platform in the remaining time periods of the current date. Determining that there are no days in the specified time period where the number of ports does not meet the requirements includes: Retrieve the historical number of transactions for the specified time period within the specified date at different times; The required number of concurrent server ports at different times is determined by using the number of historical transactions at different times, and the port number deviation time is determined by combining the number of concurrent ports of the servers in the trading platform. If the number of port number deviation times in the specified time period within the specified date is not greater than the preset number of deviation times, then the number of ports on the specified date is determined to meet the requirements. If there are days in the time period where the number of ports does not meet the requirements, then the number of concurrent ports of the server in the virtual item trading platform is determined using the port setting. The number of transactions in different time periods of the current date is determined by the number of transactions in different time periods compared with the historical average number of transactions. When the number of time periods whose number of transactions is not within the preset number of transactions does not meet the requirements, the number of concurrent ports of the server in the virtual item trading platform is determined by the number of ports set. When the number of time periods where the frequency deviation is outside the preset frequency deviation range meets the requirements: Based on the number of concurrent network ports of the server in the remaining time period after the current date, the number of ports to be set for different remaining time periods is determined, and the adjustment strategy for the number of ports of the trading platform in the remaining time period of the current date is determined by using the number of ports to be set. The virtual item is matched with game users who are able to use the virtual item.
2. The method for real-time virtual item transaction processing as described in claim 1, characterized in that, The game login data of the matched user includes the number of times the matched user has logged into the game, the login time corresponding to different number of game logins, and the login duration.
3. The method for real-time transaction processing of virtual items as described in claim 1, characterized in that, The method for determining the effective matching user is as follows: Based on the login duration of the matched user's game login count, determine the number of game logins with a login duration greater than the preset login duration; The number of game logins with a login duration greater than the preset login duration is considered as the valid login count, and the valid login count is used to determine the valid matched users among the matched users.
4. The method for real-time virtual item transaction processing as described in claim 3, characterized in that, The valid matched users are those whose number of valid logins exceeds a preset threshold.
5. The method for real-time virtual item transaction processing as described in claim 1, characterized in that, The exclusion of virtual items among validly matched users is determined based on whether the virtual items can be used simultaneously among the validly matched users.
6. The method for real-time transaction processing of virtual items as described in claim 1, characterized in that, The method for determining the number of concurrent ports of the server in the virtual item trading platform is as follows: The number of valid matching users for the virtual items is determined by using the matching information between virtual items and valid matching users in the trading platform. Based on the type rejection of different virtual items among the valid matching users, the valid matching users with rejection are determined, and the number of matches of the valid matching users and the proportion of the number of matches of the valid matching users with rejection are used to determine the popular items among the virtual items. The number of popular items determines the number of concurrent ports of the server in the virtual item trading platform.
7. The method for real-time virtual item transaction processing as described in claim 6, characterized in that, The popularity of virtual items is determined by the remaining number of valid matches after removing valid matches with exclusions. When the remaining number is greater than a preset threshold, the virtual item is determined to be a popular item.
8. The method for real-time transaction processing of virtual items as described in claim 6, characterized in that, The number of concurrent ports of the server in the virtual item trading platform is determined based on the preset number of ports corresponding to the number of popular items.
9. A computer system, comprising: A memory and a processor connected in communication, and a computer program stored in the memory and capable of running on the processor, characterized in that, when the processor runs the computer program, it executes a virtual item real-time transaction processing method according to any one of claims 1-8.
Citation Information
Patent Citations
Virtual article transaction system and method based on transaction risk monitoring
CN117745293A
Method, device and system for automatically adjusting space size of memory database
CN109101589A
Method and device for managing database connection pool and readable storage medium
CN114443674A