CN114422343B - 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
CN114422343B
CN114422343B CN202011092937.8A CN202011092937A CN114422343B CN 114422343 B CN114422343 B CN 114422343B CN 202011092937 A CN202011092937 A CN 202011092937A CN 114422343 B CN114422343 B CN 114422343B
Authority
CN
China
Prior art keywords
service
configuration data
data set
current
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011092937.8A
Other languages
Chinese (zh)
Other versions
CN114422343A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a service configuration method, device, system and 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 a 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 synchronously updating the current configuration data set in the service configuration server to the local through a preset calling interface after the current configuration data set is acquired; and realizing the current service by using the target configuration data. By the method and the device, the service configuration efficiency can be improved.

Description

Service configuration method, device, system and computer readable storage medium
Technical Field
The present application relates to internet technology, and in particular, to a service configuration method, device, system, and computer readable storage medium.
Background
In the current scenes such as network payment or network repayment, when each service module related to payment or repayment service needs to acquire the bank information required by processing related service, the corresponding bank information is acquired in a local configuration file of each service module or in a database outside each service module, however, in the case of acquiring the bank information from the local configuration file, multiple repeated bank information needs to be configured in each service module in advance, and each service module needs to be synchronized during modification and updating, so that the efficiency of service configuration is reduced. For the situation that bank information is acquired from a database, when each service module initiates a data reading request in real time, a larger request amount is brought to the database, and service processing performance is affected; in addition, in the business processing scene of the financial institutions, strict authority management and complicated modification processes are required for modifying and adding bank information in the database, so that the business configuration efficiency is further reduced.
Disclosure of Invention
The embodiment of the application provides a service configuration method, device, system and computer readable storage medium, which can improve the efficiency of service configuration.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a service configuration method, which is applied to at least one service device corresponding to a current service, and comprises the following steps:
receiving a service request corresponding to a 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 using the target configuration data to realize the current service.
The embodiment of the application provides a service configuration method, which is applied to a service configuration server and comprises the following steps:
generating a current configuration data set based on a data update request when the data update request is received;
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 update the respective local configuration data set by using the current configuration data set, and realizing the current service based on the local configuration data set.
The embodiment of the application provides a service configuration system, which comprises:
the service configuration server is used for receiving the data update 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; transmitting the service request to the at least one service device;
and the at least one service device is used for responding to the service request, acquiring target configuration data corresponding to the service request from a local configuration data set, and realizing the current service by using the target configuration data.
In the above 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 dataset comprises: 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 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 verifying based on the second target configuration data, and executing the current service when verification passes.
The embodiment of the application provides service equipment, which comprises:
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 above service device, the service device further includes a second synchronization module, where the second synchronization module is configured to synchronously receive, through the preset call interface, a current configuration data set pushed by the service configuration server to update the local configuration data set before the target configuration data corresponding to the service request is acquired from the local configuration data set in response to the service request.
In the above service device, the second synchronization module is further configured to monitor, by means of a unified timing task, whether a current configuration data set in the service configuration server is consistent with the local configuration data set before the target configuration data corresponding to the service request is acquired from the local configuration data set in response to the service request; and synchronously pulling the current configuration data set from the service configuration server to update the local configuration data set through the preset calling interface when the current configuration data set is inconsistent with the local configuration data set.
In the above service device, the obtaining module is further configured to obtain index information of configuration data required by the current service in response to the service request; the index information comprises at least one of a mechanism type, an English abbreviation and a 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.
The embodiment of the application provides a service configuration server, which comprises the following components:
a generation module for generating a current configuration data set based on a data update request when the data update request is received through a second receiving module;
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 update the respective local configuration data set by using the current configuration data set, and the current service is realized based on the local configuration data set.
In the above service configuration server, the data update request includes: a data release request; the generation module is further configured to obtain at least one configuration data to be distributed, which is included in the data distribution request, when the data distribution request is received through a preset management interface; and responding to the data release request, and adding the at least one configuration data to be released into an original configuration data set, thereby obtaining the current configuration data set.
In the above service configuration server, the data update request includes: a data modification request; the generating module is further configured to obtain at least one configuration data to be modified included in the data modification request when the data modification request is received through a preset management interface; and responding to the data modification request, and correspondingly modifying at least one original configuration data in the original configuration data set by using the at least one configuration data to be modified to obtain the current configuration data set.
In the above 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 the current configuration data set based on the data update request, to obtain an authentication result; and when the authentication result is that the data does not pass, not updating the currently stored configuration data set.
The embodiment of the application provides service equipment, which comprises:
a first memory for storing executable instructions;
and the first processor is used for realizing the service configuration method provided by the embodiment of the application when executing the executable instructions stored in the first memory.
The embodiment of the application provides a service configuration server, which comprises the following components:
a second memory for storing executable instructions;
and the second processor is used for realizing the service configuration method provided by the embodiment of the application when executing the executable instructions stored in the second memory.
The embodiment of the application provides a computer readable storage medium, which stores executable instructions for implementing the service configuration method provided by the embodiment of the application when being executed by a first processor or a second processor.
The embodiment of the application has the following beneficial effects:
the service equipment can synchronously and simultaneously acquire the latest configuration data in the service configuration server through the preset calling interface, so that the latest configuration data can be immediately acquired by the service equipment only by uniformly issuing, 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 time delay of service configuration is reduced, and the service configuration efficiency is further improved.
Drawings
Fig. 1 is an optional 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 an embodiment of the present application;
fig. 2-2 are schematic structural diagrams of an alternative service configuration server according to an embodiment of the present application;
fig. 3 is an alternative flow chart of a service configuration method provided in an embodiment of the present application;
fig. 4 is an alternative flow chart of a service configuration method provided in an embodiment of the present application;
Fig. 5-1 is an alternative flow diagram of a service configuration method according to an embodiment of the present application;
fig. 5-2 is an alternative flow diagram of a service configuration method according to an embodiment of the present application;
fig. 6 is an alternative flow chart of a service configuration method provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of an alternative architecture of a service configuration system architecture provided by embodiments of the present application;
fig. 8 is a schematic flow chart of an alternative service configuration method provided in an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail with reference to the accompanying drawings, and the described embodiments should not be construed as limiting the present application, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the 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 to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
If a similar description of "first/second" appears in the application document, the following description is added, in which the terms "first/second/third" are merely distinguishing between similar objects and not representing a particular ordering of the objects, it being understood that the "first/second/third" may be interchanged with a particular order or precedence, if allowed, so that the embodiments of the application described herein may be implemented in an order other than that 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 present application.
Currently, in an online application scenario of a financial institution, such as online repayment of a credit card, when a background server of the financial institution receives a repayment request of a user, a real-time repayment process is started through a plurality of service modules. The bank information of all repayment rows needs to be pre-configured in each service module configuration file, so that when the service module is started, the bank information can be read from the service module configuration file to the service module memory, and then the related bank information can be acquired from the service module memory. If the bank information of the repayment bank needs to be modified and newly added, the configuration files of all business modules where the bank is located need to be updated to be effective. It can be seen that this way needs to configure multiple copies of repeated bank information data in each service module, when there are more modules involved in the payment or repayment service flow, it will cause maintenance difficulty and error easily, and meanwhile, as the bank information increases, the content of the configuration file will increase, and the time consumed for resolving the configuration file increases, thereby reducing the efficiency of service configuration. Or, the current bank information is also 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 can be acquired from the database in real time through a method called by an interface in the repayment process. However, the method brings larger request quantity to the database, and data request congestion is easy to occur, so that certain influence is generated on the service processing performance of the service module, and the service processing efficiency is reduced; moreover, as the number of payouts increases, the time required to read all the bank information from the database increases when the business module needs to obtain the bank information of all the payouts. Affecting the service configuration efficiency.
The embodiment of the application provides a service configuration method, device, system and computer readable storage medium, which can improve service configuration efficiency, 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, etc. The terminal provided in 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 (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, and a portable game device), and the at least one service device and the service configuration server provided in the embodiment of the present application may be implemented as a server. An exemplary application of the service configuration system provided in the embodiment of the present application is described below.
Referring to fig. 1, fig. 1 is a schematic diagram of an alternative architecture of a service configuration system 100 according to an embodiment of the present application, in order to support a service processing application, a terminal 400 is connected to at least one service device 200 through a network 300_1, and at least one service device 200 is connected to a service configuration server 500 through a network 300_2. Wherein, at least one service device 200 is used for implementing different links corresponding to the current service processing procedure in the service configuration system 100. In some embodiments, the terminal may connect to the interface service device 200_1 in 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 repayment application, the current service may be a repayment service, the service request may be a repayment request initiated by a user to a financial institution, the terminal 400 may initiate a repayment request to the financial institution through the financial repayment application, submit the repayment request to at least one service device 200 corresponding to the repayment service, and the at least one service device 200 processes the service request through respective corresponding service functions. The at least one service device 200 is configured to obtain, in response to a service request, 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 acquire configuration data required by a service request during a service request processing process, target configuration data corresponding to the service request can be acquired from a local configuration data set, and then the current service is completed by using the target configuration data. The local configuration data set is obtained by at least one service device 200 through a preset calling interface in advance, synchronously acquiring a current configuration data set from the service configuration server 500, and updating the original 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 service configuration server 500 may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms. 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, etc. The terminal and the at least one service device 200 may be directly or indirectly connected through a wired or wireless communication manner, which is not limited in the embodiment of the present application.
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 appreciated that the first bus system 440 is used to enable connected communication 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. But for clarity of illustration 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, digital Signal Processor), 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 displays, that enable 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 drives, optical drives, and the like. The first memory 450 optionally includes one or more storage devices physically remote from the first processor 410.
The first memory 450 includes 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, random Access Memory). The first memory 450 described in the 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, such as a framework layer, a core library layer, a driver layer, etc., for handling various basic system services and performing hardware-related tasks, for implementing various basic services and handling hardware-based tasks;
a first network communication module 452 for reaching other computing devices via one or more (wired or wireless) first network interfaces 420, the exemplary first network interface 420 comprising: bluetooth, wireless compatibility authentication (WiFi), and universal serial bus (USB, universal Serial Bus), etc.;
a first presentation module 453 for enabling presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more first output devices 431 (e.g., a display screen, a speaker, 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 configuration server 500 provided in an embodiment of the present application, and the service configuration 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 configuration 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 configuration server 500 are coupled together by a second bus system 540. It is appreciated that the second bus system 540 is used to enable connected communications between 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. But for clarity of illustration the various buses are labeled as a second bus system 540 in fig. 2-2.
The second processor 510 may be an integrated circuit chip with signal processing capabilities such as a general purpose processor, a digital signal processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc., where the general purpose processor may be a microprocessor or any conventional processor, etc.
The second user interface 530 includes one or more second output devices 531 that enable 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 drives, optical drives, and the like. The second memory 550 may optionally include one or more storage devices physically remote from the second processor 510.
The second memory 550 includes 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, random Access Memory). The secondary memory 550 described in embodiments herein is intended to comprise any suitable type of memory.
In some embodiments, the secondary memory 550 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 second operating system 551 including system programs for handling 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 handling hardware-based tasks;
a second network communication module 552 for reaching other computing devices via one or more (wired or wireless) second network interfaces 520, the exemplary second network interface 520 comprising: bluetooth, wireless compatibility authentication (WiFi), and universal serial bus (USB, universal Serial Bus), etc.;
a second rendering module 553 for enabling the rendering of information (e.g., a user interface for operating a peripheral device and displaying content and information) via one or more second output devices 531 (e.g., a display screen, 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 apparatus; when the service configuration server is implemented in software, 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., comprising the following software modules: the receiving module 4551, the acquiring module 4552 and the service processing module 4553 are logical, and thus may be arbitrarily combined or further split according to the implemented functions. Fig. 2-2 shows a service configuration device 555 stored in a second memory 550, which may be software in the form of programs and plug-ins, etc., comprising the following software modules: the generation module 5551, the first synchronization module 5552, are logical, and thus may be arbitrarily combined or further split depending on the implemented functionality.
The functions of the respective modules will be described hereinafter.
In other embodiments, the service device or service configuration server provided by the embodiments of the present application may be implemented in hardware, and by way of example, the service device or service configuration server provided by the embodiments of the present application may be a processor in the form of a hardware transcoding processor that is programmed to perform the service configuration method provided by the embodiments of the present application, for example, the processor in the form of a hardware transcoding processor may employ one or more application specific integrated circuits (ASIC, application Specific Integrated Circuit), DSP, programmable logic device (PLD, programmable Logic Device), complex programmable logic device (CPLD, complex Programmable Logic Device), field programmable gate array (FPGA, field-Programmable Gate Array), or other electronic component.
The service configuration method provided by the embodiment of the present application will be described with reference to exemplary applications and implementations of the terminal provided by the embodiment of the present application.
Referring to fig. 3, fig. 3 is an optional flowchart of a service configuration method according to an 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 a current service.
In the embodiment of the present application, when the service request is the service request to be completed when the whole flow of the current service is executed by each service device, each service device processes the corresponding flow link, where the current service is at least one service device.
In this embodiment, at least one service device is configured to implement a service processing flow of a service mechanism in a service configuration system, where 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, and specifically selected according to actual situations, which is not limited in the embodiments of the present application.
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 service device at a previous stage 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 synchronously updating the current configuration data set in the service configuration server to the local through a preset calling interface after the current configuration data set is acquired.
In the embodiment of the application, at least one service device responds to a service request, analyzes the service request, acquires index information of configuration data required by the service request, and acquires target configuration data corresponding to the service request from a local configuration data set according to the index information so as to use the target configuration data to perform corresponding processing on the service request.
In the embodiment of the present application, the local configuration data set is obtained by acquiring the current configuration data set in the service configuration server through a preset call interface, and then synchronously updating the current configuration data set to the local. In some embodiments, the local configuration data set may store configuration data as 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 in the mechanism information corresponding to the 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 the current configuration data set in the service configuration server through a preset calling interface; the service configuration system comprises at least one service device, at least one service device and a service configuration system, wherein the at least one service device is used for realizing at least one service in a service processing flow in the service configuration system; at least one service device is interconnected with the service provisioning server via a network.
In the embodiment of the application, the service configuration server is a service storage system with low delay, large concurrency and strong disaster tolerance capability, and can be deployed on one entity host or a plurality of entity hosts. In some embodiments, the service configuration server encapsulates the operations of the database, the file and the memory inside, and only provides a preset calling interface for the caller to query the stored data information.
In this embodiment of the present application, the preset call interface is used to connect a data transmission channel between at least one service device and a service configuration server. In some embodiments, the preset calling interface may be implemented through a data calling method and a network socket, and specifically selected according to actual situations, 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 with a storage function, so as to implement aggregate storage of configuration data. In some embodiments, the service configuration server may be a high-availability database cluster system, or may be another third party configuration system with disaster recovery and rollback capability, which is specifically selected according to the actual situation, and the embodiments of the present application are not limited.
In the embodiment of the application, the service configuration server stores a configuration data set required by at least one service device for service processing, and the service configuration server can provide an interface for modifying and releasing the configuration data externally so as to update the configuration data set. The current configuration data set is a configuration data set acquired from the service configuration server in the current state. In some embodiments, the current configuration data set may be a complete set of configuration data sets stored in the service configuration server in the current state, for which case each service device may be updated in its entirety based on the current configuration data set. In some embodiments, the current configuration data set may also be a configuration data set currently stored in the service configuration server compared to the configuration data set updated by the last state, in which case each service device may be differentially updated based on the current configuration data set. The range of the current configuration data set is specifically selected according to practical situations, and the embodiment of the application is not limited.
In this embodiment of the present application, after each service device synchronously acquires a current configuration data set in a service configuration server, a current configuration data set, that is, a local configuration data set is used to perform synchronous update.
In the embodiment of the application, each service device can maintain the local configuration data set in a storage device, such as a cache, on the local host, so that the local storage can be quickly accessed to acquire when the configuration data needs to be acquired, and the time delay of interaction with the server is reduced.
In this embodiment of the present invention, after obtaining the current configuration data set, each service device may update the local configuration data set synchronously according to 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 consistent with the configuration data in the configuration data set stored in the service configuration server, and synchronous update of the local configuration data set is completed.
S103, at least one service device uses the target configuration data to realize the current service.
In the embodiment of the present 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, thereby finally completing 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 in connection with each step.
S201, when the service configuration server receives the data update request, a current configuration data set is generated based on the data update request.
In this embodiment, when the service configuration server receives the data update request, the original configuration data set stored by itself is updated according to the request content of the data update request and the carried update configuration data, so as to generate the current configuration data set.
In this embodiment of the present application, the data update request may be a release request for creating a configuration data set in the service configuration server, or newly adding configuration data in the original configuration data set, or may be a modification request for modifying the 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, a maintainer can initiate a data update request through a preset interface provided by the service configuration server, such as a front interface platform and the like, so as to realize data maintenance of the service configuration server.
S202, the service configuration server synchronizes 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 update the respective local configuration data sets by using the current configuration data set, and the current service is realized based on the local configuration data sets.
In this embodiment of the present application, after the service configuration server generates the latest current configuration data set based on the data update request, the current configuration data set may be synchronized with at least one service device corresponding to the current service through a preset call interface, so that the at least one service device may acquire the latest updated configuration data simultaneously and immediately.
In the embodiment of the application, the service configuration server can actively push the current configuration data set to at least one service device through the preset calling interface, and can also accept synchronous pulling of the current configuration data set by the at least one service device, so that synchronous synchronization of the at least one service device is realized.
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 call interface, so that it is only necessary to uniformly issue, add and modify the configuration data in the service configuration server, so that the at least one service device can immediately obtain the latest configuration data, thereby improving efficiency of issuing and maintaining the configuration data, and further improving efficiency of service configuration; and at least one service device acquires the target configuration data from the local configuration data set, so that the time delay of service configuration 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 this embodiment of the present application, based on the system architecture shown in fig. 1, the flow of the service configuration method between 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 the steps will be described in conjunction with each other.
S301, the terminal initiates a service request corresponding to the current service.
In the embodiment of the application, when receiving 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 the terminal, instruct the terminal to perform service processing of a current service, and when the terminal receives the user service operation instruction, initiate a service request corresponding to the current service to at least one service device.
S302, at least one business device inquires whether target configuration data exists from the 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, where when a current service device in at least one service device needs to obtain target configuration data in a service processing process, the current service device may first query whether there is target configuration data from a local configuration data set of the local service device.
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 the service configuration server through a preset calling interface.
In the embodiment of the application, the configuration data reading request is used for acquiring 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 acquire the required target configuration data from the service configuration server.
In some embodiments, the current service device may initiate a configuration data read request to the service configuration server through a preset call interface through a proxy server on the local machine.
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 this embodiment of the present application, after receiving a configuration data reading request sent by a current service device in 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 this embodiment of the present application, the configuration data read 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 acronym, 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 can be used for determining target configuration data according to index information, such as English abbreviation of a mechanism, which is matched with corresponding target mechanism information in a configuration data set stored by the service configuration server.
In some embodiments, the business entity may be a bank and the index information may be a 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, and determine all 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 a common binding card in a credit card payment application scenario, a credit card bank type may be used as index information, and credit card payment bank information may be obtained through the credit card bank type; for the application scene of the shortcut binding card or the third party binding card, the shortcut bank type can be used as index information, and the credit card repayment bank information can be obtained through the shortcut bank type.
S305, the service configuration server sends the target configuration data to the current service equipment so that the current service equipment can complete 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 device which makes a configuration data reading request, so that the current service device can correspondingly acquire the target configuration data required by service processing, and further the service processing of the service flow link where the current service device is located is completed.
S306, at least one service device completes the current service by using the target configuration data, saves the target configuration data in the 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 after the at least one service device finishes the processing of the current service together, the at least one service device returns a service processing result to the terminal.
In the embodiment of the application, the current service device can store the acquired target configuration data in the local configuration data set thereof, so that the configuration data can be quickly acquired from the local configuration data set later, and the service configuration efficiency is improved.
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 on the terminal interface for the user.
It may be understood that in the embodiment of the present application, when at least one service device does not find the target configuration data in the local configuration data set, the latest configuration data may be read from the service configuration server in a unified manner through the preset call interface, and the target configuration data is stored in the local configuration data set so as to be quickly called next, so that it is ensured that the at least one service device may keep data consistent in the service processing process through the configuration data set unified and is convenient to modify and update the configuration data, thereby improving the efficiency of service configuration. In addition, in the embodiment of the application, on the basis that configuration data can only be acquired through the mechanism type at present, a method for acquiring the configuration data through English abbreviations of the mechanism and the shortcut mechanism type is provided, and flexibility of acquiring the configuration data is improved.
It should be noted that, in some embodiments, S102 shown in fig. 3 may be implemented by S1021-S1022 as follows:
S1021, responding to a service request, and acquiring index information of configuration data required by the current service; the index information comprises at least one of the organization type, the English abbreviation and the shortcut business type of the business organization corresponding to the business request.
In this embodiment of the present application, the process of obtaining the index information of the configuration data required by the current service by at least one service device is similar to the process of obtaining the index information by the service configuration server in S304 according to the service request, which is not described herein again.
S1022, at least one service device acquires target configuration data from the local configuration data set according to the index information.
In this embodiment of the present application, the process of obtaining the target configuration data from the local configuration data set according to the index information by at least one service device is similar to the process of obtaining the target configuration data from the index information by the service configuration server in S304, and will not be described herein.
In some embodiments, referring to fig. 5-1, fig. 5-1 is a schematic flow chart of an alternative service configuration method provided in the embodiment of the present application, S201 shown in fig. 3 may be implemented by two parallel method flows of S2011-S2012, or S2013-S2014, and the following description will be made with reference to the steps:
S2011, when the service configuration server receives the data release request through a preset management interface, acquiring at least one configuration data to be released, which is contained in the data release request.
S2012, the service configuration server responds to the data release request, and newly adds at least one configuration data to be released into the original configuration data set, so that the current configuration data set is obtained.
In this embodiment, the data update request includes a data release request, where the data release request is used to create or add a configuration data set in a storage of the service configuration server. When the service configuration server receives a data release request through a preset management interface, at least one configuration data to be released, which is contained in the data release request, is obtained from the data release request, and the at least one configuration data to be released is newly added into the original configuration data set in response to the data release request, so that the current configuration data set is obtained.
In this embodiment of the present application, the preset management interface is an interface provided externally by the service configuration server and used for managing the configuration data set stored internally. In some embodiments, the preset management interface may be a visual front-end interface, or may be a code instruction interface of a command line.
In some embodiments, the organization maintainer may initiate a data publishing request through the front-end interface with the constructed at least one organization information as the 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 receives at least one organization information in response to the data distribution request and stores the at least one organization information in its back-end storage to provide the at least one newly distributed organization information to the at least one service device.
In this embodiment of the present application, the service configuration server may store at least one mechanism information in a JS object numbered musical notation ((JavaScript Object Notation, json) format in a back-end storage, or may be in an extensible markup language (eXtensible Markup Language, xml) format, or a serialized data protocol structure (Google Protocol Buffers, protobuf) format, or may store the mechanism information in another data format, and specifically select the mechanism information according to an actual situation.
S2013, when the service configuration server receives the data modification request through the preset management interface, at least one configuration data to be modified contained in the data modification request is obtained.
S2014, the service configuration server responds to the data modification request, and correspondingly modifies at least one original configuration data in the original configuration data set by using at least one configuration data to be modified to obtain a current configuration data set.
In this embodiment, the data update request includes a data modification request, where the data modification request is used to modify original configuration data in the original configuration data set. When the service configuration server receives a data modification request through a preset management interface, acquiring at least one configuration data to be modified contained in the data modification request, finding out original configuration data corresponding to the at least one configuration data to be modified in an original configuration data set, using the at least one configuration data to be modified to correspond to the at least one original configuration data, and determining the obtained modified configuration data set as a current configuration data set.
In some embodiments, when a business organization such as a bank or a repayment side needs to modify the bank information, for example, modifying the bank chinese name, modifying the bank mark, etc., only the corresponding bank information needs to be modified in the business configuration server, and all the 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 one of the method flows may be selected for implementation according to actual situations in practical application, 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 publishing or modifying configuration data, a to-be-published configuration data set or to-be-modified configuration data may be uniformly stored in a service configuration server through a preset management interface, so that at least one service device may obtain, by accessing the service configuration server, the latest published configuration data synchronously, thereby achieving the effect of timely validating the published information, so that multiple sets of repeated configuration data do not need to be configured in a configuration file of each service module, and the problems of repeated configuration data storage, more associated modules, slower configuration data validation, complex access procedure of new configuration data, inconsistency of configuration data in the publishing process and the like are solved, and the efficiency of service configuration is improved.
In some embodiments, referring to fig. 5-2, fig. 5-2 is a schematic flow chart of an alternative service configuration method provided in the embodiment of the present application, and before S101 shown in fig. 3, two parallel method flows of S001, or S002-S003 may be further performed, which will be described in connection with the steps.
S001, at least one service device synchronously receives the current configuration data set pushed by the service configuration server to update the local configuration data set through a preset calling interface.
In the embodiment of the application, at least one service device can synchronously receive the pushing of the service configuration server through a preset calling interface, acquire the current configuration data set in a passive mode, and update the local configuration data set based on the acquired current configuration data set.
And S002, at least one service device monitors whether the current configuration data set in the service configuration server is consistent with the local configuration data set through the unified timing task.
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 every 10 minutes, and illustratively, may compare version numbers of the two, or update time, etc., 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 one of the two optional parallel method flows may be selected for implementation according to practical situations in practical application, which is not limited in the embodiment of the present application.
It can be understood that in the embodiment of the present application, at least one service device may simultaneously and synchronously acquire the latest updated configuration data set from the service configuration server, so as to avoid inconsistency of configuration data between at least one service device, and achieve the effect that when the configuration data set is modified and updated, the latest updated configuration data set may be simultaneously validated in at least one service device, thereby improving service configuration efficiency.
In some embodiments, referring to fig. 6, fig. 6 is a schematic flow chart of an alternative service configuration method provided in the embodiment of the present application, based on fig. 3, S501-S502 may be further performed before S201, and the following steps will be described in conjunction with the following steps:
s501, the service configuration server authenticates the identity information corresponding to the data updating request to obtain an authentication result.
S502, when the authentication result is that the data does not pass, the service configuration server does not execute updating of the currently stored configuration data set.
In this embodiment of the present application, before receiving a data update request, a service configuration server may first obtain identity information corresponding to the data update request, and authenticate the identity information.
In some embodiments, before receiving the data release request, the service configuration server may authenticate the identity information logged in on the login interface through the login interface on the front-end interface, and when the authentication result passes, allow the identity information to log in the service configuration server; and rejecting the identity information to log in the service configuration server when the authentication result is that the identity information fails, 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 can authenticate whether the identity information has data update authority, and when the identity information does not have the data update authority, the service configuration server determines that the authentication result is not passed, refuses the data update request, and does not execute the update of the configuration data set.
It can be understood that in the embodiment of the application, the service configuration server performs authority authentication on the identity information of the released and updated configuration data, so that the stored configuration data is prevented from being tampered maliciously, and the security of service configuration is improved.
In the 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 the embodiment of the present application. Based on fig. 1, as shown in fig. 7, the service configuration system 100 in fig. 1 further includes: forwarding device 600; the at least one service device 200 comprises: a first traffic server 200_1 and a second traffic server 200_2. The local configuration data set includes a first local configuration data set and a second local configuration data set, the target configuration data includes a first target configuration data set and a second target configuration data set, and 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. A first service server 200_1, configured to obtain, in response to a service request, first target configuration data corresponding to the service request from a first local configuration data set; the authentication is performed based on the first target configuration data, and when the authentication passes, the service request is forwarded to the second service server 200_2 through the forwarding apparatus 600. A second service server 200_2, configured to obtain, in response to the service request, second target configuration data corresponding to the service request from a second local configuration data set; and verifying based on the second target configuration data, and executing the current service when the verification passes.
In this embodiment of the present application, 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 be synchronized in advance through a preset call interface, acquire the current configuration data set from the service configuration server 500, load the current configuration data set into respective local stores, and use the current configuration data set to respectively store the local configuration data sets in the respective local stores, so as to obtain the first configuration data set and the second configuration data set.
In this embodiment of the present application, the terminal 400 may send the service request initiated by the user and received through the application 410 to the first service server 200_1, and the first service server 200_1 verifies the validity or effectiveness of the service request. The first service server 200_1 receives the service request sent by the terminal 400, analyzes the service information to be verified corresponding to the service request from the service request, acquires 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 display it by the application 410 on the terminal 400; when the authentication is passed, the first service server 200_1 transmits the service request passing the authentication to the forwarding apparatus 600, and the forwarding apparatus 600 forwards the service request to the second service server 200_2. Wherein, the second service server 200_2 may be at least one function server for implementing the current service, and when the second service server 200_2 receives the service request, the second service server 200_2 responds to the service request to obtain second target configuration data corresponding to the service request from the second local configuration data set; and verifying the service request based on the second target configuration data, and when the verification is passed, executing the current service by the second service server 200_2 through at least one function server contained in the second service server, finally completing the processing of the current service, returning the service processing result to the terminal 400, and prompting the service processing result to the user by the terminal 400 through the application 410.
It should be noted that, in the embodiment of the present application, the at least one service device 200 may be at least two service devices (for example, the first service server and the second service server), and when the at least one service device is the plurality of service devices, service devices with other service functions may also be included, for example, backup storage, fault recovery, and the like, which are specifically selected according to practical situations, and the embodiment of the present application is not limited. In addition, when at least one service device is more than two service devices, the service configuration system 100 may also include a plurality of forwarding devices 600, for forwarding service requests between the plurality of service devices, and the service configuration system is specifically selected according to the actual situation, which is not limited in this embodiment of the present application.
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 verify that the information is correct, the service request is forwarded to the next service server through a forwarding device.
In the following, an exemplary application of the embodiments of the present application in a practical application scenario will be described.
In this embodiment, for a credit card service scenario, the at least one service device may be at least one service server (i.e., corresponding to the first service server and the second service server) required for completing each service flow in different credit card service flows such as card opening, card binding, unbinding, activating, bill opening, payment, bill staging, and the like.
In some embodiments, referring to fig. 8, fig. 8 is a schematic diagram of a structure and a working process of a service configuration system in a credit card repayment service scenario provided in 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 of at least one service device may be a public gateway device, and a second service server of 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 (also may be understood as a third service server), where the timing polling device is configured to query, in a timing manner, a process node in a real-time repayment process, where an error occurs in the system or the network, and retry at the error node.
Next, taking credit card payment as an example, the service configuration method in the embodiment of the present application will be described with reference to each step in the credit card payment flow shown in fig. 8.
S401, the service configuration server receives a bank information release request sent by the front-end equipment, and stores the bank information to the service configuration server under the condition that the bank information release request passes the authority verification.
In this embodiment of the present invention, the request for issuing bank information may be initiated by a background maintainer of the credit card repayment platform logging in a front-end interface provided by the service configuration server through the front-end device and using the preset identity information, and then importing the bank information to be issued on the front-end interface through operation.
In this embodiment of the present application, the bank information corresponds to at least one configuration data to be distributed. The process of S401 is identical to the description of S2011-S2012, and will not be repeated here.
The service configuration server is a storage system with strong disaster recovery capability, large concurrency and low time delay.
S402, the timing polling device, the public gateway device and the service layer device in at least one service device monitor that the current bank information set stored in the service configuration server is changed through unified timing tasks, load the current bank information set from the service configuration server to respective local stores through a preset calling interface synchronously, and synchronously update the respective local bank information sets stored by the respective local stores 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 to obtain a second local bank information set, namely a second local configuration data set; the timing polling device uses the current bank information set to synchronously update the local bank information set thereof to obtain a third local bank information set which is used as a third local configuration data set.
After the timing polling device obtains the third local bank information set, when an error flow node appears in the repayment flow through the timing query task, a repayment retry is initiated at the error 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 repayment retry processing is performed by using the third target configuration data.
In the embodiment of the present application, the process of S402 is identical to that described in S002-S003, and will not be repeated here.
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 a current service, the terminal is used 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 in at least one service device, namely public gateway equipment.
S404, the public gateway equipment determines first target bank information from a first local bank information set according to the repayment request, verifies the repayment request by using the first target bank information, and when the verification passes, the public gateway equipment sends the repayment request to the request repeater.
In the embodiment of the application, the public gateway device analyzes the request parameters from the repayment request, and matches corresponding first target bank information from the first local bank information set according to repayment information, such as repayment payment type, repayment amount, repayment card number and the like, contained in the request parameters, 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. When the verification is passed, the repayment service corresponding to the repayment request is a valid 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 universal gateway interface device (Fast Common Gateway Interface, FCGI).
S405, the request relay forwards the repayment request to the service layer device.
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, performs specific repayment service processing according to the second target bank information when verification passes, and stores a repayment service processing result in a database for backup.
In some embodiments, the service layer device may correspondingly perform a series of payment operations in the actual payment process according to the second target bank information.
The repayment application is submitted to the paymate, the application result returned by the paymate is received, the repayment result of the paymate to be repayed is updated according to the application result, and the like, so that repayment service processing is gradually completed, and finally a repayment service processing result is generated.
In the embodiment of the application, after finishing the current repayment service, the service layer device stores the repayment service processing result in the database for backup.
In this embodiment of the present application, for other application scenarios such as bill staging or card opening service, at least one service device with other functions may also be included in the service configuration system to implement the corresponding current service, and service devices with the same functions may also be multiplexed with each other between different current services (for example, the first server and the forwarding device, and different services may only be different from service layer devices that ultimately execute the service).
It can be understood that in the embodiment of the application, the bank information can be conveniently and rapidly modified through the service configuration system, the problem can be timely retracted, and the disaster recovery capability of the service configuration system can also enable each module to acquire the bank information more stably.
Continuing with the description below, the service configuration device provided in the embodiments of the present application is implemented as an exemplary structure of a software module, and 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 acquiring 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 acquiring module 4552 is configured to acquire, in response to the service request, 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, configured to synchronously receive, through the preset call interface, the current configuration data set pushed by the service configuration server to update the local configuration data set before the target configuration data corresponding to the service request is acquired from the local configuration data set in response to the service request.
In some embodiments, the second synchronization module is further configured to monitor, by means of a unified timing task, whether a current configuration data set in the service configuration server is consistent with the local configuration data set before the target configuration data corresponding to the service request is acquired from the local configuration data set in response to the service request; and synchronously pulling the current configuration data set from the service configuration server to update the local configuration data set through the preset calling interface when the current configuration data set is inconsistent with the local configuration data set.
In some embodiments, the obtaining module 4552 is further configured to obtain index information of the configuration data required by the current service in response to the service request; the index information comprises at least one of a mechanism type, an English abbreviation and a 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 description below of exemplary structures in which the service configuration device provided in embodiments of the present application is implemented as a software module, in some embodiments, as shown in fig. 2-2, the software module stored in the service configuration device 555 of 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 generate, when a data update request is received through the second receiving module 5550, a current configuration data set based on the data update request;
the first synchronization module 5552 is configured to synchronize, through a preset call interface, the current configuration data set to at least one service device corresponding to a current service, so that the at least one service device uses the current configuration data set to update respective local configuration data sets in synchronization, and implement the current service based on the local configuration data sets.
In some embodiments, the data update request includes: a data release request; the generating module 5551 is further configured to obtain at least one configuration data to be distributed, where the configuration data is included in the data distribution request, when the data distribution request is received through a preset management interface; and responding to the data release request, and adding the at least one configuration data to be released into an original configuration data set, thereby obtaining the current configuration data set.
In some embodiments, the data update request includes: a data modification request; the generating module 5551 is further configured to obtain at least one configuration data to be modified included in the data modification request when the data modification request is received through a preset management interface; and responding to the data modification request, and correspondingly modifying at least one original configuration data in the original configuration data set by using the at least one configuration data to be modified to obtain the current configuration data set.
In some embodiments, the service configuration device 555 further includes an authentication unit, where the authentication unit is configured to authenticate identity information corresponding to the data update request before generating the current configuration data set based on the data update request, so as to obtain an authentication result; and when the authentication result is that the data does not pass, not updating the currently stored configuration data set.
It should be noted that the description of the above device embodiments is similar to the description of the method embodiments described above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments 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 the processor executes the computer instructions, so that the computer device executes the service configuration method according to the embodiment of the present application.
The present embodiments 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 the methods provided by the embodiments of the present application, for example, the methods as shown in fig. 3-7.
In some embodiments, the computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; but may be a variety of devices including one or any combination of the above memories.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, the executable instructions may, but need not, correspond to files in a file system, may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a hypertext markup language (HTML, hyper Text Markup Language) 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).
As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or, alternatively, distributed across multiple sites and interconnected by a communication network.
In summary, at least one service device can synchronously and simultaneously acquire the latest configuration data in the service configuration server through the preset calling interface, so that the latest configuration data can be immediately acquired by the at least one service device only by uniformly publishing, adding and modifying the configuration data in the service configuration server, thereby improving the efficiency of publishing 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 time delay of service configuration 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 configuration data can only be acquired through the mechanism type at present, a method for acquiring the configuration data through English abbreviations of the mechanism and the shortcut mechanism type is provided, and flexibility of acquiring the configuration data is improved. And the service configuration server performs authority authentication on the identity information of the released and updated configuration data, so that the stored configuration data is prevented from being maliciously tampered, and the security of service configuration is improved. Furthermore, the bank information can be conveniently and rapidly modified through the service configuration system, problems can be timely retracted, and the disaster recovery capability of the service configuration system can enable each module to acquire the bank information more stably.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and scope of the present application are intended to be included within the scope of the present application.

Claims (14)

1. A service configuration method applied to at least one service device corresponding to a current service, comprising:
monitoring whether a current configuration data set in a service configuration server is consistent with a local configuration data set or not through unified timing tasks, wherein the current configuration data set in the service configuration server is stored in a unified mode through a preset management interface;
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 a preset calling interface so as to update the local configuration data set;
receiving a service request corresponding to a current service, wherein 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;
responding to the service request, and acquiring target configuration data corresponding to the service request from the local configuration data set, wherein the service configuration server stores at least one configuration data set required by service equipment for service processing;
And using the target configuration data to realize the current service.
2. The method of claim 1, wherein, in response to the service request, before obtaining the target configuration data corresponding to the service request from the local configuration data set, the method further comprises:
and synchronously receiving the current configuration data set pushed by the service configuration server to update the local configuration data set through the preset calling interface.
3. The method according to any one of claims 1-2, wherein the obtaining, in response to the service request, target configuration data corresponding to the service request from a local configuration data set includes:
responding to the service request, and acquiring index information of configuration data required by the current service; the index information comprises at least one of a mechanism type, an English abbreviation and a 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.
4. A service configuration method, applied to a service configuration server, comprising:
when a data updating request is received, generating a current configuration data set based on the data updating request, wherein the current configuration data set in the service configuration server is uniformly stored through a preset management interface;
When the current configuration data set is inconsistent with the local configuration data set, synchronizing the current configuration data set to at least one service device corresponding to a 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, when the service device receives a service request corresponding to the current service, acquiring target configuration data corresponding to the service request from the local configuration data set, and realizing the current service based on the local configuration data set;
the service configuration server stores configuration data sets required by service processing of at least one service device, 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, and the inconsistent result of the current configuration data set and the local configuration data set is obtained by monitoring the service configuration server through a unified timing task.
5. The method of claim 4, wherein the data update request comprises: a data release request;
The generating a current configuration data set based on the data update request when the data update request is received includes:
when the data release request is received through a preset management interface, at least one piece of configuration data to be released, which is contained in the data release request, is obtained;
and responding to the data release request, and adding the at least one configuration data to be released into an original configuration data set, thereby obtaining the current configuration data set.
6. The method of claim 4, wherein the data update request comprises: a data modification request;
the generating a current configuration data set based on the data update request when the data update request is received includes:
when the data modification request is received through a preset management interface, at least one piece of configuration data to be modified, which is contained in the data modification request, is obtained;
and responding to the data modification request, and correspondingly modifying at least one original configuration data corresponding to the original configuration data set by using the at least one configuration data to be modified to obtain the current configuration data set.
7. The method of any of claims 4-6, wherein prior to generating a current configuration data set 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 that the data does not pass, not updating the currently stored configuration data set.
8. A service provisioning system, comprising:
the service configuration server is used for receiving the data update request; generating a current configuration data set based on the data updating request, wherein the current configuration data set in the service configuration server is uniformly stored through a preset management interface; synchronizing the current configuration data set to at least one service device corresponding to the current service through a preset calling interface, wherein the preset calling interface is used for connecting a data transmission channel between the at least one service device and a service configuration server;
the terminal is used for receiving a service request corresponding to the current service; the service request is sent to the at least one service device, wherein a configuration data set required by the service processing of the at least one service device is stored in the service configuration server, and the service request is the 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;
The at least one service device is configured to set a unified timing task, monitor whether the current configuration data set in the service configuration server is consistent with a local configuration data set, and synchronously pull the current configuration data set from the service configuration server through the preset call interface to update the local configuration data set when the current configuration data set is inconsistent with the local configuration data set; and responding to the service request, acquiring target configuration data corresponding to the service request from the local configuration data set, and using the target configuration data to realize the current service.
9. The system of claim 8, wherein the service configuration 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 dataset comprises: 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 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 verifying based on the second target configuration data, and executing the current service when verification passes.
10. A service device, comprising:
the monitoring module is used for monitoring whether a current configuration data set in the service configuration server is consistent with a local configuration data set or not through a unified timing task, wherein the current configuration data set in the service configuration server is stored in a unified mode through a preset management interface;
the pulling-out module is used for synchronously pulling out the current configuration data set from the service configuration server through a preset calling interface to update the local configuration data set when the current configuration data set is inconsistent with the local configuration data set;
The first receiving module is used for receiving a service request corresponding to the current service, wherein 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;
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, wherein the service configuration server stores at least one configuration data set required by service equipment for service processing;
and the service processing module is used for realizing the current service by using the target configuration data.
11. A service provisioning server, comprising:
the generation module is used for generating a current configuration data set based on the data update request when the data update request is received through the second receiving module, wherein the current configuration data set in the service configuration server is uniformly stored through a preset management interface;
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 when the current configuration data set is inconsistent with the local configuration data set, so that the at least one service device synchronously uses the current configuration data set to update the respective local configuration data set, when the service device receives a service request corresponding to the current service, the service device acquires target configuration data corresponding to the service request from the local configuration data set, and realizes the current service based on the local configuration data set, wherein the service configuration server stores the configuration data set required by the at least one service device for service processing, the service request is the service request to be completed when each service device processes a corresponding flow link of the current service when the whole flow of the current service is executed by each service device, and the inconsistent result of the current configuration data set and the local configuration data set is obtained by monitoring the service configuration server through unified timing tasks.
12. A service device, comprising:
a first memory for storing executable instructions;
A first processor for implementing the method of any one of claims 1 to 3 when executing executable instructions stored in said first memory.
13. A service provisioning server, comprising:
a second memory for storing executable instructions;
a second processor for implementing the method of any of claims 4 to 7 when executing executable instructions stored in said second memory.
14. A computer readable storage medium storing executable instructions for implementing the method of any one of claims 1 to 3 when executed by a first processor or for implementing the method of any one of claims 4 to 7 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 CN114422343A (en) 2022-04-29
CN114422343B true 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)

Families Citing this family (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
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

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

Also Published As

Publication number Publication date
CN114422343A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN114422343B (en) Service configuration method, device, system and computer readable storage medium
US10880287B2 (en) Out of box experience application API integration
CN110990182A (en) Transaction processing method, device, equipment and storage medium
JP2022529967A (en) Extracting data from the blockchain network
CN108133007A (en) A kind of method of data synchronization and system
US10812255B2 (en) Software interface for smart contracts
US11995453B2 (en) Method and apparatus for generating image file and computer-readable storage medium
WO2014152078A1 (en) Application architecture supporting multiple services and caching
CN111177246B (en) Service data processing method and device
WO2020258666A1 (en) Distributed system and data processing method
CN112714158A (en) Transaction processing method, relay network, cross-link gateway, system, medium, and device
US20210344766A1 (en) Systems and methods for decentralization of blockchain-based processes employing a blockchain-associated front end or blockchain-associated user interface
CN112764751A (en) Interface generation method and device, interface request method and device and storage medium
JP2022539283A (en) A method and system for validating blockchain data stored in a storage format different from the blockchain
CN109891849A (en) Highly usable and reliable secret distribution infrastructure
KR20190110082A (en) Apparatus for managing data using block chain and method thereof
CN115392718A (en) Processing method, device, equipment and medium of process model
CN107438067A (en) A kind of multi-tenant construction method and system based on mesos container cloud platforms
CN113515395A (en) Application access method and device based on multi-cloud management platform
CN112925589B (en) Calling method and device of expansion interface
US20230208659A1 (en) Blockchain apparatus and method for mobile edge computing
WO2020004252A1 (en) Number management system, number management method, and number management device
CN115827316A (en) Data backup method, device, equipment and storage medium
CN110324425B (en) Hybrid cloud transaction route processing method and device
CN109358817A (en) Methods, devices and systems for replicate data

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