CN109493025B - Account generating method and device - Google Patents

Account generating method and device Download PDF

Info

Publication number
CN109493025B
CN109493025B CN201811236233.6A CN201811236233A CN109493025B CN 109493025 B CN109493025 B CN 109493025B CN 201811236233 A CN201811236233 A CN 201811236233A CN 109493025 B CN109493025 B CN 109493025B
Authority
CN
China
Prior art keywords
account
region
generators
generator
total number
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.)
Active
Application number
CN201811236233.6A
Other languages
Chinese (zh)
Other versions
CN109493025A (en
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.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201811236233.6A priority Critical patent/CN109493025B/en
Publication of CN109493025A publication Critical patent/CN109493025A/en
Application granted granted Critical
Publication of CN109493025B publication Critical patent/CN109493025B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • 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
    • 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention provides an account generation method and device, wherein the account generation method is implemented by firstly configuring the sequence current value of each region and the account generator total number of each region in a regional manner, and comprises the following steps: receiving an account application request, wherein the account application request comprises regional information; acquiring a sequence current value of the region and the total number of account generators of the region according to the region information, and adding 1 to the sequence current value of the region; determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of the account generators in the region; and generating a target account by the determined account generator. The invention can disperse the hot spot conflict, reduce the problems of hot spot resource conflict access and transaction failure caused by the account number of the bank system, and improve the concurrent transaction processing capacity of the bank.

Description

Account generating method and device
Technical Field
The invention belongs to the field of account generation, and particularly relates to an account generation method and device.
Background
In the prior art, there are two account number generation methods for a bank system: the first method is that 1 is added in sequence on the basis of the original account number of the database; the second is to divide the number into sections according to the province, but the province still adopts the method of adding 1 in sequence on the basis of the sent account.
For the first bank system account generation method, when concurrent transactions are increased, competition of the same resource of the database is formed, a hot resource conflict access problem is caused, and the risk of transaction failure exists. For the second bank account generation method, when intra-provincial transactions are increased concurrently, the problem of hot resource conflict access still exists, and the risk of transaction failure exists.
Disclosure of Invention
The invention is used for solving the problems that in the account generation method of the bank system in the prior art, when a concurrent account application request rises, hot resource conflict access exists, and the risk of response failure of the account application request exists.
In order to solve the above technical problem, a first aspect of the present invention provides an account generation method, where a sequence current value of each region and a total number of account generators in each region are configured in a partitioned manner, the method including:
receiving an account application request, wherein the account application request comprises regional information;
acquiring a sequence current value of the region and the total number of account generators of the region according to the region information, and adding 1 to the sequence current value of the region;
determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of the account generators in the region;
and generating a target account by the determined account generator.
Further, the areas are divided according to administrative areas or predetermined rules.
Further, initializing and configuring the sequence current value of each region to be 1, adding 1 to the sequence current value of any region i after acquiring the sequence current value of the region i, and adding 1 to the sequence current value of the region i if the sequence current value is greater than the upper limit value NiThen the current value of the sequence for this region i is set to 1.
Further, the total number of account generators in each region is determined as follows:
estimating the application request quantity of the account in each area according to the historical application request quantity of the account in each area and the social and economic parameters;
and configuring the total number of the account generators in each area, the account number sections of each area and the account number sections of the account generators in each area according to the estimated application request quantity of the account numbers in each area.
Further, determining which account generator in the region generates the target account according to the sequence current value of the region and the total number of account generators in the region by using a balancing algorithm includes determining which account generator in the region generates the target account by the following formula:
n=X%Y+1,
wherein n is the serial number of the determined account generator, X is the current value of the sequence of the region, Y is the total number of the account generators of the region, and% is the remainder.
Further, the generating of the target account by the determined account generator includes:
acquiring the account recorded in the determined account generator, and taking the account as a target account;
and adding 1 to the determined account number recorded in the account number generator.
A second aspect of the present invention provides an account generation apparatus, including:
the preprocessing module is used for configuring the sequence current values of all the regions and the account number generator total number of all the regions in a regional mode;
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving an account application request, and the account application request comprises regional information;
the acquisition module is used for acquiring the current sequence value of the region and the total number of the account generators of the region according to the region information and adding 1 to the current sequence value of the region;
the calculation module is used for determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of the account generators in the region;
and the generating module is used for generating the target account by the determined account generator.
Further, initializing and configuring the sequence current value of each region to be 1, adding 1 to the sequence current value of any region i after acquiring the sequence current value of the region i, and adding 1 to the sequence current value of the region i if the sequence current value is greater than the upper limit value NiThen the current value of the sequence for this region i is set to 1.
Further, the total number of account generators in each region is determined as follows:
estimating the application request quantity of the account in each area according to the historical application request quantity of the account in each area and the social and economic parameters;
and configuring the total number of the account generators in each area, the account number section of each area and the account number section of each account generator in each area according to the estimated application request quantity of each area account.
Further, the calculation module determines which account generator generates the target account by the following formula:
n=X%Y+1,
wherein n is the serial number of the determined account generator, X is the current value of the sequence of the region, Y is the total number of the account generators of the region, and% is the remainder.
Further, the generating module is specifically configured to:
acquiring the account recorded in the determined account generator, and taking the account as a target account;
and adding 1 to the determined account number recorded in the account number generator.
A third aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the memory further stores a current sequence value of each region configured in a partitioned manner and a total number of account generators of each region, and the processor implements the following steps when executing the computer program:
receiving an account application request, wherein the account application request comprises regional information;
acquiring a sequence current value of the region and the total number of account generators of the region according to the region information, and adding 1 to the sequence current value of the region;
determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of the account generators in the region;
and generating a target account by the determined account generator.
A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program for executing a computer program, a sequence current value of each region of a partitioned configuration, and a total number of account generators of each region, wherein the computer program, when executed by a processor, implements the steps of:
receiving an account application request, wherein the account application request comprises regional information;
acquiring a sequence current value of the region and the total number of account generators of the region according to the region information, and adding 1 to the sequence current value of the region;
determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of the account generators in the region;
and generating a target account by the determined account generator.
The account generation method and device provided by the invention are suitable for account generation of a bank system, the problem of account hot spots can be solved in a multi-dimensional mode by dividing regions and account generators, and the balance algorithm is utilized to determine which account generator in a region generates a target account according to the sequence current value of the region and the total number of account generators in the region, so that the balance number sending among the account generators in the region can be ensured. In a word, the invention can disperse the hot spot conflict, reduce the problems of hot spot resource conflict access and transaction failure caused by the account number of the bank system, and improve the concurrent transaction processing capacity of the bank.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a flowchart of an account generation method according to an embodiment of the present invention;
FIG. 2 illustrates a flow chart of a determination process by which account generator in a region to generate a target account according to an embodiment of the invention;
fig. 3 is a block diagram showing an account generating apparatus according to an embodiment of the present invention;
FIG. 4 is a block diagram showing a computer apparatus according to an embodiment of the present invention;
fig. 5 shows a schematic diagram of an account generation process according to an embodiment of the present invention.
Detailed Description
In order to make the technical features and effects of the invention more obvious, the technical solution of the invention is further described below with reference to the accompanying drawings, the invention can also be described or implemented by other different specific examples, and any equivalent changes made by those skilled in the art within the scope of the claims are within the scope of the invention.
In the description herein, references to the description of "an embodiment," "a particular embodiment," "for example," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The sequence of steps involved in the various embodiments is provided to schematically illustrate the practice of the invention, and the sequence of steps is not limited and can be suitably adjusted as desired.
As shown in fig. 1, fig. 1 is a flowchart illustrating an account generation method according to an embodiment of the present invention. The present embodiment is suitable for account generation in a banking system, and when the method is implemented, the sequence current value of each region and the total number of account generators in each region are initially configured in a regional manner (for example, as table one, the sequence current value of each region is initially configured to be 1), and in detail, account number segments in each region and account number segments of each account generator in each region are also configured.
Table one:
region(s) Current value of sequence Total number of account generators
Region A
1 10
Region B 1 25
…… …… ……
According to the embodiment, hot spot conflicts can be dispersed, the problems of hot spot resource conflict access and transaction failure caused by the account number of the bank system are reduced, and the concurrent transaction processing capacity of the bank is improved. Specifically, the account generation method includes:
step 110, an account application request is received, wherein the account application request includes region information. In detail, the request for applying for an account number belongs to one type of transaction, the region may be divided into a large range (for example, countries) according to administrative regions (for example, provinces, cities and counties) or predetermined rules, for example, the predetermined rules specify which provinces and cities are divided into one region, and the specific division rule of the region is not limited in the present invention.
And step 120, acquiring the current sequence value of the region and the total number of account generators of the region according to the region information, and adding 1 to the current sequence value of the region after acquiring the current sequence value of the region. In specific implementation, in order to avoid overflow of the current sequence value of each region due to a large value, if the current sequence value of any region i is greater than the upper limit value N after adding 1 to the current sequence value of any region ii(the upper limit value of the current value of the sequence in each region may be the same or different, and the present invention is not limited thereto), the region is setThe current value of the sequence of i is 1.
And step 130, determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of account generators in the region.
And 140, generating a target account by the determined account generator. Specifically, each account generator in each area is pre-configured with an account number segment, and the account generator sends a number according to the configured account number segment.
According to the method, the problem of hot spots of the account numbers can be solved in a multi-dimensional mode through partitioning and account number generator division, and according to the sequence current value of the region and the total number of the account number generators of the region, a balance algorithm is utilized to determine which account number generator in the region generates the target account number, so that the balance number sending among the account number generators in the region can be guaranteed, and the purpose of dispersing transaction hot spots is achieved.
In some embodiments of the present invention, the total number of account generators configured in each area is determined as follows:
and step 210, estimating the account application request amount of each region according to the historical account application request amount of each region and social economic parameters, wherein the social economic parameters include but are not limited to economic development trend, total population amount and the like.
Step 220, configuring the total number of the account generators in each area, the number section of each area account and the number section of each account generator in each area according to the estimated application request amount of each area account, for example, if the number-capable section of the account number is 10000-99999, then allocating according to the conditions of each area: if the population of the area A is small, 10000-15000 number sections are distributed, and the area A is provided with 5 account generators, the account number sections of the account generators are 10000-11000, 11001-12000, 12001-13000, 13001-14000 and 14001-15000; province B has a plurality of people, the number distribution section is 15001-60000, the rest areas are distributed similarly, and the area B is provided with 15 account generators, so that the 15 account generators can uniformly distribute the account number sections 15001-60000.
In this embodiment, the account number segments of the account number generators in each region are configured, so that not only can the flexibility of control be improved, but also the maintenance cost can be reduced.
In some embodiments of the present invention, the step 200 of determining which account generator in the area generates the target account according to the sequence current value of the area and the total number of account generators in the area by using a balancing algorithm includes determining which account generator in the area generates the target account by the following formula:
n=X%Y+1,
wherein n is the serial number of the determined account generator, X is the current value of the sequence of the region, Y is the total number of the account generators of the region, and% is the remainder.
In detail, the serial number of the account generator is used for searching the corresponding account generator, and the account generators in the area can circularly send out numbers one by one through the formula, so that the aim of dispersing transaction hotspots is fulfilled.
In some embodiments of the present invention, as shown in fig. 2, the step 140 of generating the target account by the determined account generator includes:
step 141, acquiring the account recorded in the determined account generator, and taking the account as a target account.
And step 142, adding 1 to the determined account number recorded in the account number generator.
Based on the same inventive concept, the embodiment of the present invention further provides an account generation apparatus, as described in the following embodiments. Because the principle of the device for solving the problem is similar to the account generation method, the implementation of the device can refer to the implementation of the account generation method, and repeated details are not repeated. As shown in fig. 3, the account generation apparatus includes:
and the preprocessing module 310 is used for configuring the sequence current value of each region and the account number generator total number of each region in a regional manner. Specifically, the sequence current value of each region is initialized and configured to be 1, and each time the sequence current value of any region i is acquired, the sequence current value of the region i is added with 1, and if the sequence current value is larger than the upper limit value N after the addition of 1iThen the current value of the sequence for this region i is set to 1. The total number of account generators for each region is determined as follows: according to the historical account number application request amount of each region and societyEconomic parameters are used for predicting the application request quantity of the account numbers in each area; and configuring the total number of the account generators in each area, the account number section of each area and the account number section of each account generator in each area according to the estimated application request quantity of each area account.
The receiving module 320 is configured to receive an account application request, where the account application request includes area information.
The obtaining module 330 is configured to obtain the current sequence value of the region and the total number of account generators in the region according to the region information, and add 1 to the current sequence value of the region.
And the calculating module 340 is configured to determine which account generator in the region generates the target account by using a balancing algorithm according to the sequence current value of the region and the total number of account generators in the region.
A generating module 350, configured to generate the target account from the determined account generator.
The account generation device provided by the embodiment is suitable for account generation of a bank system, the problem of hot spots of accounts can be solved in a multi-dimensional mode through region division and account generator division, and according to the sequence current value of a region and the total number of account generators in the region, which account generator generates a target account in the region is determined by using a balance algorithm, so that balanced number sending between the account generators in the region can be guaranteed. In a word, the invention can disperse the hot spot conflict, reduce the problems of hot spot resource conflict access and transaction failure caused by the account number of the bank system, and improve the concurrent transaction processing capacity of the bank.
In further embodiments, the calculation module 340 determines which account generator generated the target account by the following formula:
n=X%Y+1,
wherein n is the serial number of the determined account generator, X is the current value of the sequence of the region, Y is the total number of the account generators of the region, and% is the remainder.
In a further embodiment, the generating module 350 is specifically configured to: acquiring the account recorded in the determined account generator, and taking the account as a target account; and adding 1 to the determined account number recorded in the account number generator.
As shown in fig. 4, fig. 4 is a block diagram showing a computer apparatus according to an embodiment of the present invention. Specifically, the computer device includes: the system comprises a memory 410, a processor 420 and a computer program stored on the memory and capable of running on the processor, wherein the memory 410 further stores the current sequence value of each region configured by the partition regions and the total number of account generators of each region, and the processor 420 implements the following steps when executing the computer program:
receiving an account application request, wherein the account application request comprises regional information;
acquiring a sequence current value of the region and the total number of account generators of the region according to the region information, and adding 1 to the sequence current value of the region;
determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of the account generators in the region;
and generating a target account by the determined account generator.
In specific implementation, the computer device further includes: an input/output device 430 and a communication device 440 such as a network connection. The invention is not limited to the components specifically included in the computer device.
In some embodiments of the present invention, a computer-readable storage medium is further provided, where the computer-readable storage medium stores a computer program, a current sequence value of each region of a partitioned configuration, and a total number of account generators of each region, and the computer program, when executed by a processor, implements the following steps:
receiving an account application request, wherein the account application request comprises regional information;
acquiring a sequence current value of the region and the total number of account generators of the region according to the region information, and adding 1 to the sequence current value of the region;
determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of the account generators in the region;
and generating a target account by the determined account generator.
In order to more clearly illustrate the technical solution of the present invention, as shown in fig. 5, the following description is given in detail by taking the province a to apply for a new account as an example, and specifically, the account generation process includes:
step 510, receiving an account application request sent by province A;
step 520, acquiring a current sequence value 122 corresponding to the province A and the total number 10 of account generators of the province A (after the acquisition, the current sequence value of the province A is added with 1 to obtain 123);
step 530, account generator serial number is calculated: 122% 10+1 ═ 3;
step 540, taking the current account (after the value is taken, the current account +1 in the serial number 3) recorded by the account generator of the province A serial number 3 as the target account: if the current account number of the provincial A serial number 3 account generator is 45825647543, returning to the requester target account number of '45825647543', and taking 45825647544 as the current account number of the provincial A serial number 3 account generator, wherein the current account number is +1 recorded by the provincial A serial number 3 account generator.
The account generation method and device provided by the invention are suitable for account generation of a bank system, the problem of account hot spots can be solved in a multi-dimensional mode by dividing regions and account generators, and the balance algorithm is utilized to determine which account generator in a region generates a target account according to the sequence current value of the region and the total number of account generators in the region, so that the balance number sending among the account generators in the region can be ensured. In a word, the invention can disperse the hot spot conflict, reduce the problems of hot spot resource conflict access and transaction failure caused by the account number of the bank system, and improve the concurrent transaction processing capacity of the bank.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, 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, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only for the purpose of illustrating the present invention, and any person skilled in the art can modify and change the above embodiments without departing from the spirit and scope of the present invention. Therefore, the scope of the claims should be accorded the full scope of the claims.

Claims (11)

1. An account generation method is characterized in that sequence current values of all regions and account generator total numbers of all regions are configured in a regional mode, and the method comprises the following steps:
receiving an account application request, wherein the account application request comprises regional information;
acquiring the sequence current value of the region and the total number of account generators of the region according to the region information, and adding 1 to the sequence current value of the region, wherein the total number of account generators of each region is determined in the following way: estimating the application request quantity of the account in each area according to the historical application request quantity of the account in each area and the social and economic parameters; configuring the total number of account generators in each area, account number sections in each area and account number sections of account generators in each area according to the estimated application request quantity of the account numbers in each area;
determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of the account generators in the region;
and generating a target account by the determined account generator.
2. The method of claim 1, wherein the areas are divided by administrative areas or predetermined rules.
3. The method according to claim 1, wherein the current sequence value of each region is initially configured to be 1, and after each time the current sequence value of any region i is obtained, the current sequence value of the region i is added by 1, and if the current sequence value is greater than the upper limit value N after the addition of 1iThen the current value of the sequence for this region i is set to 1.
4. The method of claim 1, wherein determining which account generator in the region generates the target account based on the sequence current value of the region and the total number of account generators in the region using a balancing algorithm comprises determining which account generator in the region generates the target account by the following formula:
n=X%Y+1,
wherein n is the serial number of the determined account generator, X is the current value of the sequence of the region, Y is the total number of the account generators of the region, and% is the remainder.
5. The method of claim 1, wherein generating the target account number from the determined account number generator comprises:
acquiring the account recorded in the determined account generator, and taking the account as a target account;
and adding 1 to the determined account number recorded in the account number generator.
6. An account generation apparatus, comprising:
the preprocessing module is used for configuring the sequence current values of all the regions and the account number generator total number of all the regions in a regional mode;
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving an account application request, and the account application request comprises regional information;
an obtaining module, configured to obtain a sequence current value of the region and a total number of account generators in the region according to the region information, and add 1 to the sequence current value of the region, where the total number of account generators in each region is determined in the following manner: estimating the application request quantity of the account in each area according to the historical application request quantity of the account in each area and the social and economic parameters;
configuring the total number of the account generators in each area, the account number sections of each area and the account number sections of the account generators in each area according to the estimated application request quantity of the account numbers in each area;
the calculation module is used for determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of the account generators in the region;
and the generating module is used for generating the target account by the determined account generator.
7. The apparatus of claim 6, wherein the current sequence value of each region is initially configured to be 1, and each time the current sequence value of any region i is obtained, the current sequence value of the region i is added by 1, and the value is increased by 1 and then is largerAt an upper limit value NiThen the current value of the sequence for this region i is set to 1.
8. The apparatus of claim 6, wherein the calculation module determines which account generator generated the target account by:
n=X%Y+1,
wherein n is the serial number of the determined account generator, X is the current value of the sequence of the region, Y is the total number of the account generators of the region, and% is the remainder.
9. The apparatus of claim 6, wherein the generation module is specifically configured to:
acquiring the account recorded in the determined account generator, and taking the account as a target account;
and adding 1 to the determined account number recorded in the account number generator.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the memory further stores a current sequence value of each zone and a total number of account generators for each zone in a zone configuration, and the processor implements the following steps when executing the computer program:
receiving an account application request, wherein the account application request comprises regional information;
acquiring the sequence current value of the region and the total number of account generators of the region according to the region information, and adding 1 to the sequence current value of the region, wherein the total number of account generators of each region is determined in the following way: estimating the application request quantity of the account in each area according to the historical application request quantity of the account in each area and the social and economic parameters; configuring the total number of the account generators in each area, the account number sections of each area and the account number sections of the account generators in each area according to the estimated application request quantity of the account numbers in each area;
determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of the account generators in the region;
and generating a target account by the determined account generator.
11. A computer-readable storage medium storing a computer program, a sequence current value for each zone of a zone configuration, and a total number of account generators for each zone, the computer program when executed by a processor implementing the steps of:
receiving an account application request, wherein the account application request comprises regional information;
acquiring the sequence current value of the region and the total number of account generators of the region according to the region information, and adding 1 to the sequence current value of the region, wherein the total number of account generators of each region is determined in the following way: estimating the application request quantity of the account in each area according to the historical application request quantity of the account in each area and the social and economic parameters; configuring the total number of the account generators in each area, the account number sections of each area and the account number sections of the account generators in each area according to the estimated application request quantity of the account numbers in each area;
determining which account generator in the region generates the target account by using a balance algorithm according to the sequence current value of the region and the total number of the account generators in the region;
and generating a target account by the determined account generator.
CN201811236233.6A 2018-10-23 2018-10-23 Account generating method and device Active CN109493025B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811236233.6A CN109493025B (en) 2018-10-23 2018-10-23 Account generating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811236233.6A CN109493025B (en) 2018-10-23 2018-10-23 Account generating method and device

Publications (2)

Publication Number Publication Date
CN109493025A CN109493025A (en) 2019-03-19
CN109493025B true CN109493025B (en) 2022-03-18

Family

ID=65692507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811236233.6A Active CN109493025B (en) 2018-10-23 2018-10-23 Account generating method and device

Country Status (1)

Country Link
CN (1) CN109493025B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111339743B (en) * 2020-02-19 2023-07-18 中国建设银行股份有限公司 Account number generation method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457904A (en) * 2010-10-14 2012-05-16 深圳市泰海科技有限公司 Method and device for balancing load as well as handheld terminal and communication equipment
CN103647833A (en) * 2013-12-16 2014-03-19 百度在线网络技术(北京)有限公司 Continuous sequence number generation system and continuous sequence number generation method
CN104866601A (en) * 2015-06-01 2015-08-26 走遍世界(北京)信息技术有限公司 Serial number generating method and device
CN105005624A (en) * 2015-07-31 2015-10-28 天脉聚源(北京)传媒科技有限公司 Method and device for generating index document ID
CN105095263A (en) * 2014-05-08 2015-11-25 阿里巴巴集团控股有限公司 Generation method for card number and apparatus thereof
CN108509433A (en) * 2017-02-23 2018-09-07 北京京东金融科技控股有限公司 The method, apparatus and electronic equipment of formation sequence number based on distributed system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457904A (en) * 2010-10-14 2012-05-16 深圳市泰海科技有限公司 Method and device for balancing load as well as handheld terminal and communication equipment
CN103647833A (en) * 2013-12-16 2014-03-19 百度在线网络技术(北京)有限公司 Continuous sequence number generation system and continuous sequence number generation method
CN105095263A (en) * 2014-05-08 2015-11-25 阿里巴巴集团控股有限公司 Generation method for card number and apparatus thereof
CN104866601A (en) * 2015-06-01 2015-08-26 走遍世界(北京)信息技术有限公司 Serial number generating method and device
CN105005624A (en) * 2015-07-31 2015-10-28 天脉聚源(北京)传媒科技有限公司 Method and device for generating index document ID
CN108509433A (en) * 2017-02-23 2018-09-07 北京京东金融科技控股有限公司 The method, apparatus and electronic equipment of formation sequence number based on distributed system

Also Published As

Publication number Publication date
CN109493025A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
US20200287961A1 (en) Balancing resources in distributed computing environments
CN107659433B (en) Cloud resource scheduling method and equipment
CN107045455A (en) A kind of Docker Swarm cluster resource method for optimizing scheduling based on load estimation
CN106325756B (en) Data storage method, data calculation method and equipment
CN111966500A (en) Resource scheduling method and device, electronic equipment and storage medium
Mashayekhy et al. A coalitional game-based mechanism for forming cloud federations
CN107450855A (en) A kind of model for distributed storage variable data distribution method and system
CN108241531A (en) A kind of method and apparatus for distributing resource for virtual machine in the cluster
CN110852559A (en) Resource allocation method and device, storage medium and electronic device
CN109493025B (en) Account generating method and device
CN107967650A (en) A kind of batch accounting data processing method and processing device of core banking system
CN113347249A (en) Operation loading method, device and equipment
CN104657216A (en) Resource allocation method and device for resource pool
CN115794421A (en) Resource allocation method and device and electronic equipment
CN115269118A (en) Scheduling method, device and equipment of virtual machine
CN110750330A (en) Virtual machine creating method, system, electronic equipment and storage medium
US11694129B2 (en) Parallel solution generation
CN109240805B (en) Virtual machine allocation method and device
CN112070349A (en) Order allocation method, device, equipment and storage medium
CN112988367A (en) Resource allocation method and device, computer equipment and readable storage medium
JP2021105772A (en) Prediction management system of resource usage amount, and prediction management method of resource usage amount
CN110504690B (en) Method for using cloud computing for power flow computing
JP6365027B2 (en) Allocation program, allocation device, allocation system, and allocation method
CN107861794A (en) A kind of method and apparatus that virtual machine is established in cloud computing system
CN113989004B (en) Resource allocation method and device, electronic equipment and readable storage medium

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
GR01 Patent grant
GR01 Patent grant