[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN117541172A - Hot account concurrent processing method, device and equipment based on sub-account splitting - Google Patents

Hot account concurrent processing method, device and equipment based on sub-account splitting Download PDF

Info

Publication number
CN117541172A
CN117541172A CN202311434601.9A CN202311434601A CN117541172A CN 117541172 A CN117541172 A CN 117541172A CN 202311434601 A CN202311434601 A CN 202311434601A CN 117541172 A CN117541172 A CN 117541172A
Authority
CN
China
Prior art keywords
account
sub
hot spot
hotspot
splitting
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
CN202311434601.9A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202311434601.9A priority Critical patent/CN117541172A/en
Publication of CN117541172A publication Critical patent/CN117541172A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The utility model provides a hot spot account concurrency processing method based on sub-account splitting, which can be used in the financial field or the hot spot data processing field. The method comprises the following steps: determining the account type of the hotspot master account according to the limit variation of the hotspot master account; splitting the hot spot main account into a plurality of sub-accounts based on the configuration file of the hot spot main account type; and respectively merging the line of each sub-account to the hot spot main account in response to the transaction request, and updating the line of the hot spot main account after the completion. The disclosure also provides a hot-spot account concurrency processing device based on sub-account splitting, electronic equipment and a storage medium.

Description

Hot account concurrent processing method, device and equipment based on sub-account splitting
Technical Field
The disclosure can be used in the financial field or the hot spot data processing field, and more particularly relates to a hot spot account concurrency processing method, device and equipment based on sub-account splitting.
Background
Banking business is developed at a high speed along with the mobile internet, wherein the business such as substitution, deduction, enterprise bank batch transfer and remittance is generally long in period, the whole business process is strongly dependent on the business of a database, account funds are frequently updated in the service peak period, the situation can cause the blocking delay of the database due to very high TPS of database updating operation, and the overall performance of the system is reduced. What we call a hot-spot account with more than 10 update demands per second or accounts with processing delay higher than 1 second during serialization, how to improve system stability on the premise of ensuring concurrent processing efficiency of the hot-spot account is a urgent problem to be solved.
At present, the technical scheme for solving the problem is mainly to split a hot spot account into a plurality of sub-accounts, and change one record which is updated in a concentrated way into a plurality of records on the premise of ensuring consistency, thereby reducing the update of unit accounts and improving the stability of the system. But there may be transaction failures and poor account flexibility.
Disclosure of Invention
In view of the above problems, the present disclosure provides a method, an apparatus, and a device for concurrent processing of hot accounts based on sub-account splitting. The method solves the problem that a large number of transactions in service peak period affect the system efficiency by simultaneously designing main account line reservation and fund rebalancing based on splitting and merging sub-accounts of a hot spot main account. The balance of the account is effectively ensured, and the transaction of the sub-account is ensured to be normal; the number of sub accounts is flexibly and dynamically adjusted, and the situation of deduction failure in the transaction process is avoided.
According to a first aspect of the present disclosure, there is provided a method for concurrent processing of hot-spot accounts based on sub-account splitting, the method comprising: determining the account type of the hotspot master account according to the limit variation of the hotspot master account; splitting the hot spot main account into a plurality of sub-accounts based on the configuration file of the hot spot main account type; and respectively merging the line of each sub-account to the hot spot main account in response to the transaction request, and updating the line of the hot spot main account after the completion.
According to an embodiment of the present disclosure, splitting the hotspot primary account into a plurality of sub-accounts based on the profile of the hotspot primary account type includes: judging whether the current hot spot main account is split according to the information of the hot spot main account type, and recording the amount of the split sub-account under the split condition; summarizing the to-be-split amount in the hotspot main account and the split sub-account amount; and according to the fund weight balance limit proportion in the configuration file, carrying out average splitting on the total limit after the total limit is collected.
According to an embodiment of the present disclosure, splitting the hotspot primary account into a plurality of sub-accounts further comprises: the timing task is performed when either of two conditions are satisfied, wherein the two conditions include: the amount of any sub-account is 2 times more than the amount of the other sub-account, and the amount of the main account with the hot spot is less than 30% of the sum of the sub-account amounts; wherein the timing tasks include: and setting parameter configuration to complete fund balance so as to keep the line of each sub-account relatively balanced in the transaction, wherein the line of the main account is sufficient.
According to an embodiment of the present disclosure, in response to a transaction request, merging the amount of each sub-account to a hotspot master account, respectively, includes: verifying whether each sub-account has an in-transit order, and if so, transferring each sub-account order to a hotspot main account; after the order transfer is finished, all the hotspot main accounts are deactivated; and circularly merging the quota of each sub-account into the hot spot main account, and updating the quota of the hot spot main account after the completion.
According to an embodiment of the present disclosure, the method further comprises: in the account transaction process, after the splitting of the hot spot main account is completed, carrying out hash modulo on the fragment number through the User Id to obtain each corresponding sub-account; directly deducting the sub-account line when each sub-account line is sufficient, recording transaction information and ending; when any sub-account amount is insufficient, setting parameter configuration to execute fund rebalancing, and then executing deduction amount.
According to an embodiment of the present disclosure, setting a parameter configuration to perform fund rebalancing includes: and (3) configuring the starting time and the ending time of the peak period of the server, and delaying the execution of the funds rebalance to the ending of the peak period when the sub-account amount is insufficient in the peak period.
According to embodiments of the present disclosure, two cases when there is any sub-account amount shortage include: when any sub-account amount is insufficient, the hot spot main account amount is sufficient; when any sub-account is insufficient, the sum of the main account of the hot spot and the other sub-accounts is sufficient; when neither case is satisfied, account transaction error information is recorded.
A second aspect of the present disclosure provides a hot-spot account concurrency processing apparatus based on sub-account splitting, including: the account type determining module is used for determining the account type of the hot spot main account according to the line change direction of the hot spot main account; the main account splitting module splits the hot spot main account into a plurality of sub accounts based on the configuration file of the hot spot main account type; and the main account updating module is used for respectively merging the line of each sub-account to the hot spot main account in response to the transaction request, and updating the line of the hot spot main account after the completion.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and the storage device is used for storing one or more programs, wherein the one or more programs are executed by the one or more processors, and the one or more processors are caused to execute the hot-spot account concurrency processing method based on sub-account splitting.
A fourth aspect of the present disclosure is a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described sub-account splitting-based hot-spot account concurrency processing method.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario diagram of a method for concurrent processing of hot-spot accounts based on sub-account splitting according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a method of concurrent processing of a hot-spot account based on sub-account splitting in accordance with an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow diagram for splitting a hotspot primary account into multiple sub-accounts according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram of sub-account merging into a hotspot primary account according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow chart of an account transaction according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a block diagram of a hot-spot account concurrency processing apparatus based on sub-account splitting, according to an embodiment of the present disclosure;
fig. 7 schematically illustrates a block diagram of a sub-account splitting-based hotspot account concurrency processing electronic device, in accordance with an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some of the block diagrams and/or flowchart illustrations are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, when executed by the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). Additionally, the techniques of this disclosure may take the form of a computer-readable storage medium having stored thereon instructions that, when executed by a processor, cause the processor to perform the methods of this disclosure.
In the technical solution of the present disclosure, the related user information (including, but not limited to, user personal information, user image information, user equipment information, such as location information, etc.) and data (including, but not limited to, data for analysis, stored data, displayed data, etc.) are information and data authorized by the user or sufficiently authorized by each party, and the related data is collected, stored, used, processed, transmitted, provided, disclosed, applied, etc. and processed, all in compliance with the related laws and regulations and standards of the related country and region, necessary security measures are taken, no prejudice to the public order, and corresponding operation entries are provided for the user to select authorization or rejection.
The embodiment of the disclosure provides a hot-spot account concurrency processing method based on sub-account splitting, which comprises the following steps: determining the account type of the hotspot master account according to the limit variation of the hotspot master account; splitting the hot spot main account into a plurality of sub-accounts based on the configuration file of the hot spot main account type; and respectively merging the line of each sub-account to the hot spot main account in response to the transaction request, and updating the line of the hot spot main account after the completion.
By the embodiment of the disclosure, the problem that a large number of transactions in service peak period affect system efficiency is solved, and main account quota reservation and fund rebalancing are designed based on splitting and merging sub-accounts of a hot spot main account. The balance of the account is effectively ensured, and the transaction of the sub-account is ensured to be normal; the number of sub accounts is flexibly and dynamically adjusted, and the situation of deduction failure in the transaction process is avoided.
Fig. 1 schematically illustrates an application scenario diagram of a method for concurrent processing of hot-spot accounts based on sub-account splitting according to an embodiment of the present disclosure. It should be noted that fig. 1 illustrates only an example of an application scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments, or scenarios.
As shown in fig. 1, an application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the method for concurrent processing of hot accounts based on sub-account splitting provided in the embodiments of the present disclosure may be generally executed by the server 105. Accordingly, the hot account concurrency processing device based on sub-account splitting provided in the embodiments of the present disclosure may be generally disposed in the server 105. The method for concurrent processing of hot accounts based on sub-account splitting provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the hot account concurrency processing apparatus based on sub-account splitting provided in the embodiments of the present disclosure may also be provided in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The hot-spot account concurrency processing method based on sub-account splitting in the disclosed embodiment will be described in detail below based on the scenario described in fig. 1 through fig. 2 to 5.
Fig. 2 schematically illustrates a flowchart of a method for concurrent processing of a hot-spot account based on sub-account splitting according to an embodiment of the present disclosure.
In operation S210, an account type of the hotspot master account is determined according to the credit variation of the hotspot master account.
In operation S220, the hotspot primary account is split into a plurality of sub-accounts based on the profile of the hotspot primary account type.
In operation S230, in response to the transaction request, the quota of each sub-account is respectively merged into the hotspot main account, and after completion, the quota of the hotspot main account is updated.
Specifically, for a hot account, the account type of the hot account may be determined according to the direction of the change in the amount of the hot account. The account balance is increased frequently, namely a hot spot account for depositing money, the account type is a frequency-added account, such as a recruitment, funding and other scenes, and the account into which the money flows is the frequency-added account; account balance deduction is frequent, namely a hot spot account of cash is paid, the account type is a frequency-reducing account, for example, accounts with money flowing out are frequency-reducing accounts in the scenes of wages and the like; in addition, if account balance increases and deductions are frequent, i.e. there is both a deposit and an exit, the account type is a dual frequency account. According to the change direction of the money amount, the hot spot accounts can be divided into different account types, and then the corresponding method is adopted to process the hot spot accounts.
For example, the database structure for concurrent processing of hot-spot accounts based on sub-account splitting includes: storing the primary account information; storing the hot spot sub-account information: corresponding to the id field of the main account table and the sub-account fragment number, when funds transaction occurs, the transaction is mounted under the corresponding fragment according to the hash value of the user, and the fragment number can be used for representing the number of the sub-accounts; storing transaction information of an account; storing account transaction detail information; an id field in the primary account information table; an id field in the sub-account information table. When a transaction occurs, main account information and sub account information bound with the transaction are recorded in each transaction detail, and deduction is carried out on the corresponding account according to the information. The high concurrency problem is solved by splitting the hot spot account into multiple sub-accounts, combining, funds rebalancing, and funds transaction completion with sub-accounts based on the split sub-accounts.
According to the embodiment of the disclosure, based on splitting and merging the hot spot main accounts and sub-accounts, main account line retention and fund rebalancing are designed at the same time, and the problem that a large number of transactions in service peak period affect system efficiency is solved.
FIG. 3 schematically illustrates a flow chart of a splitting of a hotspot primary account into multiple sub-accounts according to an embodiment of the present disclosure.
As shown in fig. 3, in the embodiment of the present disclosure, splitting the hotspot primary account into multiple sub-accounts based on the configuration file of the hotspot primary account type may further include operations S321-S323.
In operation S321, according to the information of the hotspot main account type, it is determined whether the current hotspot main account is split, and the amount of the split sub-account is recorded under the split condition.
In operation S322, the to-be-split amount and the split sub-account amount in the hotspot main account are summarized.
In operation S323, the total amount after the aggregation is divided equally according to the fund balance amount ratio in the configuration file.
Specifically, whether the sub-account splitting is completed in the hot spot main account is judged according to the main account information, if so, the sub-account information is recorded, and repeated creation is prevented. When the sub-account is split each time, in order to ensure the average balance of each sub-account, the sum information of the main account and the split sub-accounts is aggregated to obtain the total sum, and then the total sum is split according to the splitting strategy configured in the hot-spot account configuration file.
It should be noted that, in the embodiment of the present disclosure, the hotspot account configuration file includes a configured splitting policy, for example, a proportion of the amount reserved by the main account when the count_percentage is configured with funds rebalancing in the configuration table, and the remaining amount may be equally divided into each sub-account when the sub-account is split.
In the embodiment of the disclosure, in order to keep the credit of each sub-account relatively balanced and the credit of the main account sufficient in the transaction, the system designs a cron timing task, which specifically includes: the timing task is performed when either of two conditions are satisfied, wherein the two conditions include: the amount of any sub-account is 2 times more than the amount of the other sub-account, and the amount of the main account with the hot spot is less than 30% of the sum of the sub-account amounts; wherein the timing tasks include: and setting parameter configuration to complete fund balance so as to keep the line of each sub-account relatively balanced in the transaction, wherein the line of the main account is sufficient.
Specifically, when the balance between sub-accounts is too large (there is a sub-account maximum amount exceeding twice the other sub-account minimum amount) or the hotspot primary account amount is too low (the hotspot primary account amount is less than 30% of the sum of the sub-account amounts), a fund rebalancing is triggered, and the starting time of the timed task is configured using the cron_hour parameter.
According to the embodiment of the disclosure, the hot account is split into the plurality of sub-accounts, and after the transaction request is received, each sub-account is used for completing the transaction, so that balance of the account is effectively ensured, and normal transaction of the sub-accounts is ensured. Multiple transactions can be performed simultaneously, and the problem that the existing transaction method cannot meet the high concurrency scene is effectively solved.
Fig. 4 schematically illustrates a flow chart of sub-account merging into a hotspot primary account according to an embodiment of the present disclosure.
As shown in fig. 4, in the embodiment of the present disclosure, in response to the transaction request, merging the amount of each sub-account into the hotspot main account, respectively, may further include operations S431 to S433.
In operation S431, it is verified whether there is an in-transit order for each sub-account, and if so, each sub-account order is transferred to the hotspot master account.
After the order transfer is completed, all hotspot master accounts are deactivated in operation S432.
In operation S433, the loop merges the credit of each sub-account into the hotspot main account, and updates the credit of the hotspot main account after completion.
Specifically, when the sub-accounts are combined into the main account, all sub-accounts are deactivated, all the amount of each sub-account is transferred to the hot spot main account, in order to ensure the normal running of the in-transit transaction, whether the sub-accounts have in-transit orders needs to be verified, if so, the amount of the orders needs to be transferred to the hot spot main account, and the subsequent processing of the orders is completed through the main account. And after the order transfer is finished, all the hotspot master accounts are deactivated. And finally, circularly merging the quota of each sub-account into the hot spot main account, and updating the quota of the hot spot main account after the completion.
According to the embodiment of the disclosure, account balances of a plurality of sub-accounts are summarized periodically or based on request information, so that total account balance information of a hot spot account is obtained.
Fig. 5 schematically illustrates a flow chart of an account transaction according to an embodiment of the present disclosure.
As shown in FIG. 5, in an embodiment of the present disclosure, the account funds transaction process may further include operations S521-S525.
In operation S521, after the splitting of the hotspot main account is completed, the hash modulus is performed on the fragment number through the User Id to obtain each corresponding sub-account.
In operation S522, when each sub-account amount is sufficient, the sub-account amount is directly deducted, transaction information is recorded, and the process ends.
In operation S523, when there is any sub-account amount shortage, the parameter configuration is set to perform funds balancing, and then deduction amount is performed.
Specifically, after the sub-account of the hot-spot account is split, the corresponding hot-spot sub-account is obtained by carrying out hash modulo on the fragment number through userId, and when the amount of the hot-spot sub-account is sufficient, the sub-account amount is directly deducted, transaction information is recorded and the process is ended. And if the amount of the sub-account is insufficient, a fund rebalancing mechanism is triggered, and a fund rebalancing message is sent through a message queue.
Wherein setting the parameter configuration to perform funds balancing comprises: and configuring the starting time and the ending time of the peak period of the server, and delaying the execution of the fund rebalancing to the ending of the peak period when the sub-account amount is insufficient in the peak period.
For example, in setting parameter configuration and executing fund balance, the starting time and the ending time of service peak period are respectively configured, in order to reduce the influence of on-line service, the executing efficiency of the system is ensured, the fund balance is not immediately triggered in the service peak period, namely, if insufficient amount is found in the peak period, a delay message is sent, otherwise, a real-time message is sent. And setting configuration information of a rebalancing delay message and a real-time message, wherein delayed fund rebalancing is performed after the service peak period is finished.
It should be noted that, when any sub-account amount is insufficient, two cases include: when any sub-account amount is insufficient, the hot spot main account amount is sufficient; when any sub-account is insufficient, the sum of the main account of the hot spot and the other sub-accounts is sufficient; when neither case is satisfied, account transaction error information is recorded. And directly deducting the sub-account amount when each sub-account amount is sufficient, recording transaction information and ending. When any sub-account amount is insufficient, setting parameter configuration to execute fund rebalancing, and then executing deduction amount.
By the embodiment of the disclosure, the balance of the account is effectively ensured, and the transaction of the sub-account is ensured to be normal; the number of sub accounts is flexibly and dynamically adjusted, and the situation of deduction failure in the transaction process is avoided.
Based on the above method for concurrent processing of hot-spot accounts based on sub-account splitting, the present disclosure further provides a device for concurrent processing of hot-spot accounts based on sub-account splitting, which will be described in detail below with reference to fig. 6.
Fig. 6 schematically illustrates a block diagram of a hot-spot account concurrency processing apparatus based on sub-account splitting according to an embodiment of the present disclosure.
As shown in fig. 6, the sub-account splitting-based hot account concurrency processing apparatus 600 of this embodiment includes an account type determination module 610, a main account splitting module 620, and a main account update module 630.
The account type determining module 610 is configured to determine an account type of the hotspot master account according to a credit variation direction of the hotspot master account. In an embodiment, the account type determining module 610 may be configured to perform the operation S210 described above, which is not described herein.
The primary account splitting module 620 is configured to split the hotspot primary account into a plurality of sub-accounts based on the configuration file of the hotspot primary account type. In an embodiment, the primary account splitting module 620 may be configured to perform the operation S220 described above, which is not described herein.
The main account updating module 630 is configured to, in response to a transaction request, respectively merge the amount of each sub-account into the hotspot main account, and after completion, update the amount of the hotspot main account. In an embodiment, the primary account updating module 630 may be configured to perform the operation S230 described above, which is not described herein.
Any of the account type determination module 610, the primary account splitting module 620, and the primary account update module 630 may be combined in one module or any of the modules may be split into multiple modules according to embodiments of the present disclosure. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of account type determination module 610, primary account splitting module 620, and primary account update module 630 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), programmable Logic Array (PLA), system-on-chip, system-on-substrate, system-on-package, application Specific Integrated Circuit (ASIC), or in hardware or firmware, such as any other reasonable way of integrating or packaging circuitry, or in any one of or a suitable combination of any of the three. Alternatively, at least one of the account type determination module 610, the primary account splitting module 620, and the primary account updating module 630 may be implemented at least in part as a computer program module that, when executed, performs the corresponding functions.
Fig. 7 schematically illustrates a block diagram of a sub-account splitting-based hotspot account concurrency processing electronic device, in accordance with an embodiment of the present disclosure.
As shown in fig. 7, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM703, various programs and data necessary for the operation of the electronic apparatus 700 are stored. The processor 701, the ROM702, and the RAM703 are connected to each other through a bus 704. The processor 701 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM702 and/or the RAM 703. Note that the program may be stored in one or more memories other than the ROM702 and the RAM 703. The processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in one or more memories.
According to an embodiment of the present disclosure, the electronic device 700 may further include an input/output (I/O) interface 705, the input/output (I/O) interface 705 also being connected to the bus 704. The electronic device 700 may also include one or more of the following components connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM702 and/or RAM703 and/or one or more memories other than ROM702 and RAM703 described above.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed over a network medium in the form of signals, downloaded and installed via the communication section 709, and/or installed from the removable medium 711. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (10)

1. A method for concurrently processing hot-spot accounts based on sub-account splitting is characterized by comprising the following steps:
determining the account type of a hotspot master account according to the limit variation of the hotspot master account;
splitting the hot spot main account into a plurality of sub-accounts based on the configuration file of the hot spot main account type;
and respectively merging the quota of each sub-account to the hot spot main account in response to the transaction request, and updating the quota of the hot spot main account after the completion.
2. The method of claim 1, wherein the splitting the hotspot primary account into a plurality of sub-accounts based on the profile of the hotspot primary account type comprises:
judging whether the current hot spot main account is split according to the information of the hot spot main account type, and recording the amount of the split sub-account under the split condition;
summarizing the to-be-split amount in the hotspot main account and the split sub-account amount;
and carrying out average splitting on the total sum after the aggregation according to the fund weight balance sum proportion in the configuration file.
3. The method of claim 2, wherein the splitting the hotspot primary account into a plurality of sub-accounts further comprises:
in the case where either one of the following two conditions is satisfied, a timing task is executed,
wherein the two conditions include: the amount of any sub-account is 2 times more than the amount of the other sub-account, and the amount of the main account with the hot spot is less than 30% of the sum of the sub-account amounts;
wherein the timing tasks include: and setting parameter configuration to complete fund balance so as to keep the line of each sub-account relatively balanced in the transaction, wherein the line of the main account is sufficient.
4. The method of claim 1, wherein the merging the credit of each sub-account into the hotspot master account, respectively, in response to a transaction request, comprises:
verifying whether each sub-account has an in-transit order, and if so, transferring each sub-account order to the hotspot main account;
after the order transfer is completed, all the hotspot main accounts are deactivated;
and circularly merging the quota of each sub-account into the hot spot main account, and updating the quota of the hot spot main account after the completion.
5. The method of claim 1, wherein the method further comprises:
in the account transaction process, after the hotspot main account is split, hash modulus is carried out on the fragment number through userId to obtain each corresponding sub-account;
directly deducting the sub-account line when each sub-account line is sufficient, recording transaction information and ending;
and when any sub-account line is insufficient, setting parameter configuration to execute fund rebalancing, and then executing deduction line.
6. The method of claim 5, wherein the setting parameter configuration performs funding rebalancing comprising:
and configuring the starting time and the ending time of the peak period of the server, and delaying the execution of the fund rebalancing to the ending of the peak period when the sub-account amount is insufficient in the peak period.
7. The method of claim 5, wherein the two cases when there is any of the sub-account amounts being insufficient include:
when any sub-account line is insufficient, the hot spot main account line is sufficient;
when any sub-account has insufficient amount, the sum of the amounts of the hot main account and other sub-accounts is sufficient;
and when neither of the two conditions is satisfied, recording account transaction error information.
8. A sub-account splitting-based hot spot account concurrency processing device, comprising:
the account type determining module is used for determining the account type of the hot spot main account according to the line change direction of the hot spot main account;
the main account splitting module splits the hot spot main account into a plurality of sub accounts based on the configuration file of the hot spot main account type;
and the main account updating module is used for respectively merging the line of each sub-account to the hot spot main account in response to the transaction request, and updating the line of the hot spot main account after the completion.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-7.
CN202311434601.9A 2023-10-31 2023-10-31 Hot account concurrent processing method, device and equipment based on sub-account splitting Pending CN117541172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311434601.9A CN117541172A (en) 2023-10-31 2023-10-31 Hot account concurrent processing method, device and equipment based on sub-account splitting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311434601.9A CN117541172A (en) 2023-10-31 2023-10-31 Hot account concurrent processing method, device and equipment based on sub-account splitting

Publications (1)

Publication Number Publication Date
CN117541172A true CN117541172A (en) 2024-02-09

Family

ID=89783207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311434601.9A Pending CN117541172A (en) 2023-10-31 2023-10-31 Hot account concurrent processing method, device and equipment based on sub-account splitting

Country Status (1)

Country Link
CN (1) CN117541172A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117808602A (en) * 2024-03-01 2024-04-02 联动优势电子商务有限公司 Hot account billing method and related device based on sub-account expansion

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117808602A (en) * 2024-03-01 2024-04-02 联动优势电子商务有限公司 Hot account billing method and related device based on sub-account expansion

Similar Documents

Publication Publication Date Title
CN111198873B (en) Data processing method and device
US11966972B2 (en) Generating graphical user interfaces comprising dynamic credit value user interface elements determined from a credit value model
US20230222463A1 (en) Transfers using credit accounts
CN112132674A (en) Transaction processing method and device
CN111080424A (en) Accounting management method and device
CN111915417B (en) Tax amount determining method and device and electronic equipment
CN117541172A (en) Hot account concurrent processing method, device and equipment based on sub-account splitting
CN111859049B (en) Method for realizing differential display of enterprise salary information and message generation method
US20230067630A1 (en) Systems and methods for handling transfers
KR20150054243A (en) Method of providing loan service and server performing the same
US20230169588A1 (en) Facilitating fee-free credit-based withdrawals over computer networks utilizing secured accounts
CN111866171B (en) Message processing method, device, electronic equipment and medium
CN113076297A (en) Data processing method, device and storage medium
CN114663221A (en) Financial institution-to-financial affairs processing method and device based on multi-dimensional block chain
CN114969082A (en) Method, device, equipment and computer readable medium for processing service data
CN115345722B (en) Fund management system, method, electronic device and storage medium
US11797179B1 (en) Accumulated data transfer amount access
US20240231612A1 (en) Accumulated data transfer amount access
US12079811B2 (en) Digital policy criteria integration for making determinations within an inter-network facilitation system
US20240231961A1 (en) Event fanning platform for streaming network event data to consumer applications
CN115829753B (en) Cross-border securities business exchange method and system based on blockchain
US20240362596A1 (en) Bridging network transaction platforms to unify cross-platform transfers
CN112988386B (en) Information generation method, device, server and storage medium
CN113971007A (en) Information processing method, information processing apparatus, electronic device, and medium
CN118735684A (en) Resource processing method, device, apparatus, medium and program product

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