CN114422343A - Service configuration method, device, system and computer readable storage medium - Google Patents

Service configuration method, device, system and computer readable storage medium Download PDF

Info

Publication number
CN114422343A
CN114422343A CN202011092937.8A CN202011092937A CN114422343A CN 114422343 A CN114422343 A CN 114422343A CN 202011092937 A CN202011092937 A CN 202011092937A CN 114422343 A CN114422343 A CN 114422343A
Authority
CN
China
Prior art keywords
service
configuration data
request
data set
current
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.)
Granted
Application number
CN202011092937.8A
Other languages
Chinese (zh)
Other versions
CN114422343B (en
Inventor
殷功俊
胡利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011092937.8A priority Critical patent/CN114422343B/en
Publication of CN114422343A publication Critical patent/CN114422343A/en
Application granted granted Critical
Publication of CN114422343B publication Critical patent/CN114422343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5054Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The application provides a service configuration method, equipment, a system and a computer readable storage medium; the method is applied to at least one service device corresponding to the current service, and comprises the following steps: receiving a service request corresponding to the current service; responding to the service request, and acquiring target configuration data corresponding to the service request from the local configuration data set; the local configuration data set is obtained by acquiring a current configuration data set in the service configuration server through a preset calling interface and then synchronously updating the current configuration data set to the local; the current service is implemented using the target configuration data. By the method and the device, the efficiency of service configuration can be improved.

Description

Service configuration method, device, system and computer readable storage medium
Technical Field
The present application relates to internet technologies, and in particular, to a method, device, system, and computer-readable storage medium for service configuration.
Background
At present, in the scenes of network payment or network repayment and the like, when each service module related to the payment or repayment service needs to acquire the bank information required for processing the related service, the local configuration file of each service module or a database outside each service module acquires the corresponding bank information, however, for the condition of acquiring the bank information from the local configuration file, a plurality of repeated sets of bank information need to be configured in each service module in advance, and each service module also needs to be synchronized during modification and updating, so that the efficiency of service configuration is reduced. For the condition of acquiring bank information from the database, when each business module initiates a data reading request in real time, a large request amount is brought to the database, and the business processing performance is influenced; in addition, in the financial institution service processing scene, strict authority management and complex modification processes are required for modifying and adding bank information in the database, so that the service configuration efficiency is further reduced.
Disclosure of Invention
Embodiments of the present application provide a service configuration method, device, system, and computer-readable storage medium, which can improve efficiency of service configuration.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the present application provides a service configuration method, which is applied to at least one service device corresponding to a current service, and includes:
receiving a service request corresponding to the current service;
responding to the service request, and acquiring target configuration data corresponding to the service request from a local configuration data set; the local configuration data set is obtained by acquiring a current configuration data set in a service configuration server through a preset calling interface and then synchronously updating the current configuration data set to the local;
and realizing the current service by using the target configuration data.
The embodiment of the application provides a service configuration method, which is applied to a service configuration server and comprises the following steps:
when a data updating request is received, generating a current configuration data set based on the data updating request;
and synchronizing the current configuration data set to at least one service device corresponding to the current service through a preset calling interface so that the at least one service device can synchronously use the current configuration data set to update respective local configuration data sets, and realizing the current service based on the local configuration data sets.
An embodiment of the present application provides a service configuration system, including:
the service configuration server is used for receiving a data updating request; generating a current configuration data set based on the data update request; synchronizing the current configuration data set to at least one service device corresponding to the current service through a preset calling interface;
the terminal is used for receiving a service request corresponding to the current service; sending the service request to the at least one service device;
the at least one service device is configured to respond to the service request, obtain target configuration data corresponding to the service request from a local configuration data set, and implement the current service using the target configuration data.
In the service configuration system, the service configuration system further includes: a forwarding device; the at least one service device comprises: a first service server and a second service server; the target configuration data includes: first target configuration data and second target configuration data; the local configuration data set includes: first local configuration data and second local configuration data;
the terminal is used for receiving a service request corresponding to the current service; sending the service request to the first service server;
the first service server is used for responding to the service request and acquiring first target configuration data corresponding to the service request from a first local configuration data set; verifying based on the first target configuration data, and forwarding the service request to the second service server through the forwarding device when the verification is passed;
the second service server is used for responding to the service request and acquiring second target configuration data corresponding to the service request from a second local configuration data set; and performing verification based on the second target configuration data, and executing the current business when the verification is passed.
An embodiment of the present application provides a service device, including:
the first receiving module is used for receiving a service request corresponding to the current service;
the acquisition module is used for responding to the service request and acquiring target configuration data corresponding to the service request from a local configuration data set; the local configuration data set is obtained by acquiring a current configuration data set in a service configuration server through a preset calling interface and then synchronously updating the current configuration data set to the local;
and the service processing module is used for realizing the current service by using the target configuration data.
In the service device, the service device further includes a second synchronization module, where the second synchronization module is configured to, before the target configuration data corresponding to the service request is acquired from a local configuration data set in response to the service request, synchronously receive, through the preset call interface, a current configuration data set pushed by the service configuration server and update the local configuration data set.
In the service device, the second synchronization module is further configured to, before the target configuration data corresponding to the service request is obtained from a local configuration data set in response to the service request, monitor, through a unified timing task, whether a current configuration data set in the service configuration server is consistent with the local configuration data set; and when the current configuration data set is inconsistent with the local configuration data set, synchronously pulling the current configuration data set from the service configuration server through the preset calling interface to update the local configuration data set.
In the service device, the obtaining module is further configured to obtain, in response to the service request, index information of configuration data required by the current service; the index information comprises at least one item of mechanism type, mechanism English abbreviation and shortcut service type of a service mechanism corresponding to the service request; and acquiring the target configuration data from the local configuration data set according to the index information.
An embodiment of the present application provides a service configuration server, including:
the generating module is used for generating a current configuration data set based on the data updating request when the data updating request is received through the second receiving module;
and the first synchronization module is used for synchronizing the current configuration data set to at least one service device corresponding to the current service through a preset calling interface so that the at least one service device can synchronously use the current configuration data set to update respective local configuration data sets, and the current service is realized based on the local configuration data sets.
In the service configuration server, the data update request includes: a data release request; the generating module is further configured to, when the data publishing request is received through a preset management interface, obtain at least one to-be-published configuration data included in the data publishing request; and responding to the data publishing request, and newly adding the at least one to-be-published configuration data to an original configuration data set so as to obtain the current configuration data set.
In the service configuration server, the data update request includes: a data modification request; the generation module is further configured to, when the data modification request is received through a preset management interface, acquire at least one to-be-modified configuration data included in the data modification request; and responding to the data modification request, and modifying at least one original configuration data in an original configuration data set by using the at least one configuration data to be modified correspondingly to obtain the current configuration data set.
In the service configuration server, the service configuration server further includes an authentication unit, where the authentication unit is configured to authenticate identity information corresponding to the data update request before generating a current configuration data set based on the data update request, so as to obtain an authentication result; and when the authentication result is failed, not executing the update of the currently stored configuration data set.
An embodiment of the present application provides a service device, including:
a first memory for storing executable instructions;
the first processor is configured to implement the service configuration method provided in the embodiment of the present application when executing the executable instructions stored in the first memory.
An embodiment of the present application provides a service configuration server, including:
a second memory for storing executable instructions;
and the second processor is configured to implement the service configuration method provided by the embodiment of the present application when executing the executable instructions stored in the second memory.
The embodiment of the present application provides a computer-readable storage medium, which stores executable instructions and is used for implementing the service configuration method provided by the embodiment of the present application when being executed by a first processor or a second processor.
The embodiment of the application has the following beneficial effects:
at least one service device can synchronously and simultaneously acquire the latest configuration data in the service configuration server through a preset calling interface, so that the latest configuration data can be ensured to be acquired by the at least one service device only by uniformly issuing, newly adding and modifying the configuration data in the service configuration server, thereby improving the efficiency of issuing and maintaining the configuration data and further improving the efficiency of service configuration; and at least one service device acquires the target configuration data from the local configuration data set, thereby reducing the time delay of service configuration and further improving the efficiency of service configuration.
Drawings
Fig. 1 is an alternative structural schematic diagram of a service configuration system architecture provided in an embodiment of the present application;
fig. 2-1 is an alternative structural schematic diagram of a service device provided in the embodiment of the present application;
fig. 2-2 is an alternative structural schematic diagram of a service configuration server provided in the embodiment of the present application;
fig. 3 is an alternative flow chart of a service configuration method provided in the embodiment of the present application;
fig. 4 is an alternative flow chart of a service configuration method provided in the embodiment of the present application;
fig. 5-1 is an alternative flow diagram of a service configuration method provided in the embodiment of the present application;
fig. 5-2 is an alternative flow diagram of a service configuration method provided in the embodiment of the present application;
fig. 6 is an alternative flow chart of a service configuration method provided in the embodiment of the present application;
fig. 7 is an alternative structural diagram of a service configuration system architecture provided in the embodiment of the present application;
fig. 8 is an alternative flowchart of a service configuration method according to an embodiment of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Where similar language of "first/second" appears in the specification, the following description is added, and where reference is made to the term "first \ second \ third" merely for distinguishing between similar items and not for indicating a particular ordering of items, it is to be understood that "first \ second \ third" may be interchanged both in particular order or sequence as appropriate, so that embodiments of the application described herein may be practiced in other than the order illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Currently, in an online application scenario of a financial institution, such as online payment of a credit card, a background server of the financial institution starts a real-time payment process through a plurality of business modules when receiving a payment request of a user. The bank information of all payment banks needs to be configured in the configuration file of each service module configuration in advance, so that the service module can read the bank information from the configuration file to the memory of the service module when being started, and then acquire the related bank information from the memory of the service module. If the bank information of the payment bank needs to be modified and newly added, the configuration files of all business modules related to the bank are required to be updated to be effective. It can be seen that in this way, multiple copies of repeated bank information data need to be configured in each business module, and when there are more modules involved in the business process of payment or payment, maintenance is difficult and errors are easy to occur, and meanwhile, as the bank information increases, the content of the configuration file increases, the time consumed for analyzing the configuration file increases, thereby reducing the efficiency of business configuration. Or, the current bank information may also be stored in the database, and for the case that the bank information is stored in the database, the bank information required by the specific repayment process may be acquired from the database in real time through a method called by the interface in the repayment process. However, this method will bring a large amount of requests to the database, and data request congestion is likely to occur, thereby affecting the service processing performance of the service module to a certain extent and reducing the service processing efficiency; moreover, as the number of the payment lines increases, when the business module needs to acquire the bank information of all the payment lines, the time consumption for reading all the bank information from the database also increases. Affecting the efficiency of the service configuration.
The embodiment of the application provides a service configuration method, a device, a system and a computer readable storage medium, which can improve the efficiency of service configuration, and the service configuration device in the service configuration system in the embodiment of the application comprises: at least one service device, a service configuration server, a terminal and the like. The terminal provided by the embodiment of the present application may be implemented as various types of user terminals such as a notebook computer, a tablet computer, a desktop computer, a set-top box, a mobile device (e.g., a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, and a portable game device), and at least one service device and a service configuration server provided by the embodiment of the present application may be implemented as a server. An exemplary application of the service configuration system provided by the embodiment of the present application is described below.
Referring to fig. 1, fig. 1 is an alternative architecture schematic diagram of a service configuration system 100 provided in this embodiment of the present application, in order to implement supporting a service processing application, a terminal 400 is connected to at least one service device 200 through a network 300_1, and the at least one service device 200 is connected to a service configuration server 500 through a network 300_ 2. At least one service device 200 is configured to implement different links corresponding to a current service processing flow in the service configuration system 100. In some embodiments, the terminal may be connected to the interface service device 200_1 of the at least one service device 200, and the network 300_1 and the network 300_2 may be a wide area network or a local area network, or a combination of the two.
The terminal 400 is configured to receive a service request corresponding to a current service; the service request is sent to at least one service device 200. Specifically, the terminal 400 may receive a current service initiated by a user through the application 410, generate a service request according to the current service, and submit the service request to at least one service device 200 corresponding to the current service. In some embodiments, the application 410 may be a financial payment application, the current service may be a payment service, the service request may be a payment request initiated by a user to a financial institution, the terminal 400 may initiate a payment request to the financial institution through the financial payment application, submit the payment request to at least one service device 200 corresponding to the payment service, and the at least one service device 200 processes the service request through respective corresponding service functions. At least one service device 200 is configured to, in response to a service request, obtain target configuration data corresponding to the service request from the local configuration data set, and implement a current service using the target configuration data. When at least one service device 200 needs to obtain configuration data required by a service request in a service request processing process, target configuration data corresponding to the service request may be obtained from a local configuration data set, and then the current service is completed using the target configuration data. The local configuration data set is obtained by at least one service device 200 synchronously acquiring a current configuration data set from the service configuration server 500 through a preset call interface in advance, and updating an original local configuration data set by using the current configuration data set. The service configuration server 500 is configured to receive a data update request; generating a current configuration data set based on the data update request; and synchronizing the current configuration data set to at least one service device corresponding to the current service through a preset calling interface.
In some embodiments, at least one service device 200 or the service configuration server 500 may be an independent physical server, may also be a server cluster or a distributed system formed by a plurality of physical servers, and may also be a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a CDN, and a big data and artificial intelligence platform. The terminal 400 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the at least one service device 200 may be directly or indirectly connected through wired or wireless communication, and the embodiment of the present application is not limited thereto.
Referring to fig. 2-1, fig. 2-1 is a schematic structural diagram of a service device provided in an embodiment of the present application, and the service device 200 shown in fig. 2-1 includes: at least one first processor 410, a first memory 450, at least one first network interface 420, and a user interface 430. The various components in the business device 200 are coupled together by a first bus system 440. It is understood that the first bus system 440 is used to enable connection communications between these components. The first bus system 440 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as first bus system 440 in fig. 2-1.
The first Processor 410 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The first user interface 430 includes one or more first output devices 431, including one or more speakers and/or one or more visual display screens, that enable the presentation of media content. The first user interface 430 also includes one or more first input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The first memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. The first memory 450 optionally includes one or more storage devices physically located remote from the first processor 410.
The first memory 450 includes either volatile memory or nonvolatile memory, and may also include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The first memory 450 described in embodiments herein is intended to comprise any suitable type of memory.
In some embodiments, the first memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures, or subsets or supersets thereof, as exemplified below.
A first operating system 451 including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
a first network communication module 452 for communicating to other computing devices via one or more (wired or wireless) first network interfaces 420, an exemplary first network interface 420 comprising: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), etc.;
a first rendering module 453 for enabling the rendering of information (e.g., user interfaces for operating peripherals and displaying content and information) via one or more first output devices 431 (e.g., display screens, speakers, etc.) associated with the first user interface 430;
a first input processing module 454 for detecting one or more user inputs or interactions from one of the one or more first input devices 432 and translating the detected inputs or interactions.
Referring to fig. 2-2, fig. 2-2 is a schematic structural diagram of a service provisioning server 500 according to an embodiment of the present application, where the service provisioning server 500 shown in fig. 2-2 includes: at least one second processor 510, a second memory 550, at least one second network interface 520. The various components in the service provisioning server 500 are coupled together by a second bus system 540.
At least one second processor 510, a second memory 550, at least one second network interface 520, and a second user interface 530. The various components in the service provisioning server 500 are coupled together by a second bus system 540. It will be appreciated that the second bus system 540 is used to enable communications among these components. The second bus system 540 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as the second bus system 540 in fig. 2-2.
The second Processor 510 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The second user interface 530 includes one or more second output devices 531 enabling presentation of media content, including one or more speakers and/or one or more visual displays. The second user interface 530 also includes one or more second input devices 532 including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The second memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. The second memory 550 optionally includes one or more storage devices physically located remote from the second processor 510.
The second memory 550 may comprise either volatile memory or nonvolatile memory, and may also comprise both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The second memory 550 described in embodiments herein is intended to comprise any suitable type of memory.
In some embodiments, the second memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or subsets or supersets thereof, as exemplified below.
A second operating system 551 including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
a second network communication module 552 for communicating to other computing devices via one or more (wired or wireless) second network interfaces 520, the example second network interfaces 520 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), etc.;
a second rendering module 553 for enabling the rendering of information (e.g., user interfaces for operating peripherals and displaying content and information) via one or more second output devices 531 (e.g., display screens, speakers, etc.) associated with the second user interface 530;
a second input processing module 554 for detecting one or more user inputs or interactions from one of the one or more second input devices 532 and translating the detected inputs or interactions.
In some embodiments, the service device or the service configuration server provided in the embodiments of the present application may be implemented in a software manner, and when the service device is implemented in a software manner, the service device may be a service device; when the service configuration server is implemented in a software manner, the service configuration server may be a service configuration device. Fig. 2-1 shows a business device 455 stored in the first memory 450, which may be software in the form of programs and plug-ins, etc., including the following software modules: a receiving module 4551, an obtaining module 4552 and a service processing module 4553, which are logical and thus may be arbitrarily combined or further divided according to the functions implemented. Fig. 2-2 shows a service configuration means 555 stored in the secondary memory 550, which may be software in the form of programs and plug-ins, etc., comprising the following software modules: a generation module 5551, a first synchronization module 5552, which are logical and thus may be arbitrarily combined or further split depending on the implemented functionality.
The functions of the respective modules will be explained below.
In other embodiments, the service Device or the service provisioning server provided in this embodiment may be implemented in hardware, for example, the service Device or the service provisioning server provided in this embodiment may be a processor in the form of a hardware decoding processor, which is programmed to execute the service provisioning method provided in this embodiment, for example, the processor in the form of the hardware decoding processor may be one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), or other electronic components.
The service configuration method provided by the embodiment of the present application will be described in conjunction with exemplary applications and implementations of the terminal provided by the embodiment of the present application.
Referring to fig. 3, fig. 3 is an alternative flow chart diagram of a service configuration method provided in the embodiment of the present application, and will be described with reference to the steps shown in fig. 3.
S101, at least one service device receives a service request corresponding to the current service.
In the embodiment of the application, the service request is a service request to be completed when each service device processes a corresponding flow link when the whole flow of the current service is executed by each service device, wherein the current service is at least one service device.
In this embodiment of the present application, at least one service device is configured to implement a service processing flow of a service mechanism in a service configuration system, and the at least one service device may correspondingly complete services corresponding to different nodes in the service processing flow through respective module functions. In some embodiments, at least one service device may be distributed on different entity hosts, or may be configured on the same host according to actual needs, which is specifically selected according to actual situations, and the embodiments of the present application are not limited.
In this embodiment of the present application, the service request of at least one service device may be a service request sent by a terminal, or may be a service request sent by a higher-level service device in a service processing flow.
S102, at least one service device responds to a service request and acquires target configuration data corresponding to the service request from a local configuration data set; the local configuration data set is obtained by acquiring the current configuration data set in the service configuration server through a preset calling interface and then synchronously updating the current configuration data set to the local.
In the embodiment of the application, at least one service device responds to a service request, analyzes the service request, obtains index information of configuration data required by the service request, and then obtains target configuration data corresponding to the service request from a local configuration data set according to the index information so as to perform corresponding processing on the service request by using the target configuration data.
In the embodiment of the application, the local configuration data set is obtained by acquiring the current configuration data set in the service configuration server through the preset calling interface and then synchronously updating the current configuration data set to the local. In some embodiments, the configuration data stored in the local configuration data set may be organization information corresponding to a plurality of service organizations, and the target configuration data may be service organization information to be acquired specified in a service request corresponding to a current service. Each service device can match the mechanism information corresponding to a plurality of service mechanisms according to the service mechanism information to be acquired specified in the service request, and determine the target mechanism information as target configuration data.
In the embodiment of the application, each service device in at least one service device can synchronously acquire a current configuration data set in a service configuration server through a preset calling interface; wherein, at least one service device is used for realizing at least one service in the service processing flow in the service configuration system; the at least one service device and the service provisioning server are interconnected via a network.
In the embodiment of the present application, the service configuration server is a service storage system with low delay, large concurrency, and strong disaster tolerance capability, and may be deployed on one entity host or on multiple entity hosts. In some embodiments, the service configuration server encapsulates operations of a database, a file, and a memory, and only provides a preset calling interface for a calling party to query stored data information.
In the embodiment of the application, the preset calling interface is used for connecting a data transmission channel between at least one service device and the service configuration server. In some embodiments, the preset call interface may be implemented by a data call method and a network socket, and is specifically selected according to an actual situation, which is not limited in this embodiment of the present application.
In the embodiment of the present application, the service configuration server may be any system having a storage function, so as to implement aggregation storage of configuration data. In some embodiments, the service configuration server may be a high-availability database cluster system, or may be other third-party configuration systems with disaster tolerance and fallback capabilities, which is specifically selected according to actual situations, and the embodiments of the present application are not limited.
In the embodiment of the application, a configuration data set required by at least one service device for service processing is stored in the service configuration server, and the service configuration server can provide an interface for modifying and releasing configuration data to the outside so as to update the configuration data set. The current configuration data set is the configuration data set obtained from the service configuration server in the current state. In some embodiments, the current configuration data set may be a full set of configuration data sets stored in the service configuration server in the current state, and for this case, each service device may perform an overall update based on the current configuration data set. In some embodiments, the current configuration data set may also be a configuration data set that is currently stored in the service configuration server compared to a configuration data set that was updated in a previous state, for which case each service device may be updated differentially based on the current configuration data set. The range of the current configuration data set is specifically selected according to actual situations, and the embodiment of the present application is not limited.
In the embodiment of the application, after each service device synchronously acquires the current configuration data set in the service configuration server, the current configuration data set, namely the local configuration data set, is used for synchronous updating.
In the embodiment of the application, each service device may maintain a local configuration data set in a storage device, such as a cache, on a local host, so that when configuration data needs to be acquired, the local storage can be quickly accessed for acquisition, and the time delay of interaction with the server is reduced.
In the embodiment of the application, after each service device acquires the current configuration data set, the local configuration data set can be synchronously updated according to the difference data between the current configuration data set and the local configuration data set, so that the local configuration data set is consistent with the configuration data set in the latest state in the service configuration server.
In some embodiments, for newly added configuration data included in the current configuration data set, each service device may directly add the newly added configuration data to the local configuration data set, and for configuration data existing in both the current configuration data set and the local configuration data set, each service device may replace the configuration data in the local configuration data set with the configuration data in the current configuration data set, so that the local configuration data set is finally consistent with the configuration data in the configuration data set stored in the service configuration server, thereby completing synchronous update of the local configuration data set.
S103, at least one service device uses the target configuration data to realize the current service.
In the embodiment of the application, each service device in at least one service device may use the target configuration data to complete a service request corresponding to a flow link of a current service corresponding to each service device, so as to finally complete processing of the current service.
In the embodiment of the present application, S201 to S202 shown in fig. 3 are applied to a service configuration server in a service configuration system, and will be described with reference to each step.
S201, when the service configuration server receives a data updating request, generating a current configuration data set based on the data updating request.
In the embodiment of the application, when the service configuration server receives the data updating request, the original configuration data set stored by the service configuration server is updated according to the request content of the data updating request and the carried updating configuration data, so that the current configuration data set is generated.
In this embodiment of the application, the data update request may be an issue request for creating a configuration data set in the service configuration server, or newly adding configuration data in an original configuration data set, or a modification request for modifying configuration data in the original configuration data set. When the configuration data set stored in the service configuration server needs to be maintained or backed off, a maintainer can initiate a data updating request through a preset interface provided by the service configuration server, such as a front-end interface platform, so as to implement data maintenance on the service configuration server.
S202, the service configuration server synchronizes a current configuration data set to at least one service device corresponding to the current service through a preset calling interface, so that the at least one service device can synchronously use the current configuration data set to update respective local configuration data sets, and the current service is realized based on the local configuration data sets.
In the embodiment of the application, after the service configuration server generates the latest current configuration data set based on the data update request, the current configuration data set can be synchronized to at least one service device corresponding to the current service through the preset call interface, so that the latest updated configuration data can be simultaneously and instantly acquired by the at least one service device.
In the embodiment of the application, the service configuration server may actively push the current configuration data set to the at least one service device through the preset call interface, and may also receive synchronous pull of the current configuration data set by the at least one service device, thereby implementing synchronous synchronization of the at least one service device.
It can be understood that, in the embodiment of the present application, at least one service device may synchronously and simultaneously obtain the latest configuration data in the service configuration server through the preset calling interface, so that it is only necessary to uniformly perform the issuing, adding, and modifying of the configuration data in the service configuration server to ensure that at least one service device obtains the latest configuration data in real time, thereby improving the efficiency of issuing and maintaining the configuration data, and further improving the efficiency of service configuration; and at least one service device acquires the target configuration data from the local configuration data set, so that the service configuration time delay is reduced, the current service device directly uses the target configuration data in the local cache to complete the current service processing, the service processing delay is reduced, the service response speed is improved, and the service configuration efficiency is further improved.
It should be noted that, in this embodiment of the application, based on the system architecture shown in fig. 1, a service configuration method flow among the terminal 400, the at least one service configuration server 200, and the service configuration server 500 may also be as shown in fig. 4, and will be described with reference to each step.
S301, the terminal initiates a service request corresponding to the current service.
In the embodiment of the application, when the terminal receives the user service operation instruction, the terminal initiates a service request corresponding to the current service.
In some embodiments, a user may send a service operation instruction on an interactive interface of a terminal to instruct the terminal to perform service processing of a current service, and the terminal initiates a service request corresponding to the current service to at least one service device when receiving the user service operation instruction.
S302, at least one service device inquires whether target configuration data exists from a local configuration data set.
In this embodiment of the present application, at least one service device may receive a service request through the interface service device 200_1, and process the service request step by step through at least one service device, and when a current service device in the at least one service device needs to obtain target configuration data in a service processing process, the current service device may first query whether target configuration data exists in a local configuration data set of the current service device.
And S303, when the target configuration data does not exist in the local configuration data set, at least one service device sends a configuration data reading request to a service configuration server through a preset calling interface.
In the embodiment of the present application, the configuration data reading request is used to obtain the target configuration data from the service configuration server. When the target configuration data does not exist in the local cache, the current service equipment can send a configuration data reading request to the service configuration server through a preset calling interface so as to obtain the required target configuration data from the service configuration server.
In some embodiments, the current service device may initiate a configuration data reading request to the service configuration server through a preset call interface through a proxy server on the local device.
S304, the service configuration server determines target configuration data from the currently stored configuration data set according to the index information carried by the configuration data reading request
In the embodiment of the application, after receiving a configuration data reading request sent by a current service device of at least one service device, a service configuration server responds to the configuration data reading request and determines target configuration data from a currently stored configuration data set according to index information carried in the configuration data reading request.
In the embodiment of the application, the configuration data reading request includes index information of the configuration data to be read. In some embodiments, when the current service is a payment service, the index information may include at least one of an organization type, an organization english abbreviation, and a shortcut service type of the service organization. The target configuration data may be organization information corresponding to the index information. The service configuration server may determine that the configuration data is the target configuration data by matching corresponding target mechanism information in the configuration data set stored in the service configuration server according to index information, such as mechanism english abbreviation.
In some embodiments, the business entity may be a bank and the index information may be of the bank type. When receiving the configuration data reading request, the service configuration server can analyze the bank type of the type A required to be acquired by the current service equipment request from the configuration data reading request, and determine all the bank information belonging to the type A from the configuration data set stored by the service configuration server as target configuration data.
In some embodiments, for an application scenario of common card binding in a credit card repayment application scenario, a credit card bank type may be used as index information, and the credit card repayment bank information is obtained through the credit card bank type; for the application scene of the quick card binding or the third-party card binding, the quick bank type can be used as index information, and the credit card repayment bank information is obtained through the quick bank type.
S305, the service configuration server sends the target configuration data to the current service equipment, so that the current service equipment completes the current service processing in the service processing flow based on the target configuration data.
In the embodiment of the application, the service configuration server sends the determined target configuration data to the current service equipment which provides the configuration data reading request, so that the current service equipment can correspondingly obtain the target configuration data required by service processing, and further complete the service processing of the service process link where the current service equipment is located.
S306, at least one service device uses the target configuration data to complete the current service, stores the target configuration data in a local configuration data set, and returns the service processing result to the terminal.
In the embodiment of the application, the current service device in the at least one service device may receive the target configuration data sent by the service configuration server, and complete the current service by using the target configuration data. And when the at least one service device completes the processing of the current service together, the at least one service device returns the service processing result to the terminal.
In the embodiment of the application, the current service equipment can store the acquired target configuration data in the local configuration data set of the current service equipment, so that the configuration data can be rapidly acquired from the local configuration data set in the following process, and the efficiency of service configuration is improved.
And S307, the terminal prompts the service processing result on the interface.
In the embodiment of the application, after receiving the service processing result returned by at least one service device, the terminal prompts the service processing result to the user on the terminal interface.
It can be understood that, in this embodiment of the application, when at least one service device does not find target configuration data in a local configuration data set, the latest configuration data may be uniformly read from a service configuration server through a preset call interface, and the target configuration data is stored in the local configuration data set so as to be called quickly next time, so that it is ensured that at least one service device may uniformly aggregate configuration data sets in the service configuration server, data consistency is maintained in a service processing process, and modification and update of the configuration data are facilitated, thereby improving efficiency of service configuration. In addition, in the embodiment of the application, on the basis that the configuration data can only be acquired through the mechanism type at present, a method for acquiring the configuration data through the mechanism English abbreviation and the shortcut mechanism type is provided, so that the flexibility of acquiring the configuration data is improved.
It is noted that in some embodiments, S102 shown in fig. 3 may be implemented by S1021-S1022, as follows:
s1021, responding to the service request, and acquiring index information of configuration data required by the current service; the index information contains at least one item of mechanism type, mechanism English abbreviation and shortcut service type of the service mechanism corresponding to the service request.
In this embodiment of the application, a process of acquiring, by at least one service device, index information of configuration data required by a current service is similar to a process of acquiring, by a service configuration server in S304, index information according to a service request, and details are not described here again.
S1022, the at least one service device obtains the target configuration data from the local configuration data set according to the index information.
In this embodiment, a process of acquiring, by at least one service device, target configuration data from the local configuration data set according to the index information is similar to the process of acquiring, by the service configuration server in S304, the target configuration data according to the index information, and details are not repeated here.
In some embodiments, referring to fig. 5-1, fig. 5-1 is an optional flow diagram of a service configuration method provided in an embodiment of the present application, and S201 shown in fig. 3 may be implemented by two parallel method flows, i.e., S2011-S2012 or S2013-S2014, which will be described with reference to the following steps:
s2011, when the service configuration server receives the data publishing request through the preset management interface, obtains at least one to-be-published configuration data included in the data publishing request.
S2012, the service configuration server responds to the data publishing request, and newly adds at least one to-be-published configuration data to the original configuration data set, so as to obtain the current configuration data set.
In this embodiment of the application, the data update request includes a data publishing request, where the data publishing request is used to create or add a configuration data set in the storage of the service configuration server. When the service configuration server receives a data release request through a preset management interface, at least one to-be-released configuration data contained in the data release request is obtained from the data release request, and the at least one to-be-released configuration data is added to an original configuration data set in response to the data release request, so that a current configuration data set is obtained.
In the embodiment of the application, the preset management interface is an interface which is externally provided by the service configuration server and used for managing the internally stored configuration data set. In some embodiments, the preset management interface may be a visual front-end interface or a code instruction interface of a command line.
In some embodiments, the organization maintenance personnel may initiate a data publishing request through the front-end interface with the constructed at least one organization information as a configuration data set to be published, so as to import the at least one organization information into the service configuration server. The service configuration server responds to the data publishing request, receives at least one organization information, and stores the at least one organization information in a back-end storage of the service configuration server so as to provide the latest published at least one organization information to at least one service device.
In this embodiment of the application, the service configuration server may store at least one piece of mechanism information in a JS Object profile ((JavaScript Object Notation, json) format in the backend storage, may also be in an eXtensible Markup Language (xml) format, a serialized data Protocol structure (Protocol) format, or the like, and may also store the at least one piece of mechanism information in another data format, specifically select the at least one piece of mechanism information according to an actual situation, which is not limited in this embodiment of the application.
S2013, when the service configuration server receives the data modification request through the preset management interface, at least one to-be-modified configuration data contained in the data modification request is obtained.
S2014, the service configuration server responds to the data modification request, and at least one original configuration data in the original configuration data set is modified correspondingly by using at least one configuration data to be modified, so that a current configuration data set is obtained.
In the embodiment of the present application, the data update request includes a data modification request, and the data modification request is used to modify original configuration data in an original configuration data set. When the service configuration server receives a data modification request through a preset management interface, at least one to-be-modified configuration data contained in the data modification request is obtained, original configuration data corresponding to the at least one to-be-modified configuration data is found in an original configuration data set, the at least one to-be-modified configuration data corresponds to the at least one original configuration data, and the obtained modified configuration data set is determined to be a current configuration data set.
In some embodiments, when a business organization such as a bank or a payment side needs to modify bank information, for example, modifying a bank chinese name, modifying a bank label, etc., the corresponding bank information only needs to be modified in the business configuration server, and all business devices can be immediately validated when the modification is completed.
It should be noted that in the embodiment of the present application, S2011-S2012 and S2013-S2014 are two optional parallel method flows for implementing S201, and in an actual application, one of the method flows may be selected according to an actual situation for implementation, which is not limited in the embodiment of the present application.
It can be understood that, in the embodiment of the present application, for a scenario of issuing or modifying configuration data, a configuration data set to be issued or configuration data to be modified may be uniformly stored in a service configuration server through a preset management interface, so that at least one service device may synchronously obtain newly issued configuration data by accessing the service configuration server, and an effect of immediate effectiveness of issuing information is achieved, and thus, multiple sets of repeated configuration data do not need to be configured in a configuration file of each service module one by one, and problems of repeated storage of configuration data, more associated modules, slower effectiveness of configuration data, complex access flow of new configuration data, inconsistency of configuration data in an issuing process, and the like are solved, thereby improving efficiency of service configuration.
In some embodiments, referring to fig. 5-2, fig. 5-2 is an optional flow diagram of a service configuration method provided in the embodiments of the present application, and before S101 shown in fig. 3, two parallel method flows of S001 or S002-S003 may also be executed, which will be described with reference to each step.
S001, synchronously receiving a current configuration data set pushed by a service configuration server and updating a local configuration data set by at least one service device through a preset calling interface.
In the embodiment of the application, at least one service device may receive the push of the service configuration server synchronously through a preset call interface, acquire the current configuration data set in a passive manner, and update the local configuration data set based on the acquired current configuration data set.
And S002, monitoring whether the current configuration data set in the service configuration server is consistent with the local configuration data set by at least one service device through a unified timing task.
And S003, when the current configuration data set is inconsistent with the local configuration data set, at least one service device synchronously pulls the current configuration data set from the service configuration server through a preset calling interface to update the local configuration data set.
In this embodiment of the present application, at least one service device may also actively initiate monitoring of a configuration data set in a service configuration server: specifically, at least one service device may periodically compare the configuration data set in the service configuration server with the local configuration data set through a unified timing task, for example, once in 10 minutes, and may, for example, compare version numbers of the two, or update time, so as to determine whether the configuration data set in the service configuration server is consistent with the local configuration data set. When the configuration data set in the service configuration server is inconsistent with the local configuration data set, at least one service device can actively pull the current configuration data set from the service configuration server through a preset calling interface, and update the local configuration data set based on the current configuration data set.
In the embodiment of the present application, S001 and S002-S003 are two optional parallel method flows before S101, and in practical applications, one of the method flows may be selected according to practical situations to be implemented, and the embodiment of the present application is not limited.
It can be understood that, in the embodiment of the present application, at least one service device may simultaneously and synchronously acquire a latest updated configuration data set from a service configuration server, so as to avoid inconsistency of configuration data between the at least one service device, and achieve an effect that, when the configuration data set is modified and updated, the latest updated configuration data set may simultaneously take effect in the at least one service device, thereby improving efficiency of service configuration.
In some embodiments, referring to fig. 6, fig. 6 is an optional flowchart of the service configuration method provided in the embodiment of the present application, and based on fig. 3, before S201, S501-S502 may also be executed, which will be described with reference to the steps:
s501, the service configuration server authenticates the identity information corresponding to the data updating request to obtain an authentication result.
And S502, when the authentication result is failed, the service configuration server does not execute updating of the currently stored configuration data set.
In the embodiment of the application, before receiving the data updating request, the service configuration server may first obtain the identity information corresponding to the data updating request, and authenticate the identity information.
In some embodiments, the service configuration server may authenticate the identity information logged in on the login interface through the login interface on the front-end interface before receiving the data publishing request, and allow the identity information to log in the service configuration server when the authentication result passes; and when the authentication result is failed, refusing the identity information to log in the service configuration server, and prompting login failure on an output interface of the service configuration server. Further, if the identity information initiates a data update request after logging in the service configuration server, the service configuration server may authenticate whether the identity information has a data update right, and when the identity information does not have the data update right, the service configuration server determines that the authentication result is not passed, rejects the data update request, and does not perform the update of the configuration data set.
It can be understood that, in the embodiment of the present application, the service configuration server performs authority authentication on the identity information of the published and updated configuration data, and avoids malicious tampering of the stored configuration data, thereby improving the security of service configuration.
In this embodiment of the present application, referring to fig. 7, fig. 7 is an optional structural schematic diagram of a service configuration system architecture provided in this embodiment of the present application. Based on fig. 1, as shown in fig. 7, the service configuration system 100 in fig. 1 further includes: a forwarding device 600; the at least one service apparatus 200 includes: a first service server 200_1 and a second service server 200_ 2. The terminal 400 is configured to receive a service request corresponding to a current service; the service request is sent to the first service server 200_ 1. The first service server 200_1 is configured to, in response to a service request, obtain first target configuration data corresponding to the service request from a first local configuration data set; the verification is performed based on the first target configuration data, and when the verification is passed, the service request is forwarded to the second service server 200_2 through the forwarding device 600. The second service server 200_2 is configured to, in response to the service request, obtain second target configuration data corresponding to the service request from the second local configuration data set; and performing verification based on the second target configuration data, and executing the current service when the verification is passed.
In this embodiment, the first local configuration data set is a local configuration data set on the first service server 200_1, the second local configuration data set is a local configuration data set on the second service server 200_2, and the first service server 200_1 and the second service server 200_2 may acquire the current configuration data set from the service configuration server 500 and load the current configuration data set into respective local storage through a preset call interface in advance, and use the local configuration data sets in the respective local storage of the current configuration data set, so as to obtain the first configuration data set and the second configuration data set.
In this embodiment of the application, the terminal 400 may send the service request initiated by the user, received through the application 410, to the first service server 200_1, and the first service server 200_1 verifies the validity or validity of the service request. The first service server 200_1 receives the service request sent by the terminal 400, parses the service information to be verified corresponding to the service request from the service request, obtains the first target configuration data corresponding to the service information to be verified from the first local configuration data set, and verifies the service information to be verified by using the first target configuration data. When the authentication fails, the first service server 200_1 may return an authentication result of the authentication failure to the terminal 400, and is displayed by the application 410 on the terminal 400; when the verification is passed, the first service server 200_1 sends the verified service request to the forwarding device 600, and the forwarding device 600 forwards the service request to the second service server 200_ 2. The second service server 200_2 may be at least one functional server for specifically implementing the current service, and when the second service server 200_2 receives a service request, the second service server 200_2 responds to the service request and acquires second target configuration data corresponding to the service request from the second local configuration data set; the service request is verified based on the second target configuration data, when the verification is passed, the second service server 200_2 executes the current service through at least one function server included therein, finally completes the processing of the current service and returns the service processing result to the terminal 400, and the terminal 400 prompts the service processing result to the user through the application 410.
It should be noted that, in this embodiment of the application, at least one service device 200 may be at least two service devices (for example, a first service server and a second service server), and when at least one service device is a plurality of service devices, the service device may further include service devices with other service functions, such as backup storage, fault recovery, and the like, which are specifically selected according to actual situations, and this embodiment of the application is not limited. Moreover, when at least one service device is a plurality of service devices, the service configuration system 100 may also include a plurality of forwarding devices 600, which are used for forwarding a service request among the plurality of service devices, specifically, selecting according to an actual situation, and the embodiment of the present application is not limited thereto.
It should be noted that, when at least one service device is a plurality of service devices, for example, a first service server, a second service server, a third service server, and the like, only the last service server is used for executing the current service, and after all other service servers are verified to be correct, a forwarding device forwards a service request to a next-stage service server.
Next, an exemplary application of the embodiment of the present application in a practical application scenario will be described.
In the embodiment of the application, for a business scene of a credit card, at least one business device may be at least one business server (corresponding to a first business server and a second business server) required for completing each business process in different business processes of the credit card, such as card opening, card binding, binding releasing, activating, bill opening, payment, bill staging and the like.
In some embodiments, referring to fig. 8, fig. 8 is a schematic diagram illustrating a structure and an operation process of a service configuration system in a credit card payment service scenario provided by an embodiment of the present application. As shown in fig. 8, when the current service is a credit card payment service, a first service server in the at least one service device may be a public gateway device, and a second service server in the at least one service device may be a service layer device; the forwarding device in the service configuration system may be a request repeater, and at least one service device may further include a timing polling device (which may also be understood as a third service server), where the timing polling device is configured to periodically query a flow node in the real-time payment flow, where an error occurs in the system or the network, and initiate a retry at the error node.
Next, taking the payment of the credit card as an example, the service configuration method in the embodiment of the present application will be described with reference to the steps in the payment flow of the credit card shown in fig. 8.
S401, the service configuration server receives a bank information issuing request sent by the front-end equipment, and stores the bank information to the service configuration server under the condition that the bank information issuing request passes the authority verification.
In the embodiment of the application, the bank information issuing request may be initiated by a background maintainer of the credit card repayment platform logging in an externally provided front-end interface of the service configuration server through the front-end device by using preset identity information, and then importing bank information to be issued on the front-end interface through operation.
In the embodiment of the application, the bank information corresponds to at least one configuration data to be issued. The process of S401 is consistent with the description of S2011-S2012, and is not described here again.
It should be noted that the service configuration server is a storage system with strong disaster tolerance capability, large concurrency, and low latency.
S402, monitoring that a current bank information set stored in a service configuration server changes through a unified timing task by a timing polling device, a public gateway device and a service layer device in at least one service device, synchronously loading the current bank information set from the service configuration server to respective local machine storage through a preset calling interface, and synchronously updating local bank information sets stored in the respective local machine by using the current bank information sets.
In the embodiment of the application, the current bank information set is a current configuration data set, and the local bank information set is a local configuration data set, wherein the public gateway device uses the current bank information set to synchronously update the local bank information set to obtain a first local bank information set, namely the first local configuration data set; the service layer equipment uses the current bank information set to synchronously update the local bank information set of the service layer equipment to obtain a second local bank information set, namely a second local configuration data set; and the timing polling equipment uses the current bank information set to synchronously update the local bank information set of the timing polling equipment to obtain a third local bank information set which is used as a third local configuration data set.
It should be noted that after the timing polling device acquires the third local bank information set, when it is found that a wrong flow node occurs in the repayment flow through the timing query task, a repayment retry is initiated at the wrong flow node, and according to a service request corresponding to the repayment retry, third target configuration data is determined from the third local bank information set, and the repayment retry process is performed using the third target configuration data.
In the embodiment of the present application, the process of S402 is consistent with the description of S002 to S003, and is not described herein again.
And S403, the terminal sends a repayment request to the public gateway equipment.
In the embodiment of the application, the repayment request is a service request corresponding to the current service, the terminal serves as a repayment side of the repayment service, the repayment service initiated by a user through a repayment application is received through a terminal interface, and the generated repayment request is sent to a first service server, namely, a public gateway device, in at least one service device.
S404, the public gateway device determines first target bank information from the first local bank information set according to the repayment request, verifies the repayment request by using the first target bank information, and sends the repayment request to the request repeater when the repayment request passes the verification.
In the embodiment of the application, the public gateway device analyzes the request parameter from the repayment request, matches corresponding first target bank information from the first local bank information set according to repayment information, such as a repayment payment type, a repayment amount, a repayment card number and the like, contained in the request parameter, and verifies the validity of the repayment information by using the first target bank information.
In the embodiment of the application, the repayment information is service information to be verified, and the first target bank information is first target configuration data. And when the verification is passed, the repayment service corresponding to the repayment request is an effective legal service, and the public gateway equipment sends the repayment request to the request repeater for further processing.
In some embodiments, the Common Gateway device may be a Fast Common Gateway Interface (FCGI) device.
And S405, the request repeater forwards the repayment request to the service layer equipment.
S406, the service layer equipment determines second target bank information based on the second local bank information set, verifies the repayment request by using the second target bank information, and when the verification is passed, the service layer equipment performs specific repayment business processing according to the second target bank information and stores the repayment business processing result in a database for backup.
In some embodiments, the service layer device may correspondingly execute a series of repayment operations in the actual repayment process according to the second target bank information.
Illustratively, a repayment application is submitted to a payment bank, an application result returned by the payment bank is received, the repayment result of the bank to be repayed is updated according to the application result, and the like, so that the repayment business processing is gradually completed, and a repayment business processing result is finally generated.
In the embodiment of the application, after the service layer device completes the current repayment service, the processing result of the repayment service is stored in the database for backup.
It should be noted that, in this embodiment of the present application, for other application scenarios such as a bill staging service or a card-opening service, the service configuration system may also include at least one service device with other functions to implement a corresponding current service, and service devices with the same function may also be multiplexed between different current services (for example, the first server and the forwarding device, different services may be different only in service layer devices that finally execute the service), which is not limited in this embodiment of the present application.
It can be understood that in the embodiment of the application, the bank information can be modified conveniently and quickly through the service configuration system, a problem can be returned timely, and the disaster tolerance capability of the service configuration system enables each module to acquire the bank information more stably.
Continuing with the exemplary structure of the service provisioning apparatus implemented as a software module provided in the embodiments of the present application, in some embodiments, as shown in fig. 2-1, the software module stored in the service device 455 of the first memory 450 may include: a first receiving module 4551, an obtaining module 4552 and a service processing module 4553, wherein,
the first receiving module 4551 is configured to receive a service request corresponding to a current service;
the obtaining module 4552 is configured to, in response to the service request, obtain target configuration data corresponding to the service request from a local configuration data set; the local configuration data set is obtained by acquiring a current configuration data set in a service configuration server through a preset calling interface and then synchronously updating the current configuration data set to the local;
the service processing module 4553 is configured to implement the current service using the target configuration data.
In some embodiments, the service device 455 further includes a second synchronization module, where the second synchronization module is configured to, before the target configuration data corresponding to the service request is obtained from a local configuration data set in response to the service request, synchronously receive, through the preset call interface, a current configuration data set pushed by the service configuration server and update the local configuration data set.
In some embodiments, the second synchronization module is further configured to, in response to the service request, monitor whether a current configuration data set in the service configuration server is consistent with a local configuration data set by a unified timing task before acquiring target configuration data corresponding to the service request from the local configuration data set; and when the current configuration data set is inconsistent with the local configuration data set, synchronously pulling the current configuration data set from the service configuration server through the preset calling interface to update the local configuration data set.
In some embodiments, the obtaining module 4552 is further configured to obtain, in response to the service request, index information of configuration data required by the current service; the index information comprises at least one item of mechanism type, mechanism English abbreviation and shortcut service type of a service mechanism corresponding to the service request; and acquiring the target configuration data from the local configuration data set according to the index information.
Continuing with the exemplary structure of the service provisioning apparatus implemented as a software module provided in the embodiments of the present application, in some embodiments, as shown in fig. 2-2, the software module stored in the service provisioning apparatus 555 in the second memory 550 may include: a second receiving module 5550, a generating module 5551, and a first synchronizing module 5552, wherein,
the generating module 5551 is configured to, when a data update request is received through the second receiving module 5550, generate a current configuration data set based on the data update request;
the first synchronization module 5552 is configured to synchronize the current configuration data set to at least one service device corresponding to the current service through a preset call interface, so that the at least one service device updates its respective local configuration data set by using the current configuration data set synchronously, and implements the current service based on the local configuration data set.
In some embodiments, the data update request comprises: a data release request; the generating module 5551 is further configured to, when the data publishing request is received through a preset management interface, obtain at least one to-be-published configuration data included in the data publishing request; and responding to the data publishing request, and newly adding the at least one to-be-published configuration data to an original configuration data set so as to obtain the current configuration data set.
In some embodiments, the data update request comprises: a data modification request; the generating module 5551 is further configured to, when the data modification request is received through a preset management interface, obtain at least one to-be-modified configuration data included in the data modification request; and responding to the data modification request, and modifying at least one original configuration data in an original configuration data set by using the at least one configuration data to be modified correspondingly to obtain the current configuration data set.
In some embodiments, the service configuration apparatus 555 further includes an authentication unit, where the authentication unit is configured to authenticate identity information corresponding to the data update request before the current configuration data set is generated based on the data update request, so as to obtain an authentication result; and when the authentication result is failed, not executing the update of the currently stored configuration data set.
It should be noted that the above description of the embodiment of the apparatus, similar to the above description of the embodiment of the method, has similar beneficial effects as the embodiment of the method. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
Embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the computer device executes the service configuration method described in the embodiment of the present application.
Embodiments of the present application provide a computer-readable storage medium having stored therein executable instructions that, when executed by a first processor or a second processor, cause the processors to perform a method provided by embodiments of the present application, for example, the method as illustrated in fig. 3-7.
In some embodiments, the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
In summary, at least one service device may synchronously and simultaneously acquire the latest configuration data in the service configuration server through the preset call interface, so that it is ensured that the latest configuration data is acquired by the at least one service device only by uniformly issuing, newly adding, and modifying the configuration data in the service configuration server, thereby improving the efficiency of issuing and maintaining the configuration data, and further improving the efficiency of service configuration; and at least one service device acquires the target configuration data from the local configuration data set, so that the service configuration time delay is reduced, the current service device directly uses the target configuration data in the local cache to complete the current service processing, the service processing delay is reduced, the service response speed is improved, and the service configuration efficiency is further improved. In addition, in the embodiment of the application, on the basis that the configuration data can only be acquired through the mechanism type at present, a method for acquiring the configuration data through the mechanism English abbreviation and the shortcut mechanism type is provided, so that the flexibility of acquiring the configuration data is improved. Moreover, the service configuration server performs authority authentication on the identity information of the issued and updated configuration data, thereby avoiding the stored configuration data from being maliciously tampered, and further improving the safety of service configuration. Furthermore, the bank information can be conveniently and quickly modified through the service configuration system, the problem can be timely returned, and the disaster tolerance capability of the service configuration system enables all the modules to acquire the bank information more stably.
The above description is only an example of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims (15)

1. A service configuration method is applied to at least one service device corresponding to a current service, and is characterized by comprising the following steps:
receiving a service request corresponding to the current service;
responding to the service request, and acquiring target configuration data corresponding to the service request from a local configuration data set; the local configuration data set is obtained by acquiring a current configuration data set in a service configuration server through a preset calling interface and then synchronously updating the current configuration data set to the local;
and realizing the current service by using the target configuration data.
2. The method of claim 1, wherein before the obtaining the target configuration data corresponding to the service request from the local configuration data set in response to the service request, the method further comprises:
and synchronously receiving the current configuration data set pushed by the service configuration server through the preset calling interface to update the local configuration data set.
3. The method of claim 1, wherein before the obtaining the target configuration data corresponding to the service request from the local configuration data set in response to the service request, the method further comprises:
monitoring whether a current configuration data set in the service configuration server is consistent with the local configuration data set through a unified timing task;
and when the current configuration data set is inconsistent with the local configuration data set, synchronously pulling the current configuration data set from the service configuration server through the preset calling interface to update the local configuration data set.
4. The method according to any one of claims 1 to 3, wherein the obtaining, in response to the service request, target configuration data corresponding to the service request from a local configuration data set comprises:
responding to the service request, and acquiring index information of configuration data required by the current service; the index information comprises at least one item of mechanism type, mechanism English abbreviation and shortcut service type of a service mechanism corresponding to the service request;
and acquiring the target configuration data from the local configuration data set according to the index information.
5. A service configuration method is applied to a service configuration server, and comprises the following steps:
when a data updating request is received, generating a current configuration data set based on the data updating request;
and synchronizing the current configuration data set to at least one service device corresponding to the current service through a preset calling interface so that the at least one service device can synchronously use the current configuration data set to update respective local configuration data sets, and realizing the current service based on the local configuration data sets.
6. The method of claim 5, wherein the data update request comprises: a data release request;
when a data update request is received, generating a current configuration data set based on the data update request, including:
when the data release request is received through a preset management interface, acquiring at least one to-be-released configuration data contained in the data release request;
and responding to the data publishing request, and newly adding the at least one to-be-published configuration data to an original configuration data set so as to obtain the current configuration data set.
7. The method of claim 5, wherein the data update request comprises: a data modification request;
when a data update request is received, generating a current configuration data set based on the data update request, including:
when the data modification request is received through a preset management interface, acquiring at least one to-be-modified configuration data contained in the data modification request;
and responding to the data modification request, and modifying at least one original configuration data corresponding to an original configuration data set by using the at least one configuration data to be modified to obtain the current configuration data set.
8. The method of any of claims 5-7, wherein prior to generating the current configuration dataset based on the data update request, the method further comprises:
authenticating the identity information corresponding to the data updating request to obtain an authentication result;
and when the authentication result is failed, not executing the update of the currently stored configuration data set.
9. A service provisioning system, comprising:
the service configuration server is used for receiving a data updating request; generating a current configuration data set based on the data update request; synchronizing the current configuration data set to at least one service device corresponding to the current service through a preset calling interface;
the terminal is used for receiving a service request corresponding to the current service; sending the service request to the at least one service device;
the at least one service device is configured to respond to the service request, obtain target configuration data corresponding to the service request from a local configuration data set, and implement the current service using the target configuration data.
10. The system of claim 9, wherein the service provisioning system further comprises: a forwarding device; the at least one service device comprises: a first service server and a second service server; the target configuration data includes: first target configuration data and second target configuration data; the local configuration data set includes: first local configuration data and second local configuration data;
the terminal is used for receiving a service request corresponding to the current service; sending the service request to the first service server;
the first service server is used for responding to the service request and acquiring first target configuration data corresponding to the service request from a first local configuration data set; verifying based on the first target configuration data, and forwarding the service request to the second service server through the forwarding device when the verification is passed;
the second service server is used for responding to the service request and acquiring second target configuration data corresponding to the service request from a second local configuration data set; and performing verification based on the second target configuration data, and executing the current business when the verification is passed.
11. A business device, comprising:
the first receiving module is used for receiving a service request corresponding to the current service;
the acquisition module is used for responding to the service request and acquiring target configuration data corresponding to the service request from a local configuration data set; the local configuration data set is obtained by acquiring a current configuration data set in a service configuration server through a preset calling interface and then synchronously updating the current configuration data set to the local;
and the service processing module is used for realizing the current service by using the target configuration data.
12. A service provisioning server, comprising:
the generating module is used for generating a current configuration data set based on the data updating request when the data updating request is received through the second receiving module;
and the first synchronization module is used for synchronizing the current configuration data set to at least one service device corresponding to the current service through a preset calling interface so that the at least one service device can synchronously use the current configuration data set to update respective local configuration data sets, and the current service is realized based on the local configuration data sets.
13. A business device, comprising:
a first memory for storing executable instructions;
a first processor for implementing the method of any one of claims 1 to 4 when executing executable instructions stored in the first memory.
14. A service provisioning server, comprising:
a second memory for storing executable instructions;
a second processor, adapted to perform the method of any of claims 5 to 8 when executing the executable instructions stored in the second memory.
15. A computer-readable storage medium storing executable instructions for performing the method of any one of claims 1 to 4 when executed by a first processor or performing the method of any one of claims 5 to 8 when executed by a second processor.
CN202011092937.8A 2020-10-13 2020-10-13 Service configuration method, device, system and computer readable storage medium Active CN114422343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011092937.8A CN114422343B (en) 2020-10-13 2020-10-13 Service configuration method, device, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011092937.8A CN114422343B (en) 2020-10-13 2020-10-13 Service configuration method, device, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114422343A true CN114422343A (en) 2022-04-29
CN114422343B CN114422343B (en) 2023-12-29

Family

ID=81260506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011092937.8A Active CN114422343B (en) 2020-10-13 2020-10-13 Service configuration method, device, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114422343B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928453A (en) * 2022-05-19 2022-08-19 芯跳科技(广州)有限公司 USB device security verification method, system, electronic device and storage medium
CN115022718A (en) * 2022-06-02 2022-09-06 湖南国科微电子股份有限公司 Data importing method and data transmitting method
CN115150264A (en) * 2022-06-28 2022-10-04 中国电信股份有限公司 Service providing method and device, computer readable storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487557A (en) * 2015-08-31 2017-03-08 腾讯科技(深圳)有限公司 A kind of service updating method of application, device, server and terminal unit
CN108196879A (en) * 2018-01-09 2018-06-22 平安科技(深圳)有限公司 Method for processing business, device, equipment and computer readable storage medium
CN110244987A (en) * 2019-06-18 2019-09-17 腾讯科技(深圳)有限公司 Configuration data processing method, device, readable storage medium storing program for executing and computer equipment
CN110569256A (en) * 2019-09-10 2019-12-13 政采云有限公司 business processing method and device, electronic equipment and storage medium
CN110601880A (en) * 2019-09-02 2019-12-20 平安科技(深圳)有限公司 Cloud platform, service processing method, command interface and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487557A (en) * 2015-08-31 2017-03-08 腾讯科技(深圳)有限公司 A kind of service updating method of application, device, server and terminal unit
CN108196879A (en) * 2018-01-09 2018-06-22 平安科技(深圳)有限公司 Method for processing business, device, equipment and computer readable storage medium
CN110244987A (en) * 2019-06-18 2019-09-17 腾讯科技(深圳)有限公司 Configuration data processing method, device, readable storage medium storing program for executing and computer equipment
CN110601880A (en) * 2019-09-02 2019-12-20 平安科技(深圳)有限公司 Cloud platform, service processing method, command interface and computer equipment
CN110569256A (en) * 2019-09-10 2019-12-13 政采云有限公司 business processing method and device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928453A (en) * 2022-05-19 2022-08-19 芯跳科技(广州)有限公司 USB device security verification method, system, electronic device and storage medium
CN115022718A (en) * 2022-06-02 2022-09-06 湖南国科微电子股份有限公司 Data importing method and data transmitting method
CN115022718B (en) * 2022-06-02 2024-03-22 湖南国科微电子股份有限公司 Data importing method and data transmitting method
CN115150264A (en) * 2022-06-28 2022-10-04 中国电信股份有限公司 Service providing method and device, computer readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN114422343B (en) 2023-12-29

Similar Documents

Publication Publication Date Title
CN111314141B (en) Route updating method and device
US10880287B2 (en) Out of box experience application API integration
US11693746B2 (en) Systems and methods for enabling a highly available managed failover service
CN114422343B (en) Service configuration method, device, system and computer readable storage medium
CN108958927A (en) Dispositions method, device, computer equipment and the storage medium of container application
US10257110B2 (en) Using a template to update a stack of resources
US11366728B2 (en) Systems and methods for enabling a highly available managed failover service
US11341005B2 (en) Systems and methods for enabling a highly available managed failover service
WO2014152078A1 (en) Application architecture supporting multiple services and caching
CN112636992B (en) Dynamic routing method, device, equipment and storage medium
CN108664289B (en) Service data processing method and terminal equipment
CN112148798A (en) Data processing method and device applied to distributed system
US20220276878A1 (en) Method and apparatus for generating image file and computer-readable storage medium
EP4207688A1 (en) Asynchronous bookkeeping method and apparatus for blockchain, medium, and electronic device
CN110673941A (en) Migration method of micro-services in multiple computer rooms, electronic equipment and storage medium
CN109413140A (en) The method of PACS server remote automatic upgrading
WO2020258666A1 (en) Distributed system and data processing method
CN109891849A (en) Highly usable and reliable secret distribution infrastructure
US20120311375A1 (en) Redirecting requests to secondary location during temporary outage
US20130124971A1 (en) Real time web script refresh using asynchronous polling without full web page reload
WO2022142536A1 (en) Grayscale publishing method, system and apparatus, and device and storage medium
CN110442601A (en) A kind of method and apparatus that Openstack mirror image data accelerates parallel
CN109347936A (en) Implementation method, system, storage medium and the electronic equipment of Redis agent client
CN112925589B (en) Calling method and device of expansion interface
CN115827316A (en) Data backup method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40070334

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant