CN110009478A - Loan credit method and device, storage medium, computer equipment - Google Patents

Loan credit method and device, storage medium, computer equipment Download PDF

Info

Publication number
CN110009478A
CN110009478A CN201910156797.7A CN201910156797A CN110009478A CN 110009478 A CN110009478 A CN 110009478A CN 201910156797 A CN201910156797 A CN 201910156797A CN 110009478 A CN110009478 A CN 110009478A
Authority
CN
China
Prior art keywords
credit
sub
user
application information
connection
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
CN201910156797.7A
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.)
Hundred Financial Information Service Ltd By Share Ltd
Original Assignee
Hundred Financial Information Service Ltd By Share 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 Hundred Financial Information Service Ltd By Share Ltd filed Critical Hundred Financial Information Service Ltd By Share Ltd
Priority to CN201910156797.7A priority Critical patent/CN110009478A/en
Publication of CN110009478A publication Critical patent/CN110009478A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • 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/03Credit; Loans; Processing thereof

Abstract

This application discloses a kind of loan credit method and devices, storage medium, computer equipment, this method comprises: establishing python-Redis connection pool, and configure connection pool by configuration file;User's application information is received, is stored in Redis using user's application information as data are executed;According to user's application information, and the corresponding credit scene of user's application information and credit process corresponding with credit scene is determined;Using user's application information, multiple credit sub-processes are successively executed, wherein when executing any credit sub-process, connection is obtained from connection pool;Execution data relevant to any credit sub-process are obtained from Redis by connecting;According to user's application information relevant to any credit sub-process, by calling python process corresponding with any credit sub-process to execute any credit sub-process, and it is stored in implementing result as new execution data in Redis.

Description

Loan credit method and device, storage medium, computer equipment
Technical field
This application involves loan credit technical fields, are situated between particularly with regard to a kind of loan credit method and device, storage Matter, computer equipment.
Background technique
In the industry cycle apparently, conventional banking facilities usually serve in large enterprises, major company, and customer quantity is few, and amount is bigger, Substantially manually service.But when carrying out general favour finance, the objective group of usual general favour finance be mainly little Wei enterprise, in The product life cycle of the urban population of low income and agriculture-countryside-farmer, general favour finance are usually shorter, and amount is also smaller, also requires interest rate very Assets that are low, and can not mortgaging, the more difficult adaptation of operation mode of traditional bank, therefore, and power-assisted of only depending on science and technology, Hewlett-Packard Financial ability is healthy and constantly continues to develop.
Usually configuration threshold value carries out access verification to traditional systematization air control system in systems, configures weight calculation mould Type score.Although the weight that the threshold value and model of admittable regulation calculate can be with flexible configuration, model calculating process is relatively fixed, And the programming technician of profession is needed to develop, higher cost, it is difficult to mode input output under compatible different scenes Particular/special requirement, and computation model needs repeatedly from data base call data, system burden is heavier, and efficiency is lower, to general Hui Jinrong The development of business causes obstruction.
Summary of the invention
In view of this, being helped this application provides a kind of loan credit method and device, storage medium, computer equipment In the efficiency for promoting credit approval.
According to the one aspect of the application, a kind of loan credit method is provided, comprising:
Python-Redis connection pool is established, and the connection pool is configured by configuration file;
User's application information is received, is stored in Redis using user's application information as data are executed;
According to user's application information, determines credit scene corresponding with user's application information and awarded with described Believe the corresponding credit process of scene, wherein the credit process includes orderly multiple credit sub-processes, each credit Process passes through python script and defines;
Using user's application information, multiple credit sub-processes are successively executed, wherein award described in any in execution When believing sub-process, connection is obtained from the connection pool;
The execution data relevant to any credit sub-process are obtained from the Redis by the connection;
According to user's application information relevant to any credit sub-process, passes through and call and any credit The corresponding python process of sub-process executes any credit sub-process, and saves implementing result as new execution data In the Redis.
According to the another aspect of the application, a kind of loan credit device is provided, comprising:
Connection pool establishes module, configures the connection pool for establishing Redis connection pool, and by configuration file;
Information receiving module is saved for receiving user's application information using user's application information as data are executed In Redis;
Process determining module, for determining award corresponding with user's application information according to user's application information Believe scene and credit process corresponding with the credit scene, wherein the credit process includes orderly multiple credits Process, each credit sub-process pass through python script and define;
Execution module successively executes multiple credit sub-processes for utilizing user's application information;
The execution module, specifically includes:
Connection acquisition unit, for obtaining connection from the connection pool when executing any credit sub-process;
Data capture unit, for being obtained and any credit sub-process phase from the Redis by the connection The execution data closed;
First execution unit, for passing through according to user's application information relevant to any credit sub-process Any credit sub-process of python process execution corresponding with any credit sub-process is called, and implementing result is made It is stored in the Redis for new execution data.
According to the application another aspect, a kind of storage medium is provided, computer program, described program are stored thereon with Above-mentioned loan credit method is realized when being executed by processor.
According to the application another aspect, a kind of computer equipment is provided, including storage medium, processor and be stored in On storage medium and the computer program that can run on a processor, the processor realize above-mentioned loan when executing described program Credit method.
By above-mentioned technical proposal, a kind of loan credit method and device provided by the present application, storage medium, computer are set It is standby, credit process is determined according to the application information that user submits, when executing any credit sub-process, by connecting from Redis The connection that pond obtains directly obtains related application data from Redis, avoids carrying out frequent access number when data access and subtracts according to library Light database loss and server stress, improve the high concurrent processing capacity of data, and connect by Redis connection pool management Data manipulation is connect and is carried out, the expense for frequently establishing connection when Redis is largely sent the documents is alleviated, improves access efficiency, Shorten data processing time.The application by credit approval of providing a loan links and module abstracts decouple, it is flexible to support Combination configuration, so that the data structure and striding course using innovation cache shared mechanism, so that can pass through in any link Python script realizes service logic, can effectively improve data-handling efficiency, the wasting of resources is reduced, to improve credit approval Efficiency.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects, features and advantages of the application can It is clearer and more comprehensible, below the special specific embodiment for lifting the application.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 shows a kind of flow diagram of credit method of providing a loan provided by the embodiments of the present application;
Fig. 2 shows the flow diagrams of another loan credit method provided by the embodiments of the present application;
Fig. 3 shows a kind of structural schematic diagram of credit device of providing a loan provided by the embodiments of the present application;
Fig. 4 shows the structural schematic diagram of another loan credit device provided by the embodiments of the present application.
Specific embodiment
The application is described in detail below with reference to attached drawing and in conjunction with the embodiments.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
A kind of loan credit method is provided in the present embodiment, as shown in Figure 1, this method comprises:
Step 101, python-Redis connection pool is established, and connection pool is configured by configuration file.
Specifically, the connection of python process to Redis can be managed by establishing python-Redis connection pool, and Connection pool is configured by preset configuration file, such as connection quantity can be defined in configuration file, thus The connection of preset quantity is configured, in connection pool in addition it can define the relevant parameters such as maximum latency.
Step 102, user's application information is received, is stored in Redis using user's application information as data are executed.
User is received after submitting loan intention, the application information that enterprise is got is as execution data, application information It can specifically include the identity information of user, assets information, consumption information, history lend-borrow action information etc..Redis is a kind of The distributed memory system of key-value (key-value) type, a variety of storage value types of support, including string (character string), List (chained list), set (set), zset (sorted set, ordered set) and hash (hash type) etc., storage and reading number According to rate it is all very high.Executing data is to need to be accessed frequently the data of reading or operation, will execute data and is stored in Redis In, can be obtained by directly accessing Redis in execution data without access database, accelerate data processing effect Rate.
Step 103, according to user's application information, determine credit scene corresponding with user's application information and with credit field The corresponding credit process of scape, wherein credit process includes orderly multiple credit sub-processes, and each credit sub-process passes through The definition of python script.
According to the application information of user, it can determine that corresponding credit scene, the credit scene of the embodiment of the present application are general It is determined according to the loan product number of active user's application, for example application A, B class loan product corresponds respectively to different credits Scene.Furthermore it is also possible to be determined according to other application informations, such as can be distinguished according to the age information in application information Credit scene, specific credit scene can correspond respectively to 20-30 years old, 30-40 years old, 40-50 years old and 50 years old or more, may be used also With according to nationality's data separation credit scene in application information, specific credit scene can be corresponded respectively in Chinese and non- Compatriots.Further, the corresponding credit process of credit scene is determined according to credit scene, wherein every kind of credit process is all corresponding There are multiple orderly credit sub-processes, system obtains credit as a result, a kind of typical credit by successively executing these sub-processes Process may include " obtaining decision model configuration ", " obtaining data ", " parsing data ", " executing grading ", " processing grading knot The sub-processes such as fruit ", " return to rating result ", each sub-process in the application pass through python script and define, each step stream Journey can call the python script of configuration to realize customized implementation procedure.
It should be noted that not needed in the step of determining credit scene and credit process using user's application information Frequently application information is called, there is no need to obtain user's application information from Redis, is directly obtained from database ?.
In addition, the method and fixed parameter that are executed comprising the requirements of process in the definition of each process.It is going to When the process, the method that the flow definition can be executed by reflection, and it is passed to current dynamic data, including initial request Data and before process generate data.
Such as the configuration parameter of " xx borrow return to credit result process " be " script ": " return_result_02 ", " ServiceId ": " R0002 ", " productCode ": " PD00001 " }, meaning indicates to execute return_result_02 script By the rating result processing of standard to need the format returned, including serviceId and productCode parameter.
Step 104, using user's application information, multiple credit sub-processes are successively executed, wherein appoint executing When one credit sub-process, connection is obtained from connection pool.
In the embodiment of the present application, when executing any credit sub-process, need to obtain connection from connection pool above-mentioned, then Python script startup python process corresponding with credit sub-process obtains connection from connection pool.
Step 105, execution data relevant to any credit sub-process are obtained from Redis by connecting.
For the loan credit process in the embodiment of the present application, generally require by examining the application information of user whether full Sufficient certain condition, therefore when executing some credit sub-process, need first to obtain letter of application relevant to this credit sub-process Then breath judges whether the related application data of user meets credit condition by executing credit sub-process again.It needs to illustrate It is in the embodiment of the present application, to be obtained and pending credit sub-process phase using the connection obtained from connection pool from Redis The execution data of pass.
Step 106, according to user's application information relevant to any credit sub-process, by calling and any credit subflow The corresponding python process of journey executes any credit sub-process, and is stored in Redis for implementing result as new execution data In.
According to user's application information relevant to any credit sub-process, the subflow is executed using corresponding python process Journey, wherein be configured in sub-process and relevant execution parameter.After a credit sub-process is finished, can generate and this The corresponding implementing result of a sub-process, and after execution continuous credit sub-process when, the credit sub-process before may using Implementing result this implementing result should also be saved as executing data therefore after a credit sub-process is finished It, can credit sub-process before being got in Redis so as to when executing next credit sub-process in Redis Implementing result.The embodiment of the present application caches shared mechanism by above-mentioned striding course, big when solving that python is called to service Data transfers problem.
Technical solution by applying this embodiment determines credit process according to the application information that user submits, works as execution When any credit sub-process, related application data is directly obtained from Redis by the connection obtained from Redis connection pool, is kept away Exempt to carry out frequent access number when data access to mitigate database loss and server stress according to library, improve the high concurrent of data Processing capacity, and connect and carry out data manipulation by Redis connection pool management, when alleviating Redis and largely being sent the documents The expense for frequently establishing connection, improves access efficiency, shortens data processing time.The application will provide a loan in credit approval Links and module abstracts decoupling, to support flexible combination to configure, so that the data structure and striding course using innovation cache Shared mechanism can effectively improve data processing effect so that can realize service logic by python script in any link Rate reduces the wasting of resources, to improve the efficiency of credit approval.
Further, as the refinement and extension of above-described embodiment specific embodiment, in order to completely illustrate the present embodiment Specific implementation process, provide another loan credit method, as shown in Fig. 2, this method comprises:
Step 201, python-Redis connection pool is established, and connection pool is configured by configuration file.
In the above-described embodiments, specifically, listening port is configured in connection pool.It should be noted that the application is implemented Listening port is socket port in example.
Step 202, user's application information is received, is stored in Redis using user's application information as data are executed.
In general, the application information that user submits saves in the database, adjust from database when data access With, but this method of calling efficiency is lower.Therefore, the embodiment of the present application is for the estimated user for carrying out credit approval, examination & approval Stage is stored in Redis using application information as data are executed, to can directly access when carrying out data access Redis accelerates data-handling efficiency come the execution data in obtaining.
Step 203, according to user's application information, determine credit scene corresponding with user's application information and with credit field The corresponding credit process of scape, wherein credit process includes orderly multiple credit sub-processes.
When user applies for credit, credit system receives user's application information, including subscriber identity information and other users Data etc. carries out credit decision, judges whether to credit according to the result of decision returned.Sentenced first according to some application informations It is disconnected that process should be executed.
Step 204, it is pending process by credit Process Markup, is recorded in credit process and executes in list.
Selection can be by the Process Markup at pending process after completing process, and is stored in credit process and executes list In, wait subsequent execution.
Step 205, according to prefixed time interval, scanning credit process and executing whether there is pending process in list.
Then the scheduler module of system can be such as 10 seconds according to prefixed time interval, and it is pending whether timing scan has Process, and when there are pending process, each credit sub-process is successively executed, to the last a process execution terminates.
Step 206, if credit process executes in list, there are pending processes, pass through listening port, obtain from connection pool Take connection.
In order to guarantee the safety of data transmission bauds and data transmission, one is initialized when system starting The redis connection pool process of python, and the method that will acquire connection with a network share service (BaseManager module) Publication comes out, which is obstruction when no data access, is monitored by socket port, is then being scanned It executes to credit process there are when pending process in list, the method that network share service prize obtains connection is distributed to socket Port obtains the connection in connection pool by socket port, is directly connected to redis or initialization redis company to save Connect the time in pond.
Client process is connected to the service processes by socket, proxy executing method is realized, so as to every The connection in connection pool process can be got in a new python process, it is not necessary to re-establish redis connection, significant increase Efficiency, by repeatedly testing the time-consuming less than 0.2 second of calling process.
In addition, when obtaining connection from connection pool by listening port, it is also necessary to judge to whether there is in connection pool the free time even It connects.Specific steps can be with are as follows: judges in connection pool with the presence or absence of idle connection;If it exists, then it is awarded by listening port to any Believe that the corresponding python process of sub-process distributes an idle connection;If it does not exist, then it is corresponding to control any credit sub-process Python process enters waiting list.
Specifically, when scanning into the execution list of credit process there are when pending process, that is, there is data access demand When, judge to connect with the presence or absence of free time connection if there is the free time in connection pool, is then divided by listening port to python process With an idle connection, so that it is connected Redis and the corresponding python process of credit sub-process is otherwise entered into waiting list, etc. After the release connection of the process end of run of front, then the above-mentioned corresponding python process of any credit sub-process is executed, with Guarantee the effective use of resource.
Step 207, execution data relevant to any credit sub-process are obtained from Redis by connecting.
After obtaining connection, execution data corresponding with the credit sub-process that need to be executed are obtained from Redis, for example, it is desired to When executing assets auditing flow, the assets relevant information of user is obtained from Redis.
Step 208, according to user's application information relevant to any credit sub-process, by calling and any credit subflow The corresponding python process of journey executes any credit sub-process, and is stored in Redis for implementing result as new execution data In.
After each credit sub-process is finished, all the corresponding implementing result of the process is stored in Redis, with after an action of the bowels Continuous credit sub-process can call before implementing result.In addition, should also be incited somebody to action after any credit sub-process executes The connection of acquisition is discharged.
It should be noted that first carry out is python in the embodiment of the present application in the process for calling python script Main script, main script first obtain all data from redis, further according to the python script name that incoming actual needs executes, make The python file of execution needed for import_module method dynamically load with importlib module, incoming method parameter are Accordingly result can be calculated, then result is put into redis again.Make to realize any python foot of Dynamic Execution in this way This, and nested can use, such as the dynamically load index script again during grading script execution.
Step 209, credit process is executed the pending Process Markup in list is to have executed process.
After the credit process that credit process executes in list is performed, is marked and be changed to execute process, avoided identical Credit process be repeatedly executed.
Technical solution by applying this embodiment determines credit process according to the application information that user submits, passes through Socket listening port, monitors data access request, when needing to be implemented any credit sub-process, by from Redis The connection that connection pool obtains directly obtains related application data from Redis, avoids carrying out frequent access number evidence when data access Library mitigates database loss and server stress, improves the high concurrent processing capacity of data, and pass through Redis connection pool Management connection and progress data manipulation, alleviate the expense for frequently establishing connection when Redis is largely sent the documents, improve access Efficiency shortens data processing time.The embodiment of the present application main body frame realizes that each credit sub-process node can using java To call the python script configured in database to realize business demand (such as data cleansing, numerical value calculating, format analysis processing), and And nested it can execute python script.Java calls python to start a new python process every time, avoids The multi-thread concurrent problem of python;Data transmission is using redis as transfer between java process and python process.System A python-redis connection pool can be initialized when starting, and redis connection is obtained by BaseManager module Method is registered on network, and a new python process can be acted on behalf of by BaseManager module executes this method acquisition To the connection in redis connection pool, to save the time for being directly connected to redis or initializing redis connection pool.
Further, the specific implementation as Fig. 1 method, the embodiment of the present application provide a kind of loan credit device, such as Shown in Fig. 3, which includes: that connection pool establishes module 31, information receiving module 32, process determining module 33, execution module 34, Execution module 34 specifically includes: connection acquisition unit 341, data capture unit 342, the first execution unit 343.
Connection pool establishes module 31, configures connection pool for establishing python-Redis connection pool, and by configuration file;
Information receiving module 32 is stored in for receiving user's application information using user's application information as data are executed In Redis;
Process determining module 33, for determining credit scene corresponding with user's application information according to user's application information And credit process corresponding with credit scene, wherein credit process includes orderly multiple credit sub-processes, each credit Process passes through python script and defines;
Execution module 34 successively executes multiple credit sub-processes for utilizing user's application information;
Execution module 34, specifically includes:
Connection acquisition unit 341, for obtaining connection from connection pool when executing any credit sub-process;
Data capture unit 342, for obtaining execution number relevant to any credit sub-process from Redis by connection According to;
First execution unit 343, for according to user's application information relevant to any credit sub-process, by call with Any credit sub-process of any corresponding python process execution of credit sub-process, and using implementing result as new execution data It is stored in Redis.
In specific application scenarios, as shown in figure 4, connection pool establishes module 32, specifically for configuring in connection pool Listening port.
In specific application scenarios, as shown in figure 4, execution module 34, further includes: recording unit 344, scanning element 345, the second execution unit 346, marking unit 347.
Recording unit 344 is recorded in credit process and executes in list for being pending process by credit Process Markup;
Scanning element 345, for scanning credit process and executing in list with the presence or absence of pending according to prefixed time interval Process;
Second execution unit 346, if executing in list for credit process, there are pending processes, are applied using user Information successively executes the corresponding orderly multiple credit sub-processes of credit process;
Marking unit 347, the pending Process Markup for executing credit process in list are to have executed process.
In specific application scenarios, as shown in figure 4, the device further include: monitor module 35.
When scanning in the execution list of credit process with the presence or absence of pending process, credit process is monitored by listening port and is held The scanning result of row-column list;
Connection acquisition unit 341 is specifically used for obtaining and connecting from connection pool by listening port.
Connection acquisition unit 341 is specifically also used to judge in connection pool with the presence or absence of idle connection;
If it exists, then a free time is distributed even to the corresponding python process of any credit sub-process by listening port It connects;
If it does not exist, then it controls the corresponding python process of any credit sub-process and enters waiting list.
It should be noted that other of each functional unit involved by a kind of loan credit device provided by the embodiments of the present application Corresponding description, can be with reference to the corresponding description in Fig. 1 and Fig. 2, and details are not described herein.
Based on above-mentioned method as depicted in figs. 1 and 2, correspondingly, the embodiment of the present application also provides a kind of storage medium, On be stored with computer program, which realizes above-mentioned loan credit method as depicted in figs. 1 and 2 when being executed by processor.
Based on this understanding, the technical solution of the application can be embodied in the form of software products, which produces Product can store in a non-volatile memory medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions With so that computer equipment (can be personal computer, server or the network equipment an etc.) execution the application is each Method described in implement scene.
Based on above-mentioned method as shown in Figure 1 and Figure 2 and Fig. 3, virtual bench embodiment shown in Fig. 4, in order to realize Above-mentioned purpose, the embodiment of the present application also provides a kind of computer equipments, are specifically as follows personal computer, server, network Equipment etc., the computer equipment include storage medium and processor;Storage medium, for storing computer program;Processor is used In execution computer program to realize above-mentioned loan credit method as depicted in figs. 1 and 2.
Optionally, which can also include user interface, network interface, camera, radio frequency (Radio Frequency, RF) circuit, sensor, voicefrequency circuit, WI-FI module etc..User interface may include display screen (Display), input unit such as keyboard (Keyboard) etc., optional user interface can also connect including USB interface, card reader Mouthful etc..Network interface optionally may include standard wireline interface and wireless interface (such as blue tooth interface, WI-FI interface).
It will be understood by those skilled in the art that a kind of computer equipment structure provided in this embodiment is not constituted to the meter The restriction for calculating machine equipment, may include more or fewer components, perhaps combine certain components or different component layouts.
It can also include operating system, network communication module in storage medium.Operating system is management and preservation computer The program of device hardware and software resource supports the operation of message handling program and other softwares and/or program.Network communication Module is for realizing the communication between each component in storage medium inside, and between other hardware and softwares in the entity device Communication.
Through the above description of the embodiments, those skilled in the art can be understood that the application can borrow Help software that the mode of necessary general hardware platform is added to realize, the letter of application that can also be submitted by hardware realization according to user It ceases and determines credit process, when executing any credit sub-process, by the connection that is obtained from Redis connection pool directly from Redis Middle acquisition related application data avoids carrying out frequent access number when data access and mitigates database loss and server pressure according to library Power improves the high concurrent processing capacity of data, and connects and carry out data manipulation by Redis connection pool management, subtracts Light Redis frequently establishes the expense of connection when largely being sent the documents, improve access efficiency, shorten data processing time.This Application by provide a loan credit approval in links and module abstracts decouple, to support flexible combination to configure, thus using innovation Data structure and striding course cache shared mechanism so that any link can by python script realize business patrol Volume, data-handling efficiency can be effectively improved, the wasting of resources is reduced, to improve the efficiency of credit approval.
It will be appreciated by those skilled in the art that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, module in attached drawing or Process is not necessarily implemented necessary to the application.It will be appreciated by those skilled in the art that the mould in device in implement scene Block can according to implement scene describe be distributed in the device of implement scene, can also carry out corresponding change be located at be different from In one or more devices of this implement scene.The module of above-mentioned implement scene can be merged into a module, can also be into one Step splits into multiple submodule.
Above-mentioned the application serial number is for illustration only, does not represent the superiority and inferiority of implement scene.Disclosed above is only the application Several specific implementation scenes, still, the application is not limited to this, and the changes that any person skilled in the art can think of is all The protection scope of the application should be fallen into.

Claims (10)

1. a kind of loan credit method characterized by comprising
Python-Redis connection pool is established, and the connection pool is configured by configuration file;
User's application information is received, is stored in Redis using user's application information as data are executed;
According to user's application information, determine credit scene corresponding with user's application information and with the credit field The corresponding credit process of scape, wherein the credit process includes orderly multiple credit sub-processes, each credit sub-process Defined by python script;
Using user's application information, multiple credit sub-processes are successively executed, wherein executing any credit When process, connection is obtained from the connection pool;
The execution data relevant to any credit sub-process are obtained from the Redis by the connection;
According to user's application information relevant to any credit sub-process, passes through and call and any credit subflow The corresponding python process of journey executes any credit sub-process, and is stored in institute for implementing result as new execution data It states in Redis.
2. the method according to claim 1, wherein described configure the connection pool by configuration file, specifically Include:
Listening port is configured in the connection pool.
3. according to the method described in claim 2, successively execution is more it is characterized in that, described utilize user's application information A credit sub-process, specifically includes:
It is pending process by the credit Process Markup, is recorded in credit process and executes in list;
According to prefixed time interval, scans the credit process and execute in list with the presence or absence of the pending process;
If the credit process executes in list, there are the pending processes, utilize user's application information, successively hold The corresponding orderly multiple credit sub-processes of the row credit process;
It is to have executed process that the credit process, which is executed the pending Process Markup in list,.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
When scanning in the credit process execution list with the presence or absence of the pending process, passes through the listening port and monitor institute State the scanning result that credit process executes list;
If the credit process executes in list, there are the pending processes, described that connection is obtained from the connection pool, It specifically includes:
By the listening port, obtains and connect from the connection pool.
5. according to the method described in claim 4, being obtained from the connection pool it is characterized in that, described by the listening port Connection is taken, is specifically included:
Judge in the connection pool with the presence or absence of idle connection;
If it exists, then a free time is distributed to the corresponding python process of any credit sub-process by the listening port Connection;
If it does not exist, then it controls the corresponding python process of any credit sub-process and enters waiting list.
6. a kind of loan credit device characterized by comprising
Connection pool establishes module, configures the connection pool for establishing Redis connection pool, and by configuration file;
Information receiving module is stored in for receiving user's application information using user's application information as data are executed In Redis;
Process determining module, for determining credit field corresponding with user's application information according to user's application information Scape and credit process corresponding with the credit scene, wherein the credit process includes orderly multiple credit sub-processes, Each credit sub-process passes through python script and defines;
Execution module successively executes multiple credit sub-processes for utilizing user's application information;
The execution module, specifically includes:
Connection acquisition unit, for obtaining connection from the connection pool when executing any credit sub-process;
Data capture unit, it is relevant to any credit sub-process for being obtained from the Redis by the connection The execution data;
First execution unit, for passing through calling according to user's application information relevant to any credit sub-process Python process corresponding with any credit sub-process executes any credit sub-process, and using implementing result as newly Execution data be stored in the Redis.
7. device according to claim 6, which is characterized in that the connection pool establishes module, is specifically used in the company It connects and configures listening port in pond.
8. device according to claim 7, which is characterized in that the execution module, further includes:
Recording unit is recorded in credit process and executes in list for being pending process by the credit Process Markup;
Scanning element, for scanning the credit process and executing in list with the presence or absence of described wait hold according to prefixed time interval Row process;
Second execution unit, if executing in list for the credit process, there are the pending processes, utilize the use Family application information successively executes the corresponding orderly multiple credit sub-processes of the credit process;
Marking unit, the pending Process Markup for executing the credit process in list are to have executed process.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that realization when described program is executed by processor Loan credit method described in any one of claims 1 to 5.
10. a kind of computer equipment, including storage medium, processor and storage can be run on a storage medium and on a processor Computer program, which is characterized in that the processor is realized described in any one of claims 1 to 5 when executing described program Loan credit method.
CN201910156797.7A 2019-03-01 2019-03-01 Loan credit method and device, storage medium, computer equipment Pending CN110009478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910156797.7A CN110009478A (en) 2019-03-01 2019-03-01 Loan credit method and device, storage medium, computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910156797.7A CN110009478A (en) 2019-03-01 2019-03-01 Loan credit method and device, storage medium, computer equipment

Publications (1)

Publication Number Publication Date
CN110009478A true CN110009478A (en) 2019-07-12

Family

ID=67166198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910156797.7A Pending CN110009478A (en) 2019-03-01 2019-03-01 Loan credit method and device, storage medium, computer equipment

Country Status (1)

Country Link
CN (1) CN110009478A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111178994A (en) * 2019-12-27 2020-05-19 江苏苏州农村商业银行股份有限公司 Electronic bank note full-process automatic intelligent wind-control cashing system and cashing method
CN112801771A (en) * 2021-01-08 2021-05-14 深圳乐信软件技术有限公司 Credit processing method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7792742B1 (en) * 1999-08-27 2010-09-07 Federal Home Loan Mortgage Corporation Risk-based reference pool capital reducing systems and methods
CN105808638A (en) * 2016-02-23 2016-07-27 平安科技(深圳)有限公司 Data processing method and system
CN107330670A (en) * 2017-06-29 2017-11-07 喀什博雅成信网络科技有限公司 One kind automation loan approval system and method
CN107909461A (en) * 2017-09-27 2018-04-13 上海维信荟智金融科技有限公司 Credit data unify method of calibration and system
CN108346029A (en) * 2017-01-23 2018-07-31 纬创软件(北京)有限公司 A kind of customization credit system of support credit factory mode

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7792742B1 (en) * 1999-08-27 2010-09-07 Federal Home Loan Mortgage Corporation Risk-based reference pool capital reducing systems and methods
CN105808638A (en) * 2016-02-23 2016-07-27 平安科技(深圳)有限公司 Data processing method and system
CN108346029A (en) * 2017-01-23 2018-07-31 纬创软件(北京)有限公司 A kind of customization credit system of support credit factory mode
CN107330670A (en) * 2017-06-29 2017-11-07 喀什博雅成信网络科技有限公司 One kind automation loan approval system and method
CN107909461A (en) * 2017-09-27 2018-04-13 上海维信荟智金融科技有限公司 Credit data unify method of calibration and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111178994A (en) * 2019-12-27 2020-05-19 江苏苏州农村商业银行股份有限公司 Electronic bank note full-process automatic intelligent wind-control cashing system and cashing method
CN111178994B (en) * 2019-12-27 2024-01-09 江苏苏州农村商业银行股份有限公司 Electronic silver ticket full-flow automatic intelligent wind control cash registering system and cash registering method
CN112801771A (en) * 2021-01-08 2021-05-14 深圳乐信软件技术有限公司 Credit processing method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US10757044B2 (en) Chatbot system
CN108197176A (en) Core bank data processing method and its system based on distributed type assemblies framework
WO2020088075A1 (en) Method and apparatus for determining payment channel
US10846096B1 (en) Batch processing of requests for trained machine learning model
US20190324805A1 (en) Method, apparatus and computer program product for resource scheduling
CN111061463A (en) Micro-service combination application method and device, computer equipment and storage medium
CN110009478A (en) Loan credit method and device, storage medium, computer equipment
CN112767135B (en) Configuration method and device of rule engine, storage medium and computer equipment
CN110728455A (en) Service processing method, service processing device, storage medium and electronic equipment
CN111047425A (en) Behavior prediction method and device
US20180032880A1 (en) Using Learned Application Flow to Predict Outcomes and Identify Trouble Spots in Network Business Transactions
CN115543269A (en) System and method for solving micro-service external dependency complexity through arrangement mode
CN110717992B (en) Method, apparatus, computer system and readable storage medium for scheduling model
US9459764B1 (en) System, method, and computer program for selecting at least one predefined workflow based on an interaction with a user
CN110351345A (en) Method and device for service request processing
CN112732547B (en) Service testing method and device, storage medium and electronic equipment
CN112541767B (en) Face brushing payment method and device, face brushing equipment and server
CN114327443A (en) Data processing method, system, terminal device and storage medium
CN111598539B (en) CICS online program service processing method and system based on service modeling
CN115061911A (en) Fuzzy test method and device for self-adaptive sensing coverage measurement feedback
US20140156334A1 (en) Setting constraints in project portfolio optimization
WO2021051920A1 (en) Model optimization method and apparatus, storage medium, and device
CN113419957A (en) Rule-based big data offline batch processing performance capacity scanning method and device
CN113778642B (en) Scheduling method and device for network service, intelligent terminal and storage medium
US20230420092A1 (en) Healthcare delivery economics prediction

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190712