CN115623082A - Financial service calling method, system, electronic equipment and storage medium - Google Patents

Financial service calling method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN115623082A
CN115623082A CN202211131320.1A CN202211131320A CN115623082A CN 115623082 A CN115623082 A CN 115623082A CN 202211131320 A CN202211131320 A CN 202211131320A CN 115623082 A CN115623082 A CN 115623082A
Authority
CN
China
Prior art keywords
service
target
service provider
financial service
financial
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
CN202211131320.1A
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.)
Beijing Xinda Financial Education Technology Co ltd
Original Assignee
Beijing Xinda Financial Education Technology Co 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 Beijing Xinda Financial Education Technology Co ltd filed Critical Beijing Xinda Financial Education Technology Co ltd
Priority to CN202211131320.1A priority Critical patent/CN115623082A/en
Publication of CN115623082A publication Critical patent/CN115623082A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a financial service calling method, a system, electronic equipment and a storage medium, wherein the financial service calling method is applied to a service consumer, and comprises the following steps: sending a target financial service subscription request to a registry; acquiring a target service provider list returned by the registry based on the target financial service subscription request; determining a target service provider from the target service provider list according to a preset load balancing strategy; sending a call request of the target financial service to the target service provider for the target service provider to provide the target financial service to the service consumer based on the call request. The application solves the technical problem that the processing efficiency of financial services in the prior art is low.

Description

Financial service calling method, system, electronic equipment and storage medium
Technical Field
The present application relates to the field of financial technologies, and in particular, to a method, a system, an electronic device, and a storage medium for invoking a financial service.
Background
From the view of the domestic financial market environment, the gradual release of the financial capital market and interest rate structure, the new Barcel agreement, the implementation of new accounting criteria, the competition of the same industry of banks and the new requirements of the difference of customers can promote the rapid development of the China banking industry and gradually realize the rail connection with the international financial market. With the change of banking industry market and supervision environment, competitive entities in the financial industry will increase continuously, operating and management risks will increase continuously, but profit margins will decrease, so that market competition between banks and the same industry and between non-banking financial institutions is increased, and in the face of competitive pressure from the financial market, customers will increasingly demand financial services that banks can provide.
Disclosure of Invention
The application mainly aims to provide a financial service calling method, a financial service calling system, electronic equipment and a storage medium, and aims to solve the technical problem that in the prior art, the financial service processing efficiency is low.
In order to achieve the above object, the present application provides a financial service calling method, which is applied to a service consumer, and includes:
sending a target financial service subscription request to a registry;
acquiring a target service provider list returned by the registry based on the target financial service subscription request;
determining a target service provider from the target service provider list according to a preset load balancing strategy;
sending a call request of the target financial service to the target service provider for the target service provider to provide the target financial service to the service consumer based on the call request.
Optionally, after the step of sending the call request of the target financial service to the target service provider, the method further includes:
if service calling failure information returned based on the calling request is received, generating and displaying a calling failure record;
or recording failure times, and returning to the execution step: determining a target service provider from the target service provider list according to a preset load balancing strategy until the failure times reach preset times, and generating and displaying a call failure record;
or generating a call failure record, and writing the call failure record into an exception log;
or generating a call failure record, writing the call failure record into an abnormal log, starting timing, and returning to the execution step when the timing reaches the preset time: sending a call request for the target financial service to the target service provider.
Optionally, the step of determining a target service provider from the target service provider list according to a preset load balancing policy includes:
determining a value interval corresponding to each first service provider according to a weight value corresponding to each first service provider in the service provider list, generating a random value, and determining a target service provider according to the value interval to which the random value belongs;
or, according to the respective corresponding weight values of the first service providers in the service provider list, sequentially performing round robin on the first service providers to determine target service providers;
or determining a target service provider from each first service provider according to the active number corresponding to each first service provider in the service provider list.
Further, the present application provides a financial service calling method, where the financial service calling method is applied to a service provider, and the financial service calling method includes:
sending registration information to a registration center, wherein the registration information comprises target financial service information corresponding to the service provider, so that the registration center lists the service provider into a target service provider list corresponding to the target financial service according to the registration information;
providing the target financial service to the service consumer when receiving a call request of the target financial service sent by the service consumer.
Optionally, the step of providing the target financial service to the service consumer comprises:
locking business resources corresponding to the target financial service;
providing the target financial service to the service consumer;
and when the target financial service is determined to be called, unlocking business resources corresponding to the target financial service.
Optionally, after the step of providing the target financial service to the service consumer, the method further includes:
generating financial service data corresponding to the target financial service;
and writing the financial service data into a corresponding distributed database and/or a corresponding distributed cache memory.
The present application further provides a financial service invocation system, said financial service invocation system comprising a registry, at least one service consumer, and at least one service provider, wherein,
the registration center is used for acquiring registration information from each service provider, wherein the registration information comprises target financial services corresponding to each service provider, and each service provider is listed in a target service provider list corresponding to each target financial service according to each registration information;
the registry is further used for receiving target financial service subscription requests sent by the service consumers and returning a corresponding target service provider list according to the target financial service subscription requests;
the service consumer is used for sending a target financial service subscription request to a registry, acquiring a target service provider list returned by the registry based on the target financial service subscription request, determining a target service provider from the target service provider list according to a preset load balancing strategy, and sending a call request of the target financial service to the target service provider so that the target service provider provides the target financial service to the service consumer based on the call request;
the service provider is used for sending a registration request to a registration center, wherein the registration request comprises target financial service information corresponding to the service provider, so that the registration center lists the service provider in a target service provider list corresponding to the target financial service according to the registration request, and when a call request of the target financial service sent by a service consumer is received, the service consumer is provided with the target financial service.
Optionally, the financial service invocation system further comprises at least one distributed database and at least one distributed cache memory,
the distributed database is used for storing financial service data corresponding to each financial service;
the distributed cache memory is used for caching financial service data corresponding to each financial service.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: a memory, a processor and a program of the financial service call method stored on the memory and executable on the processor, the program of the financial service call method when executed by the processor implementing the steps of the financial service call method as described above.
The present application also provides a storage medium which is a computer-readable storage medium having a program for implementing a financial service calling method stored thereon, where the program for implementing the financial service calling method, when executed by a processor, implements the steps of the financial service calling method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the financial service invocation method as described above.
The application provides a financial service calling method, a system, electronic equipment and a storage medium, wherein a service consumer sends a target financial service subscription request to a registry, acquires a target service provider list returned by the registry based on the target financial service subscription request, determines a target service provider list consisting of target service providers capable of providing target financial services, further determines a target service provider from the target service provider list according to a preset load balancing strategy, realizes automatic selection of the target service provider, and further sends a calling request of the target financial services to the target service provider, so that the target service provider provides the target financial services to the service consumer based on the calling request, and accurate and automatic calling of the target financial services is realized. Compared with a mode of artificially selecting a target financial service from a plurality of financial services under the guidance of a display interface, the method and the system can accurately and quickly determine the target service provider through the target service provider list provided by the registration center, further actively and spontaneously send the call request to the target service provider, can effectively balance the load pressure of each service provider through the load balancing strategy, and effectively increase the success rate of financial service call and the processing efficiency of the financial services.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a flowchart illustrating an embodiment of a financial service invocation method of the present application;
FIG. 2 is a schematic flow chart diagram illustrating another embodiment of a financial service invocation method of the present application;
FIG. 3 is a schematic view of a financial services invocation system of the present application;
fig. 4 is a schematic structural diagram of an electronic device in a hardware operating environment related to a financial service invoking method in an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention.
All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments.
All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In a first embodiment of the financial service calling method of the present application, referring to fig. 1, the financial service calling method includes:
step S10, sending a target financial service subscription request to a registry;
step S20, obtaining a target service provider list returned by the registry based on the target financial service subscription request;
in this embodiment, it should be noted that the financial service refers to an activity that a financial institution uses a currency transaction means to integrate valuable articles, and provides a financial activity participant and a customer with a joint benefit and a satisfied activity, and the financial service depends on a financial service technology platform, and when the customer transacts various businesses in the financial institution, a financial institution practitioner performs related operations of business transaction through the financial service technology platform, invokes related financial services, and completes business transaction work.
The financial service technology platform can abstract three different roles of a service provider, a service consumer and a registration center from an operation mechanism, wherein the service provider is a service provider for exposing services, usually, one service has a plurality of service providers and is distributed on different operation instances, the service consumer is a service consumer for calling the services, the registration center is a bridge for connecting the service provider and the service consumer and is used for providing the service consumer with relevant information of the service provider, and the service consumer can timely sense various changes of the service provider through the registration center. It is easy to understand that the service provider and the service consumer herein are only a logical concept, that is, for a specific instance of the running state, there are corresponding service provider and service consumer, but some service providers with a larger granularity may be service consumers of finer granularity services, for example, for instance 1,A, B is a service provider, and for the service provided by B, instance 2 may need to invoke other services, where B is a service consumer and C is a service provider.
In this embodiment, specifically, a target financial service subscription request is sent to a registry, and a target service provider list returned by the registry based on the financial service subscription request is obtained, where the target service provider list is a list composed of at least one first service provider capable of providing the target financial service, the first service provider is a service provider capable of providing the target financial service registered in the registry, for example, service provider P1 registers available service S1 in the registry, service provider P2 registers available service S1 in the registry, service provider P3 registers available service S2 in the registry, and when service consumer C1 sends a subscription request of service S1 to the registry, the target service provider list composed of P1 and P2 may be obtained from the registry.
In an implementation manner, the service consumer may send a target financial service subscription request to the registry at startup, may send a target financial service subscription request to the registry when detecting operation information related to financial service invocation, and may send a target financial service subscription request to the registry when detecting a change in a target service provider list stored in the service consumer.
Step S30, determining a target service provider from the target service provider list according to a preset load balancing strategy;
in this embodiment, specifically, a target service provider for executing the financial service invocation task is selected from each of the first service providers in the target service provider list according to a preset load balancing policy, where the load balancing policy is an allocation method for allocating a task to a plurality of operation units for execution, so as to expand the bandwidth of a network device and a server, increase throughput, enhance network data processing capability, and improve flexibility and availability of a network, and the load balancing policy may include a random allocation policy, a polling allocation policy, a minimum active invocation number allocation policy, and/or a consistent hash allocation policy.
Optionally, the step of determining a target service provider from the target service provider list according to a preset load balancing policy includes:
step S31, determining a value interval corresponding to each first service provider according to a weight value corresponding to each first service provider in the service provider list, generating a random value, and determining a target service provider according to the value interval to which the random value belongs;
in this embodiment, specifically, the weighted values corresponding to each first service provider in the service provider list may be obtained, a preset value range is divided according to the weighted value corresponding to each first service provider, a value interval corresponding to each first service provider is obtained, so that the proportion of the value interval corresponding to each first service provider in the value range is equal to the weighted value of the first service provider, a random value is generated each time a load balancing policy is executed, the value interval to which the random value belongs is determined, and the first service provider corresponding to the value interval of the random value, the service provider is determined as the target service provider, for example, the weight value corresponding to the service provider P1 is 0.5, the weight value corresponding to the service provider P2 is 0.2, the weight value corresponding to the service provider P3 is 0.3, the numerical range is greater than 0 and less than or equal to 100, the numerical range corresponding to P1 may be greater than 0 and less than or equal to 50, the numerical range corresponding to P2 may be greater than 50 and less than or equal to 70, the numerical range corresponding to P3 may be greater than 70 and less than or equal to 100, when the generated random value is 42, P1 is determined as the target service provider because 42 belongs to the numerical range corresponding to P1, and when the generated random value is 99, P3 is determined as the target service provider because 99 belongs to the numerical range corresponding to P3. The load balancing method is combined with the weight and the random distribution, and the load distribution is more uniform along with the increase of the calling quantity.
It is easy to understand that, the method for dividing the preset value range according to the weight value corresponding to each of the first service providers may be dividing from small to large, or dividing from large to small, or randomly allocating intermittent intervals, as long as the ratio of the divided value range corresponding to each service provider to the value range is equal to the weight value of the service provider itself, and the specific allocation method is not limited in this embodiment.
Step S32, or, according to the respective corresponding weight values of the first service providers in the service provider list, sequentially performing round robin on the first service providers to determine target service providers;
in this embodiment, specifically, or alternatively, the weighted value corresponding to each first service provider in the service provider list may be obtained, when the load balancing policy is executed each time, round-robin is performed on each first service provider in sequence, and the count is accumulated, when the count is less than or equal to a preset first count threshold corresponding to the first service provider, the first service provider is taken as the target service provider, when the count is greater than the preset first count threshold corresponding to the first service provider, but is less than or equal to a preset second count threshold corresponding to the second first service provider, the second first service provider is taken as the target service provider, until the count is greater than the count threshold corresponding to the last first service provider, restarting counting, and restarting a new round-robin process, for example, if the weight value corresponding to the service provider P1 is 0.5, the weight value corresponding to the service provider P2 is 0.2, the weight value corresponding to the service provider P3 is 0.3, the round-robin order is P1, P2, and P3, and the preset count threshold is 10, then it is determined that the count threshold corresponding to P1 is 5, the count threshold corresponding to P2 is 7, and the count threshold corresponding to P3 is 10, when the round-robin is performed for the 1 st time, the count is 1, then P1 is taken as the target service provider, when the round-robin is performed for the 7 th time, the count is 7, then P2 is taken as the target service provider, when the round-robin is performed for the 11 th time, the count 11 is greater than the count threshold 10 corresponding to P3, then the count is restarted, the count of the round-robin for the 11 th time is determined as 1, and then P1 is taken as the target service provider.
Step S33, or determining a target service provider from each of the primary service providers according to the respective corresponding active numbers of each of the primary service providers in the service provider list.
In this embodiment, specifically, or alternatively, the active number corresponding to each first service provider in the service provider list may be obtained, the size of the active number of each first service provider is compared, and the first service provider with the smallest active number is determined as the target service provider. In one embodiment, if there is more than one primary service provider with the minimum number of active, one of the primary service providers is randomly selected as the target service provider.
Step S40, sending a calling request of the target financial service to the target service provider so that the target service provider provides the target financial service to the service consumer based on the calling request.
In this embodiment, specifically, or alternatively, a call request of the target financial service may be sent to the target service provider, so that the target service provider provides the target financial service to the service consumer based on the call request.
Optionally, after the step of sending the call request of the target financial service to the target service provider, the method further includes:
step A10, if service call failure information returned based on the call request is received, generating and displaying a call failure record;
in this embodiment, specifically, after the step of sending the call request of the target financial service to the target service provider, if service call failure information returned by the target service provider based on the call request is received, a call failure record may be generated and displayed, so that the service consumer may execute subsequent operations according to the displayed call failure record.
Step a20, or, recording the failure times, and returning to execute the steps of: determining a target service provider from the target service provider list according to a preset load balancing strategy until the failure times reach preset times, and generating and displaying a call failure record;
in this embodiment, specifically, after the step of sending the call request of the target financial service to the target service provider, if service call failure information returned by the target service provider based on the call request is received, the number of failures may be recorded, and the step of: and determining a target service provider from the target service provider list according to a preset load balancing strategy, so as to re-determine a new target service provider from the target service provider list until the failure times reach preset times, and generating and displaying a call failure record so that a service consumer executes subsequent operations according to the displayed call failure record, for example, the preset times can be 2, and when the call fails for 2 times, generating and displaying the call failure record. It is to be understood that, when a new target service provider is re-determined from the target service provider list, a new target service provider may be determined from other primary service providers, except for the target service provider that fails to be invoked, in the target service provider list, or a new target service provider may be determined from all primary service providers in the target service provider list, which is not limited in this embodiment.
Step A30, or generating a call failure record and writing the call failure record into an abnormal log;
in this embodiment, specifically, after the step of sending the call request of the target financial service to the target service provider, if service call failure information returned by the target service provider based on the call request is received, a call failure record may be generated, and the call failure record may be written in an exception log.
Step A40, or generating a call failure record, writing the call failure record into an abnormal log, starting timing, and returning to the execution step when the timing reaches a preset time: sending a call request for the target financial service to the target service provider.
In this embodiment, specifically, after the step of sending the call request of the target financial service to the target service provider, if service call failure information returned by the target service provider based on the call request is received, a call failure record may be generated, the call failure record is written into an exception log, timing is started, and when the timing reaches a preset time, the execution step is returned: sending the call request of the target financial service to the target service provider to resend the call request of the target financial service sent to the target service provider. For the financial service of the information transmission type, when the calling fails, which may be caused by network failure and the like, the transmission can be retried after a preset time without manual intervention.
In this embodiment, the service consumer sends a target financial service subscription request to a registry, obtains a target service provider list returned by the registry based on the target financial service subscription request, determines a target service provider list composed of target service providers capable of providing target financial services, further determines a target service provider from the target service provider list according to a preset load balancing policy, so as to implement automatic selection of a target service provider, and further sends a call request of the target financial service to the target service provider, so that the target service provider provides the target financial service to the service consumer based on the call request, thereby implementing accurate and automatic call of the target financial service. Compared with a mode of artificially selecting a target financial service from a plurality of financial services under the guidance of a display interface, the method and the system can accurately and quickly determine the target service provider through the target service provider list provided by the registration center, further actively and spontaneously send the call request to the target service provider, can effectively balance the load pressure of each service provider through the load balancing strategy, and effectively increase the success rate of financial service call and the processing efficiency of the financial services.
Further, in another embodiment of the financial service invoking method of the present application, referring to fig. 2, the financial service invoking method is applied to a service provider, and this embodiment may also be combined with the foregoing embodiment to form a new embodiment, and the same or similar contents to the foregoing embodiment in this embodiment may refer to the foregoing description, and are not repeated in the following, on this basis, the financial service invoking method is applied to a service provider, and includes the following steps:
step S100, sending registration information to a registration center, wherein the registration information comprises target financial service information corresponding to the service provider, so that the registration center lists the service provider into a target service provider list corresponding to the target financial service according to the registration information;
in this embodiment, specifically, registration information is sent to a registry, where the registration information includes target financial service information corresponding to the service provider, so that the registry lists the service provider in a target service provider list corresponding to the target financial service according to the registration information, and a registration process of registering the service provider corresponding to the target financial service in the registry is implemented.
In an implementation manner, the service consumer may send the registration information to the registry at startup, or send the registration information to the registry when detecting operation information related to acquisition of the registration information, or send new registration information including the changed target financial service information to the registry when determining that the target financial service information in the registration information is changed, so as to update the target financial service corresponding to the service consumer in the registry.
And step S200, when receiving the calling request of the target financial service sent by the service consumer, providing the target financial service for the service consumer.
In this embodiment, specifically, when receiving a call request of the target financial service sent by a service consumer, the service consumer is provided with the target financial service.
Optionally, the step of providing the target financial service to the service consumer comprises:
step S210, locking the business resources corresponding to the target financial service;
step S220, providing the target financial service to the service consumer;
step S230, when it is determined that the target financial service is invoked, unlocking a business resource corresponding to the target financial service.
In this embodiment, specifically, when a call request of the target financial service sent by a service consumer is received, a business resource corresponding to the target financial service is locked to suspend other service consumers except the service consumer from using the business resource corresponding to the target financial service, the target financial service is provided to the service consumer, and when it is determined that the call of the target financial service is ended, the business resource corresponding to the target financial service is unlocked, so that the business resource corresponding to the target financial service is opened and used again for each service consumer. By means of locking the service resources, the service consumer can be effectively ensured to improve the service orderliness, and various data errors in the system are effectively avoided.
Optionally, after the step of providing the target financial service to the service consumer, the method further includes:
step S300, generating financial service data corresponding to the target financial service;
and step S400, writing the financial service data into a corresponding distributed database and/or a corresponding distributed cache memory.
In this embodiment, specifically, after the step of providing the target financial service to the service consumer, when it is detected that the target financial service call is completed, financial service data corresponding to the target financial service is generated, and the financial service data is written into a corresponding distributed database and/or a corresponding distributed cache memory.
In this embodiment, the service provider registers the target financial service that can be provided in the registration center by sending registration information to the registration center, so that the service consumer can find the service provider in time and initiate a call request to the service provider, because the target service provider list in the registration center is determined based on the target financial service registered by the service provider, when the service consumer sends the call request to the service provider, it is equivalent to have previously confirmed that the service provider can provide the target financial service, that is, a process of whether the service required by the service consumer matches the service that can be provided by the service provider is advanced, and thus processes of repeated inquiry and matching in the service call process can be effectively reduced, the processing efficiency of the financial service is improved, and the technical problem of low processing efficiency of the financial service in the prior art is overcome.
Further, referring to fig. 3, the present embodiment also provides a financial service invocation system, which includes a registry 10, at least one service consumer 20 and at least one service provider 30, wherein,
the registration center 10 is configured to obtain registration information from each service provider, where the registration information includes a target financial service corresponding to each service provider, and list each service provider in a target service provider list corresponding to each target financial service according to each registration information;
the registry 10 is further configured to receive target financial service subscription requests sent by the service consumers, and return a corresponding target service provider list according to each target financial service subscription request;
the service consumer 20 is configured to send a target financial service subscription request to a registry, obtain a target service provider list returned by the registry based on the target financial service subscription request, determine a target service provider from the target service provider list according to a preset load balancing policy, and send a call request of the target financial service to the target service provider, so that the target service provider provides the target financial service to the service consumer based on the call request;
the service provider 30 is configured to send registration information to a registration center, where the registration information includes target financial service information corresponding to the service provider, so that the registration center lists the service provider in a target service provider list corresponding to the target financial service according to the registration information, and when a call request of the target financial service sent by a service consumer is received, provides the target financial service to the service consumer.
Optionally, the service consumer 20 is further configured to:
if service calling failure information returned based on the calling request is received, generating and displaying a calling failure record;
or recording the failure times, and returning to the execution step: determining a target service provider from the target service provider list according to a preset load balancing strategy until the failure times reach preset times, and generating and displaying a call failure record;
or generating a call failure record, and writing the call failure record into an abnormal log;
or generating a call failure record, writing the call failure record into an abnormal log, starting timing, and returning to the execution step when the timing reaches the preset time: sending a call request for the target financial service to the target service provider.
Optionally, the service consumer 20 is further configured to:
determining a value interval corresponding to each first service provider according to a weight value corresponding to each first service provider in the service provider list, generating a random value, and determining a target service provider according to the value interval to which the random value belongs;
or, according to the respective corresponding weight values of the first service providers in the service provider list, sequentially performing round robin on the first service providers to determine target service providers;
or determining a target service provider from each first service provider according to the active number corresponding to each first service provider in the service provider list.
Optionally, the service provider 30 is further configured to:
locking the business resources corresponding to the target financial service;
providing the targeted financial service to the service consumer;
and when the target financial service is determined to be called, unlocking business resources corresponding to the target financial service.
Optionally, the service provider 30 is further configured to:
generating financial service data corresponding to the target financial service;
and writing the financial service data into a corresponding distributed database and/or a corresponding distributed cache memory.
Optionally, the financial service invocation system further comprises at least one distributed database and at least one distributed cache memory,
the distributed database is used for storing financial service data corresponding to each financial service;
the distributed cache memory is used for caching financial service data corresponding to each financial service.
The financial service calling system provided by the invention adopts the financial service calling method in the embodiment, and solves the technical problem of low processing efficiency of financial services in the prior art. Compared with the prior art, the financial service calling system provided by the embodiment of the invention has the same beneficial effects as the financial service calling method provided by the embodiment, and other technical characteristics in the financial service calling system are the same as those disclosed by the embodiment method, which are not repeated herein.
Further, an embodiment of the present invention provides an electronic device, where the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the financial service invocation method of the above embodiments.
Referring now to FIG. 4, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic equipment provided by the invention adopts the financial service calling method in the embodiment, and solves the technical problem of low processing efficiency of financial services in the prior art. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the invention are the same as the beneficial effects of the financial service calling method provided by the embodiment, and other technical features of the electronic device are the same as those disclosed by the embodiment method, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Further, the present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for executing the financial service calling method in the above-described embodiment.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: sending a target financial service subscription request to a registry; acquiring a target service provider list returned by the registry based on the target financial service subscription request; determining a target service provider from the target service provider list according to a preset load balancing strategy; sending a call request of the target financial service to the target service provider for the target service provider to provide the target financial service to the service consumer based on the call request.
Alternatively, the computer-readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: sending registration information to a registration center, wherein the registration information comprises target financial service information corresponding to the service provider, so that the registration center lists the service provider into a target service provider list corresponding to the target financial service according to the registration information; providing the target financial service to the service consumer when receiving a call request of the target financial service sent by the service consumer.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the invention stores the computer-readable program instructions for executing the financial service calling method, and solves the technical problem of low processing efficiency of the financial service in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the invention are the same as the beneficial effects of the financial service calling method provided by the embodiment, and are not repeated herein.
Further, the present application also provides a computer program product comprising a computer program which, when being executed by a processor, realizes the steps of the financial service calling method as described above.
The computer program product provided by the application solves the technical problem that the financial service processing efficiency is low in the prior art. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the invention are the same as the beneficial effects of the financial service calling method provided by the embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A financial service calling method applied to a service consumer, the financial service calling method comprising:
sending a target financial service subscription request to a registry;
acquiring a target service provider list returned by the registry based on the target financial service subscription request;
determining a target service provider from the target service provider list according to a preset load balancing strategy;
sending a call request of the target financial service to the target service provider for the target service provider to provide the target financial service to the service consumer based on the call request.
2. The financial service invocation method according to claim 1, wherein said step of sending the invocation request for the target financial service to the target service provider is followed by further steps of:
if service calling failure information returned based on the calling request is received, generating and displaying a calling failure record;
or recording the failure times, and returning to the execution step: determining a target service provider from the target service provider list according to a preset load balancing strategy until the failure times reach preset times, and generating and displaying a call failure record;
or generating a call failure record, and writing the call failure record into an abnormal log;
or generating a call failure record, writing the call failure record into an abnormal log, starting timing, and returning to the execution step when the timing reaches the preset time: sending a call request for the target financial service to the target service provider.
3. The financial service invocation method according to claim 2, wherein said step of determining a target service provider from said list of target service providers according to a predetermined load balancing policy comprises:
determining a value interval corresponding to each first service provider according to a weight value corresponding to each first service provider in the service provider list, generating a random value, and determining a target service provider according to the value interval to which the random value belongs;
or, according to the respective corresponding weight values of the first service providers in the service provider list, sequentially performing round robin on the first service providers to determine target service providers;
or determining a target service provider from each first service provider according to the active number corresponding to each first service provider in the service provider list.
4. A financial service calling method applied to a service provider, the financial service calling method comprising:
sending registration information to a registration center, wherein the registration information comprises target financial service information corresponding to the service provider, so that the registration center lists the service provider into a target service provider list corresponding to the target financial service according to the registration information;
providing the target financial service to the service consumer when receiving a call request of the target financial service sent by the service consumer.
5. The financial service invocation method according to claim 4, wherein said step of providing said target financial service to said service consumer includes:
locking the business resources corresponding to the target financial service;
providing the targeted financial service to the service consumer;
and when the target financial service is determined to be called, unlocking business resources corresponding to the target financial service.
6. The financial service invocation method according to claim 5, wherein said step of providing said target financial service to said service consumer is followed by further comprising:
generating financial service data corresponding to the target financial service;
and writing the financial service data into a corresponding distributed database and/or a corresponding distributed cache memory.
7. A financial service invocation system, characterized in that said financial service invocation system comprises a registry, at least one service consumer and at least one service provider, wherein,
the registration center is used for acquiring registration information from each service provider, wherein the registration information comprises target financial services corresponding to each service provider, and each service provider is listed in a target service provider list corresponding to each target financial service according to each registration information;
the registry is further used for receiving target financial service subscription requests sent by the service consumers and returning a corresponding target service provider list according to the target financial service subscription requests;
the service consumer is used for sending a target financial service subscription request to a registry, acquiring a target service provider list returned by the registry based on the target financial service subscription request, determining a target service provider from the target service provider list according to a preset load balancing strategy, and sending a call request of the target financial service to the target service provider so that the target service provider provides the target financial service to the service consumer based on the call request;
the service provider is configured to send a registration request to a registration center, where the registration request includes target financial service information corresponding to the service provider, so that the registration center lists the service provider in a target service provider list corresponding to the target financial service according to the registration request, and when a call request of the target financial service sent by a service consumer is received, provides the target financial service to the service consumer.
8. The financial service invocation system according to claim 7, wherein said financial service invocation system further comprises at least one distributed database and at least one distributed cache memory,
the distributed database is used for storing financial service data corresponding to each financial service;
the distributed cache memory is used for caching financial service data corresponding to each financial service.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the financial service invocation method of any of claims 1-4 or claims 5-6.
10. A storage medium, characterized in that the storage medium is a computer-readable storage medium, on which a program implementing a financial service call method is stored, the program being executed by a processor to implement the steps of the financial service call method according to any one of claims 1 to 4 or claims 5 to 6.
CN202211131320.1A 2022-09-16 2022-09-16 Financial service calling method, system, electronic equipment and storage medium Pending CN115623082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211131320.1A CN115623082A (en) 2022-09-16 2022-09-16 Financial service calling method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211131320.1A CN115623082A (en) 2022-09-16 2022-09-16 Financial service calling method, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115623082A true CN115623082A (en) 2023-01-17

Family

ID=84858445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211131320.1A Pending CN115623082A (en) 2022-09-16 2022-09-16 Financial service calling method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115623082A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132538A (en) * 2023-02-17 2023-05-16 税友软件集团股份有限公司 Method, device, equipment and storage medium for calling interfaces among multiple applications

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116132538A (en) * 2023-02-17 2023-05-16 税友软件集团股份有限公司 Method, device, equipment and storage medium for calling interfaces among multiple applications

Similar Documents

Publication Publication Date Title
CN109242453B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
CN108876380B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
CN109377216B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
CN109299348B (en) Data query method and device, electronic equipment and storage medium
CN114827280B (en) Request processing method, device, equipment and medium
CN115268854A (en) Service expansion implementation method, system, electronic equipment and readable storage medium
CN110619096A (en) Method and apparatus for synchronizing data
CN115623082A (en) Financial service calling method, system, electronic equipment and storage medium
CN110888773B (en) Method, device, medium and electronic equipment for acquiring thread identification
CN112714042A (en) Pressure testing method and device, electronic equipment and storage medium
CN115545639A (en) Financial business processing method and device, electronic equipment and storage medium
CN116302271A (en) Page display method and device and electronic equipment
CN114816684A (en) Business processing method, device, equipment, readable storage medium and product
CN115729645A (en) Micro-service configuration method and device, electronic equipment and readable storage medium
CN111694672B (en) Resource allocation method, task submission method, device, electronic equipment and medium
CN114221878A (en) Fault node detection method, system, electronic equipment and storage medium
CN112882921B (en) Fault simulation method and device
CN109522133B (en) Data splicing method and device, electronic equipment and storage medium
CN111339643A (en) Resource consumption evaluation method and device, electronic equipment and storage medium
CN110955599A (en) Object creation method and device, electronic equipment and computer-readable storage medium
CN115658749B (en) Fund product ordering method and device based on directed acyclic graph and electronic equipment
CN112148448B (en) Resource allocation method, apparatus, device and computer readable medium
CN113971060B (en) Interface display method, device, electronic equipment and medium
CN116820354B (en) Data storage method, data storage device and data storage system
CN113448550B (en) Method and device for realizing collection management of classes, electronic equipment and computer 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