Block-based service processing method and terminal
The block-based service processing method and terminal adaptively compensate for network and device variations to ensure fair and efficient service processing, addressing device, network, and hand speed disparities.
Patent Information
- Application Number
- CN202411083435.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-08-08
AI Technical Summary
Existing service processing systems face significant gaps due to device differences, uneven network speeds, and hand speed variations among users, leading to unequal opportunities in time-sensitive activities like ticket grabbing and coupon collection.
A block-based service processing method and terminal that generates service and business block nodes, uses temporary blocks for data storage, and employs cache technology to adaptively compensate for transmission speed discrepancies based on network, user hand speed, and device performance.
Reduces the impact of external transmission factors, providing a fairer service processing experience by ensuring consistent data transmission speeds and compensating for individual user limitations.
Smart Images

Figure CN119254784A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of block data processing, and in particular to a block-based service processing method and terminal. Background Art
[0002] With the rapid development and popularization of the Internet, online activities such as online shopping, ticket booking, and coupon collection have become an indispensable part of people's daily lives. These activities are often accompanied by fierce competition, especially in situations where resources are limited and demand is high, such as the rush to buy train tickets during the Spring Festival travel rush, the reservation of tickets for popular performances, and discounted products that are snapped up for a limited time. Such activities are highly sensitive to time, and whether users can successfully snap up their favorite goods or services often depends on the combined effects of a series of technical conditions and human factors.
[0003] The existing railway 12306 ticket grabbing system: As the official railway ticket booking platform, its ticket grabbing function is designed to provide users with convenient ticket purchasing services. However, facing a huge user base and limited ticket sources, although the system is constantly being optimized, it is still difficult to completely avoid the situation of "tickets are hard to get". In addition, the existence of illegal ticket grabbing methods has further aggravated the difficulty of ticket purchase.
[0004] Ctrip's ticket grabbing service: As a third-party ticketing service platform, Ctrip provides more flexible ticket grabbing strategies and value-added services, such as acceleration packages and standby ticket purchases. These measures have improved the success rate of users' ticket purchases to a certain extent, but they also face challenges, and service fees have also become one of the factors that users consider.
[0005] Taobao shopping coupons at the hour: Taobao and other e-commerce platforms attract users to consume and enhance user stickiness by issuing limited-time shopping coupons. However, due to the concentrated purchase time and large number of users, the collection of shopping coupons is often a "speed war", which places high demands on the user's Internet speed and hand speed.
[0006] Douyin Lucky Bag: As an interactive function of the short video platform, Douyin Lucky Bag increases user participation and platform activity by randomly distributing rewards. Although its mechanism is different from ticket grabbing and coupon collection, it also tests the user's reaction speed and network environment.
[0007] It can be seen that the current business processing method has the following shortcomings:
[0008] 1. Device differences: Different users have significant differences in device configuration, such as screen sensitivity, CPU performance, etc. These differences directly affect the user's operating efficiency and the success rate of snapping up. In addition, the simultaneous operation of multiple devices further increases the difficulty of snapping up for ordinary users.
[0009] 2. Uneven network speed: Due to factors such as geographical location and network infrastructure, network speeds vary greatly between different regions and users. This difference is particularly evident in time-sensitive activities such as rush sales, causing some users to miss opportunities due to slow network speeds.
[0010] 3. Hand speed differences: Users of different ages and experiences have different reaction speeds and operating proficiency. Young users usually have faster reaction speeds and more proficient operating skills, while older users may be at a disadvantage.
[0011] In summary, although the existing ticket grabbing and coupon collection systems have met user needs to a certain extent, there are still many shortcomings and challenges. With the continuous advancement of technology and the increasing diversification of user needs, it is particularly important to develop a more fair, efficient and convenient business processing system. Summary of the invention
[0012] The technical problem to be solved by the present invention is to provide a block-based service processing method and terminal, which can provide a fairer service processing method to reduce the service processing gap between users.
[0013] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0014] A block-based business processing method comprises the following steps:
[0015] Generate a corresponding service server according to the service type in the service block, generate a corresponding service block node for the service block, generate a temporary block for the service block node, and store the service data in the service block node;
[0016] Determine whether the transmission information between the user and the business block node meets the preset transmission conditions. If not, generate a cache node for the user, and store the user data of the user in a temporary block of the business block node through the cache node, so that the business block node directly processes the user data through the temporary block and sends the processing result to the business server.
[0017] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0018] A block-based business processing terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step of the above-mentioned block-based business processing method is implemented.
[0019] The beneficial effects of the present invention are: generating a corresponding business server according to the business type in the business block, generating a corresponding business block node for the business block, generating a temporary block for the business block node, and storing the business data in the business block node, which can ensure that the data transmission speed between the business block node and the business server is determined; and for the transmission speed from the user to the business block node, if the transmission information from the user to the business block node does not meet the preset transmission conditions, the user data can be cached by using the cache technology, and the corresponding temporary block can assist in processing, thereby compensating the transmission speed from the user to the business block node. In this way, the transmission speed from the user to the business block node can be reduced by compensation, and the transmission speed from the business block node to the server can also be determined. Compared with the prior art, the impact of external transmission factors on business processing is reduced, and a more fair business processing method is provided to reduce the business processing gap between users. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A flowchart of a block-based service processing method according to an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of a block-based service processing terminal according to an embodiment of the present invention;
[0022] Figure 3 A business processing logic flow chart of an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of the structure of a service server according to an embodiment of the present invention;
[0024] Figure 5 This is a relationship diagram of users, service block nodes, and service servers according to an embodiment of the present invention.
[0025] Description of labels:
[0026] 1. A block-based business processing terminal; 2. Memory; 3. Processor. DETAILED DESCRIPTION
[0027] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0028] Please refer to Figure 1 The embodiment of the present invention provides a block-based service processing method, comprising the steps of:
[0029] Generate a corresponding service server according to the service type in the service block, generate a corresponding service block node for the service block, generate a temporary block for the service block node, and store the service data in the service block node;
[0030] Determine whether the transmission information between the user and the business block node meets the preset transmission conditions. If not, generate a cache node for the user, and store the user data of the user in a temporary block of the business block node through the cache node, so that the business block node directly processes the user data through the temporary block and sends the processing result to the business server.
[0031] From the above description, it can be seen that the beneficial effects of the present invention are: generating a corresponding business server according to the business type in the business block, generating a corresponding business block node for the business block, generating a temporary block for the business block node, and storing the business data in the business block node, which can ensure that the data transmission speed between the business block node and the business server is determined; and for the transmission speed from the user to the business block node, if the transmission information from the user to the business block node does not meet the preset transmission conditions, the user data can be cached by using the cache technology, and the corresponding temporary block can assist in processing, thereby compensating the transmission speed from the user to the business block node. In this way, the transmission speed from the user to the business block node can be reduced by compensation, and the transmission speed from the business block node to the server can also be determined. Compared with the prior art, the impact of external transmission factors on business processing is reduced, and a more fair business processing method is provided to reduce the business processing gap between users.
[0032] Further, determining whether the transmission information between the user and the service block node meets the preset transmission condition includes:
[0033] If the network transmission time between the user and the service block node is greater than the network transmission time between the user and the service server, the transmission information between the user and the service block node does not meet the preset transmission condition;
[0034] If the network transmission time between the user and the service block node is greater than the average network transmission time between the user and the service block node, the transmission information between the user and the service block node does not meet the preset transmission condition.
[0035] From the above description, it can be known that, with respect to the network transmission time, caching the user data with a longer network transmission time can adaptively compensate the user's transmission speed to reduce the service processing gap between users.
[0036] Further, determining whether the transmission information between the user and the service block node meets the preset transmission condition also includes:
[0037] The user's operation information is obtained. If the time concentration of the user's operation information is less than the concentration threshold, the transmission information between the user and the service block node does not meet the preset transmission condition.
[0038] It can be seen from the above description that caching the user data with a high operation concentration can adaptively compensate for the user's operation speed to reduce the service processing gap between users.
[0039] Further, determining whether the transmission information between the user and the service block node meets the preset transmission condition also includes:
[0040] When the user equipment performs data processing according to the simulated internal operation information, if the data processing time is greater than the time threshold, the transmission information between the user and the service block node does not meet the preset transmission condition.
[0041] From the above description, it can be known that by simulating operations inside user equipment, data of user equipment with longer processing time is cached, so that the processing speed of the user equipment can be adaptively compensated to reduce the service processing gap between users.
[0042] Furthermore, if the transmission information between the user and the business block node meets the preset transmission conditions, the user data of the user is sent to the business block node, and the user data is marked, and the business goal of the user is generated, so that the business block node processes the user data and the business goal, and sends the processing result to the business server.
[0043] From the above description, it can be seen that when the transmission information between the user and the business block node meets the preset transmission conditions, the user data is sent to the business block node, and the user data is marked to generate the user's business goals. In this way, when the transmission from the user to the business block node meets the conditions, it can further ensure that the data transmission speed between the business block node and the business server is optimal.
[0044] Please refer to Figure 2 Another embodiment of the present invention provides a block-based business processing terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements each step of the above-mentioned block-based business processing method when executing the computer program.
[0045] The block-based service processing method and terminal of the present invention are particularly suitable for a rush purchase system, and can provide a fairer service processing method to reduce the service processing gap between users. The following is an explanation through specific implementation methods:
[0046] Embodiment 1
[0047] Please refer to Figure 1 , a block-based business processing method, comprising the steps of:
[0048] S1. Generate a corresponding service server according to the service type in the service block, generate a corresponding service block node for the service block, generate a temporary block for the service block node, and store the service data in the service block node.
[0049] For details, please refer to Figure 3 In the business block, the business is divided into hourly business and bidding business. The hourly business includes e-commerce hourly coupon collection and other services, and the bidding business includes rush purchase and other services.
[0050] Please refer to Figure 4 and Figure 5 , a corresponding business server is generated according to the business in the business block, and a corresponding business block node is generated for the business block, so that the transmission time between the business server and the business block node is less than the transmission time threshold, and the business data is loaded into the business block node.
[0051] S2. Determine whether the transmission information between the user and the service block node meets the preset transmission conditions. If not, generate a cache node for the user, and store the user data of the user in a temporary block of the service block node through the cache node, so that the service block node directly processes the user data through the temporary block and sends the processing result to the service server.
[0052] S21, determine whether the transmission information between the user and the service block node meets the preset transmission conditions, if not, generate the user's cache node, and store the user data of the user in the temporary block of the service block node through the cache node. Specifically, the judgment is made from three dimensions: network speed, user hand speed and user device performance:
[0053] 1. Internet speed:
[0054] If the network transmission time between the user and the service block node is greater than the network transmission time between the user and the service server, the transmission information between the user and the service block node does not meet the preset transmission condition;
[0055] Specifically, the ping value between the user and the business block node is obtained. When the ping value between the user and the business block node is much greater than the ping value from the block to the business server, the user data cache is obtained and the user cache is stored in a temporary block.
[0056] If the network transmission time between the user and the service block node is greater than the average network transmission time between the user and the service block node, the transmission information between the user and the service block node does not meet the preset transmission condition.
[0057] Specifically, get the total ping value between the current active user and the block, p 总 =p 1 +p 2 +p n , and then calculate the average value sp = p 总 / n, then subtract the ping value between the user to be transmitted and the block from the average value, T = sp-p i When T<0, the deviation is too large, and the user data cache is stored in a temporary block or transferred to T (sp-p i )>0.
[0058] For example, there are five members whose ping values are 30ms, 60ms, 42ms, 100ms, and 50ms, respectively. The average value is (30+60+42+100+50) / 5=56.4. It can be seen that the ping values of the second and fourth members exceed the average value, so they are transferred to the next block or cached in a temporary block.
[0059] 2. User hand speed:
[0060] The user's operation information is obtained. If the time concentration of the user's operation information is less than the concentration threshold, the transmission information between the user and the service block node does not meet the preset transmission condition.
[0061] Specifically, obtain the user's operation information, such as when pressing a key / touch click, establish the corresponding relationship between the click operation P and the cycle time T, that is, how many times the click operation occurs within the cycle T. Establish a P / T dot matrix, and use T as the horizontal coordinate and P as the vertical coordinate to establish a rectangular coordinate system. Establish the data concentration data in P / T in the form of horizontal and vertical coordinates, and obtain the concentration data as the concentration threshold. When the time concentration of the user operation information is lower than the concentration threshold, the user data is cached in a temporary block.
[0062] 3. User equipment performance:
[0063] When the user equipment performs data processing according to the simulated internal operation information, if the data processing time is greater than the time threshold, the transmission information between the user and the service block node does not meet the preset transmission condition.
[0064] Specifically, an internal device touch (click event) is generated to simulate a user click event, and the internal execution efficiency is determined by calculating the processing time required to process the intermediate data of the click event in the user device. When the processing time is greater than the preset time threshold, it is determined that the user device needs a temporary block to store user data.
[0065] In some embodiments, the above three dimensions can be combined with each other for judgment.
[0066] S22. If the transmission information between the user and the service block node meets the preset transmission conditions, the user data of the user is sent to the service block node, and the user data is marked, and the service goal of the user is generated, so that the service block node processes the user data and the service goal, and sends the processing result to the service server.
[0067] Embodiment 2
[0068] Please refer to Figure 2 A block-based business processing terminal 1 includes a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3. When the processor 3 executes the computer program, each step of a block-based business processing method of embodiment 1 is implemented.
[0069] In summary, the present invention provides a block-based business processing method and terminal, which generates a corresponding business server according to the business type in the business block, generates a corresponding business block node for the business block, and generates a temporary block for the business block node, and stores the business data in the business block node, which can ensure that the data transmission speed between the business block node and the business server is determined; it is judged whether the transmission information between the user and the business block node meets the preset transmission conditions, specifically from the three dimensions of network speed, user hand speed and user device performance. If the transmission information from the user to the business block node does not meet the preset transmission conditions, the user data can be cached by using caching technology, and the corresponding temporary block is used to assist in processing, thereby compensating the transmission speed from the user to the business block node. In this way, the transmission speed from the user to the business block node can be reduced by compensation, and the transmission speed from the business block node to the server can also be determined. Compared with the prior art, the impact of external transmission factors on business processing is reduced, and a fairer business processing method is provided to reduce the business processing gap between users.
[0070] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A block-based business processing method, characterized in that: Includes steps: Generate a corresponding service server according to the service type in the service block, generate a corresponding service block node for the service block, generate a temporary block for the service block node, and store the service data in the service block node; Determine whether the transmission information between the user and the business block node meets the preset transmission conditions. If not, generate a cache node for the user, and store the user data of the user in a temporary block of the business block node through the cache node, so that the business block node directly processes the user data through the temporary block and sends the processing result to the business server.
2. A block-based business processing method according to claim 1, characterized in that: Determining whether the transmission information between the user and the service block node meets the preset transmission condition includes: If the network transmission time between the user and the service block node is greater than the network transmission time between the user and the service server, the transmission information between the user and the service block node does not meet the preset transmission condition; If the network transmission time between the user and the service block node is greater than the average network transmission time between the user and the service block node, the transmission information between the user and the service block node does not meet the preset transmission condition.
3. A block-based business processing method according to claim 1, characterized in that: Determining whether the transmission information between the user and the service block node meets the preset transmission condition also includes: The user's operation information is obtained. If the time concentration of the user's operation information is less than the concentration threshold, the transmission information between the user and the service block node does not meet the preset transmission condition.
4. A block-based business processing method according to claim 1, characterized in that: Determining whether the transmission information between the user and the service block node meets the preset transmission condition also includes: When the user equipment performs data processing according to the simulated internal operation information, if the data processing time is greater than the time threshold, the transmission information between the user and the service block node does not meet the preset transmission condition.
5. A block-based business processing method according to claim 1, characterized in that: If the transmission information between the user and the business block node meets the preset transmission conditions, the user data of the user is sent to the business block node, and the user data is marked, and the business goal of the user is generated, so that the business block node processes the user data and the business goal, and sends the processing result to the business server.
6. A block-based service processing terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following steps are implemented: Generate a corresponding service server according to the service type in the service block, generate a corresponding service block node for the service block, generate a temporary block for the service block node, and store the service data in the service block node; Determine whether the transmission information between the user and the business block node meets the preset transmission conditions. If not, generate a cache node for the user, and store the user data of the user in a temporary block of the business block node through the cache node, so that the business block node directly processes the user data through the temporary block and sends the processing result to the business server.
7. A block-based service processing terminal according to claim 6, characterized in that: Determining whether the transmission information between the user and the service block node meets the preset transmission condition includes: If the network transmission time between the user and the service block node is greater than the network transmission time between the user and the service server, the transmission information between the user and the service block node does not meet the preset transmission condition; If the network transmission time between the user and the service block node is greater than the average network transmission time between the user and the service block node, the transmission information between the user and the service block node does not meet the preset transmission condition.
8. A block-based service processing terminal according to claim 6, characterized in that: Determining whether the transmission information between the user and the service block node meets the preset transmission condition also includes: The user's operation information is obtained. If the time concentration of the user's operation information is less than the concentration threshold, the transmission information between the user and the service block node does not meet the preset transmission condition.
9. A block-based service processing terminal according to claim 6, characterized in that: Determining whether the transmission information between the user and the service block node meets the preset transmission condition also includes: When the user equipment performs data processing according to the simulated internal operation information, if the data processing time is greater than the time threshold, the transmission information between the user and the service block node does not meet the preset transmission condition.
10. A block-based service processing terminal according to claim 6, characterized in that: If the transmission information between the user and the business block node meets the preset transmission conditions, the user data of the user is sent to the business block node, and the user data is marked, and the business goal of the user is generated, so that the business block node processes the user data and the business goal, and sends the processing result to the business server.
Citation Information
Patent Citations
Device and method for controlling order to generate, and seckilling system
CN105160572A
Service processing system, second kill order processing method and equipment
CN107220878A
Service data processing method and device, electronic equipment and storage medium
CN110365752A
Method, system and device for processing high-concurrency seckilling commodity by message queue
CN112102044A
Method and device for data processing based on blockchain
US20210158454A1
