CN115185612A - System parameter configuration method, processing method, device, equipment and medium - Google Patents

System parameter configuration method, processing method, device, equipment and medium Download PDF

Info

Publication number
CN115185612A
CN115185612A CN202210902084.2A CN202210902084A CN115185612A CN 115185612 A CN115185612 A CN 115185612A CN 202210902084 A CN202210902084 A CN 202210902084A CN 115185612 A CN115185612 A CN 115185612A
Authority
CN
China
Prior art keywords
parameter
identifier
programming interface
application programming
data source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210902084.2A
Other languages
Chinese (zh)
Inventor
栗增光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210902084.2A priority Critical patent/CN115185612A/en
Publication of CN115185612A publication Critical patent/CN115185612A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/217Database tuning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases

Abstract

The disclosure provides a system parameter configuration method, a device, equipment, a storage medium and a program product, and relates to the field of finance. The method comprises the following steps: acquiring M data sources of system parameters to be configured; determining a first mapping relation between each parameter identifier in the system parameters to be configured and a data source address; and obtaining a first application programming interface, wherein the first application programming interface is used for responding to an interface calling request and returning the parameter value of the target parameter identifier in the interface calling request according to the first mapping relation. The data source difference of the system parameters is shielded, a set of complete system parameter management strategy is provided, and the unified configuration management, use and dynamic update of the system parameters can be realized, so that a user can quickly and conveniently manage the system parameters. The disclosure also provides a system parameter processing method, device, equipment, storage medium and program product.

Description

System parameter configuration method, processing method, device, equipment and medium
Technical Field
The present disclosure relates to the field of finance, and more particularly, to a system parameter configuration method, processing method, apparatus, device, medium, and program product.
Background
In the development process of various application systems in the market, system parameters are almost required to be used. The system parameters are mainly applied to scenes such as system configuration option values, function control item values or English-Chinese conversion of user UI display contents.
At present, the mainstream solution in the market is to store system parameters in a hard code, configuration file or relational database table manner, and initialize the system when an application system is started or load the system when the application system is called for the first time.
In the process of implementing the inventive concept disclosed by the present inventors, at least the following problems are found in the related art:
there is no unified storage management strategy for the system parameters, the data sources for storing the system parameters are various, and the configuration mode of the system parameters is complicated.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a system parameter configuration method, processing method, apparatus, device, medium, and program product.
One aspect of the embodiments of the present disclosure provides a method for configuring system parameters, including: acquiring M data sources of system parameters to be configured, wherein the M data sources comprise service sources and/or storage sources, the service sources comprise services for providing a function of inquiring the system parameters, the storage sources comprise storage carriers for storing the system parameters, and M is an integer greater than or equal to 1; determining a first mapping relation between each parameter identifier in the system parameters to be configured and a data source address, wherein the data source address is used for obtaining a parameter value of each parameter identifier, and the data source address comprises a service address or a storage carrier address in the M data sources; and obtaining a first application programming interface, wherein the first application programming interface is used for responding to an interface calling request and returning the parameter value of the target parameter identifier in the interface calling request according to the first mapping relation.
According to an embodiment of the present disclosure, further comprising: and obtaining a second application programming interface, wherein the second application programming interface is used for receiving the target parameter identifier sent by the first application programming interface and returning the parameter value of the target parameter identifier according to the first mapping relation.
According to an embodiment of the present disclosure, further comprising: configuring and obtaining a memory object, wherein the memory object is used for caching the system parameter to be configured in a memory; the first application programming interface is further configured to obtain a parameter value of the target parameter identifier from the memory object before the target parameter identifier is sent to the second application programming interface.
According to an embodiment of the present disclosure, the storage carrier includes a file class carrier and/or a database table class carrier, the file class carrier includes at least one of a JSON file, an XML file, or a Properties file; the database table type carrier comprises a general database table or a non-general database table, the general database table comprises a data structure with uniform specification, and the non-general database table comprises a user-defined data structure.
According to the embodiment of the present disclosure, before the obtaining M data sources of the system parameter to be configured, the method further includes: configuring at least one parameter identifier in the non-general database table, and configuring a second mapping relation between each parameter identifier in the at least one parameter identifier and a first SQL statement, wherein the first SOL statement is used for adapting to the user-defined data structure to obtain a parameter value of the corresponding parameter identifier.
According to an embodiment of the present disclosure, further comprising: configuring a data source type identified by each parameter in the first mapping relation, wherein the data source type comprises a type of the service or a type of the storage carrier; and/or storing the first mapping relation into a processing strategy database table.
Another aspect of the embodiments of the present disclosure provides a system parameter processing method, which is used for a unified parameter processing framework, where the unified parameter processing framework is obtained according to the configuration method described above, and the method includes: receiving a parameter query request sent by an application system through a first application programming interface, wherein the parameter query request comprises a target parameter identifier to be queried; and responding to the parameter query request, and returning the parameter value of the target parameter identifier according to the first mapping relation.
According to an embodiment of the present disclosure, the returning, in response to the parameter query request, the parameter value of the target parameter identifier according to the first mapping relationship includes: sending the target parameter identification to a second application programming interface; and enabling the second application programming interface to return the parameter value of the target parameter identifier according to the first mapping relation.
According to an embodiment of the present disclosure, before the sending the target parameter identifier to the second application programming interface, the method further includes: inquiring the parameter value of the target parameter identification in the memory object; if the query in the memory object is successful, returning the parameter value of the target parameter identifier; and if the query in the memory object fails, using a processing strategy database table to query the parameter value of the target parameter identifier. 1
According to an embodiment of the present disclosure, after the second application programming interface returns the parameter value of the target parameter identifier according to the first mapping relationship, the method further includes: and loading the parameter value of the target parameter identifier into the memory object.
According to an embodiment of the present disclosure, before the receiving, through the first application programming interface, a parameter query request sent by an application system, the method further includes: receiving a parameter initialization request sent by the application system through a first application programming interface; accessing a data source address of each parameter identifier corresponding to the application system in the first mapping relation to obtain a parameter value of each parameter identifier; and loading the parameter value of each parameter identifier into the memory object.
According to an embodiment of the present disclosure, before the accessing the data source address of each parameter identifier corresponding to the application system in the first mapping relationship, the method further includes: determining a data source type corresponding to each parameter identification; and obtaining the data source address according to the data source type.
According to an embodiment of the present disclosure, in a case that the data source type is a database table class, the obtaining the parameter value of each parameter identifier includes: for any parameter identifier, querying the parameter value of the parameter identifier in the general database table by using a second SQL statement; if the parameter value of the parameter identifier is not inquired, acquiring a first SQL statement of the parameter identifier in the non-universal database table by using a third SQL statement; and querying the parameter value of the parameter identification by using the first SQL statement.
According to an embodiment of the present disclosure, the method further comprises: receiving a parameter modification request sent by the application system through a first application programming interface, wherein the parameter modification request comprises a target parameter identifier to be modified, and the parameter modification request comprises any one of a parameter adding request, a parameter updating request or a parameter deleting request; and accessing a data source address of the target parameter identifier to execute a first modification operation according to the first mapping relation, wherein the first modification operation comprises any one operation of adding a parameter value of the target parameter identifier, updating the parameter value of the target parameter identifier or deleting the parameter value of the target parameter identifier.
According to an embodiment of the present disclosure, the method further comprises: and executing the same second modification operation in the memory object under the condition of monitoring the first modification operation.
Another aspect of the embodiments of the present disclosure provides a system parameter configuration apparatus, including: the system comprises a source acquisition module, a parameter configuration module and a parameter configuration module, wherein the source acquisition module is used for acquiring M data sources of system parameters to be configured, the M data sources comprise service sources and/or storage sources, the service sources comprise services for providing a function of inquiring the system parameters, the storage sources comprise storage carriers for storing the system parameters, and M is an integer greater than or equal to 1; a mapping relation module, configured to determine a first mapping relation between each parameter identifier in the system parameter to be configured and a data source address, where the data source address is used to obtain a parameter value of each parameter identifier, and the data source address includes a service address or a storage carrier address in the M data sources; and the interface packaging module is used for obtaining a first application programming interface, wherein the first application programming interface is used for responding to an interface calling request and returning the parameter value of the target parameter identifier in the interface calling request according to the first mapping relation.
Another aspect of the embodiments of the present disclosure provides a system parameter processing apparatus, configured to apply to a unified parameter processing framework, where the unified parameter processing framework is obtained according to the configuration method described above, and the method includes: the system comprises a request receiving module, a parameter query module and a parameter query module, wherein the request receiving module is used for receiving a parameter query request sent by an application system through a first application programming interface, and the parameter query request comprises a target parameter identifier to be queried; and the parameter value module is used for responding to the parameter query request and returning the parameter value of the target parameter identifier according to the first mapping relation.
Another aspect of an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method as described above.
Yet another aspect of the embodiments of the present disclosure provides a computer-readable storage medium having stored thereon executable instructions, which when executed by a processor, cause the processor to perform the method as described above.
Yet another aspect of the disclosed embodiments provides a computer program product comprising a computer program that when executed by a processor implements the method as described above.
One or more of the above embodiments have the following advantageous effects: and determining a first mapping relation between each parameter identifier and a data source address according to configuration, and packaging to obtain a first application programming interface for uniformly managing the life cycle of the system parameters, thereby shielding the source difference of the system parameter data, providing a set of complete system parameter management strategies, realizing uniform configuration management, use and dynamic update of the system parameters, and enabling a user to quickly and conveniently manage the system parameters.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario diagram of a system parameter configuration method or a management method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a system parameter configuration method according to an embodiment of the present disclosure;
FIG. 3A illustrates a data relationship diagram for a single key-value pair, according to an embodiment of the present disclosure;
FIG. 3B illustrates a data relationship diagram of an array of key-value pairs, according to an embodiment of the disclosure;
FIG. 4 schematically illustrates an architecture diagram of M data sources, in accordance with an embodiment of the disclosure;
FIG. 5 schematically shows a flow chart of storing a first mapping relationship according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates an architecture diagram of a parameter unification processing framework, in accordance with an embodiment of the present disclosure;
FIG. 7 schematically illustrates a flow chart of a system parameter processing method according to an embodiment of the present disclosure;
FIG. 8 schematically illustrates a flow chart of a second application programming interface returning parameter values according to an embodiment of the disclosure;
FIG. 9 schematically illustrates a flow diagram of a system parameter processing method according to another embodiment of the present disclosure;
FIG. 10 schematically illustrates a flow chart of an initialization operation according to an embodiment of the present disclosure;
FIG. 11 schematically illustrates a flow chart for obtaining a data source address according to an embodiment of the disclosure;
FIG. 12 schematically illustrates a flow diagram for querying with a non-generic database table according to an embodiment of the disclosure;
FIG. 13 schematically illustrates a flow chart of parameter modification according to an embodiment of the present disclosure;
FIG. 14 schematically illustrates an architecture diagram for system parameter management according to an embodiment of the present disclosure;
fig. 15 schematically shows a block diagram of a system parameter configuration apparatus according to an embodiment of the present disclosure;
fig. 16 schematically shows a block diagram of a system parameter processing apparatus according to an embodiment of the present disclosure; and
fig. 17 schematically shows a block diagram of an electronic device adapted to implement a system parameter configuration method or a management method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
It should be noted that, the system parameter configuration method, the processing method, the apparatus, the device, the medium, and the program product provided by the embodiments of the present disclosure may be used in the financial field in the aspect of parameter configuration and processing of a financial application system, and may also be used in any field other than the financial field.
Fig. 1 schematically shows an application scenario diagram of a system parameter configuration method or a management method according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include application system servers 111, 112, 113, a parameter management server 120, a network 130, and terminal devices 141, 142, 143. Network 130 serves as a medium to provide a communication link between terminal devices 141, 142, 143 and application system servers 111, 112, 113 or parameter management server 120. Network 130 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal device 141, 142, 143 to interact with the application server 111, 112, 113 or the parameter management server 120 via the network 130 to receive or send messages or the like. Various messaging client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (examples only) may be installed on the terminal devices 141, 142, 143.
The terminal devices 141, 142, 143 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The application servers 111, 112, 113 or the parameter management server 120 may be servers providing various services, such as a back-office management server (for example only) providing support for websites browsed by users using the terminal devices 141, 142, 143. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device. The application system servers 111, 112, 113 may be deployed with various application systems, and the parameter management server 120 may be deployed with a parameter unified management framework (also called a parameter unified management application, a parameter unified management system, or a parameter unified management product).
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The system parameter configuration method and the processing method according to the embodiment of the present disclosure will be described in detail below with reference to fig. 2 to 14 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flow chart of a system parameter configuration method according to an embodiment of the present disclosure.
As shown in fig. 2, the system parameter configuration method of this embodiment includes operations S210 to S230.
In operation S210, M data sources of system parameters to be configured are obtained, where the M data sources include a service source and/or a storage source, the service source includes a service for providing a function of querying system parameters, the storage source includes a storage carrier for storing system parameters, and M is an integer greater than or equal to 1;
for example, before operation S210, the service meaning and the parameter value of the system parameter to be configured may be determined. In the system parameter definition stage, service analysis can be performed according to user requirements, system parameters, data structures and parameter values are defined, and a single or a group of Key-Value pairs can be formed. Key-Value is mainly used for configuring parameters for a single item, for example, the address Value of the short message gateway service is http; // www.duanxin.com/send. The Key-Value set is mainly used for multiple configuration parameters, such as page data showing Chinese conversion, and providing legibility of system display information, such as document state marking, order _ status (new creation: N; enabled: A; disabled: P), english is used for storing Value of database, and Chinese is used for displaying Value of user interface.
FIG. 3A illustrates a data relationship diagram for a single key-value pair, according to an embodiment of the disclosure. Table 1 shows an example illustration of a single key-value pair.
TABLE 1
Figure BDA0003769638720000081
Referring to fig. 3A and table 1, when a certain system parameter forms a single key value pair, its parameter identifier is a key and its parameter value is a value. If the execution cycle of the timing task is 200 seconds, the key is defined as ExcutionCycle, and the value is 200.
FIG. 3B illustrates a data relationship diagram of an array of key-value pairs, according to an embodiment of the disclosure. Table 2 shows an example illustration of an array of key-value pairs.
TABLE 2
Figure BDA0003769638720000091
Referring to fig. 3B and table 2, when a certain system parameter forms an array of key Value pairs, its parameter identifier is a key (key), and the parameter Value may include a plurality of key Value pairs. For example, in a service, a plurality of values are defined according to the state of the service flow stage where the service is located: start, process, and end. To save data storage space and ease programming, in data storage, chinese is not typically stored, but is replaced with english acronyms. Is defined as: beginning: s; in the treatment: c; and (4) ending: E. the double-layer Key-Value is adapted to be defined and inquired for use in order to facilitate storage.
Illustratively, the data source may refer to the source from which the parameters to be configured are derived. A process of providing a service may refer to a set of activities that execute a program, routine, or process that specifies a function of a system to provide a particular function. For example, the service class source of the embodiment of the present disclosure may provide functions such as querying or storing system parameters.
FIG. 4 schematically illustrates an architecture diagram of M data sources according to an embodiment of the disclosure. A storage carrier may refer to software or hardware for storing information or data. As shown in fig. 4, the storage carrier includes a file class carrier and/or a database table class carrier, where the file class carrier includes at least one of a JSON file, an XML file, or a Properties file; the database table type carrier comprises a general database table or a non-general database table, the general database table comprises a data structure with uniform specification, and the non-general database table comprises a user-defined data structure. The unified data structure refers to a data structure of the same standard used by multiple application systems.
Illustratively, a database table refers to a table in a database. The database stores data in units of tables. The data structure is mainly used for describing the type, content, property, and relationship between data (such as field or field value). JSON (JavaScript Object notification) is a data exchange format, and is a JavaScript-based data presentation language. XML (Extensible Markup Language) allows information to be encoded in meaningful structures that can be used to tag data and define data types. The Properties file is a property file suffixed to Properties, and stores contents in a < key, value > format.
The configuration management of the system parameters may be a one-to-many relationship, such as the system parameters of a plurality of application systems that are responsible for a specialized business person. Because there is no uniform management policy, or each application system has a certain requirement for the source of the system parameter, the data source is diverse. According to the configuration method of the embodiment of the disclosure, the file type carrier and/or the database table type carrier can be managed in a unified manner, and the complexity of system parameter configuration is simplified. In other words, a variety of data source configuration policies can be provided, and are not limited to a fixed single configuration storage manner.
For example, when it is determined that the data source is a service type source, the service may be sourced through a preconfigured system parameter, without paying attention to a specific storage manner of the configuration parameter, and the service may query and obtain the configured parameter value. The service format is shown in table 3.
TABLE 3
Figure BDA0003769638720000101
When XML is used to structure the storage number system parameters, an exemplary data structure is shown in Table 4.
TABLE 4
Figure BDA0003769638720000111
An exemplary data structure is shown in table 5 when using the Json structured storage number system parameter.
TABLE 5
Figure BDA0003769638720000112
In storing system parameters using Properties file structuring, an exemplary data structure is shown in table 6.
TABLE 6
Single value parameter example ExcutionCycle=200
Array parameter examples OrderStatus = S, start; c, during treatment; e, end
When using a general database table for data storage, an exemplary data structure is shown in table 7 for a single key-value pair parameter. Exemplary data structures are shown in tables 8 and 9 for key-value pair array parameters, which are stored in master (table 8) and slave (table 9) table structures.
TABLE 7
Figure BDA0003769638720000121
In using a general database table for data storage, exemplary data structures are shown in tables 8 and 9 for key-value pair array parameters, which are stored in a master (table 8) and slave (table 9) table structure.
TABLE 8
Figure BDA0003769638720000122
TABLE 9
Figure BDA0003769638720000123
According to the embodiment of the present disclosure, before obtaining M data sources of the system parameters to be configured, configuring the system parameters according to the data structure in the file type carrier or the database table type carrier, as in tables 3 to 9 above. And then, taking a non-general database table as an example, configuring at least one parameter identifier in the non-general database table, and configuring a second mapping relation between each parameter identifier in the at least one parameter identifier and a first SQL statement, wherein the first SQL statement is adapted to a user-defined data structure to obtain a parameter value corresponding to the parameter identifier.
Illustratively, the SQL statement is constructed using a Structured Query Language (SQL). The first SQL statement is constructed to obtain according to the data structure requirement of the non-general database table.
Where non-generic database tables store system parameters, an exemplary data structure is shown in Table 10. For configuring system parameters in a non-general database table, a user-defined SQL statement (namely, a first SQL statement) is used for data query.
Watch 10
Figure BDA0003769638720000131
According to the embodiment of the disclosure, the first SQL statement is configured in the non-general database table, so that the difference of different data structures in the non-general database table can be further shielded, and the acquisition of the parameter value can be realized by calling the custom SQL statement.
In operation S220, a first mapping relationship between each parameter identifier in the system parameter to be configured and a data source address is determined, where the data source address is used to obtain a parameter value of each parameter identifier, and the data source address includes a service address or a storage carrier address in M data sources;
fig. 5 schematically shows a flowchart of storing a first mapping relationship according to an embodiment of the present disclosure.
As shown in fig. 5, storing the first mapping relationship of this embodiment includes at least one of operation S510 and operation S520. In operation S510, a data source type identified by each parameter is configured in the first mapping relationship, where the data source type includes a type of a service or a type of a storage carrier, such as a query service class, a file class, or a database table class. In operation S520, the first mapping relationship is stored in the processing policy database table.
Illustratively, the process policy database table may be stored in relational data, and the data structure of the process policy database table storing the parameter configuration basic information is shown in table 12.
TABLE 12
Figure BDA0003769638720000141
Illustratively, some of the system parameters stored in the process policy database table are shown in table 13.
Watch 13
Figure BDA0003769638720000151
Referring to table 13, the first mapping relationship may include a one-to-one mapping relationship of basic information of each system parameter under PARA _ ID, PARA _ NAME, PARA _ CODE, PARA _ TYPE, and PARA _ CONTENT.
According to the embodiment of the disclosure, the processing policy database table can be stored in a relational database, and a user can query the data source of each system parameter and the data source type by using an SQL statement.
For example, obtaining the parameter value of each parameter identifier according to the data source address may be accessing the data source according to the data source address, such as accessing a service, or reading a file or a database table. And based on the data structure of each data source, using the parameter identification to query and obtain the corresponding parameter value. Referring to the PARA _ CONTENT column in Table 13, the column may be configured with a service address (e.g., http://10.1.1.23/query /) or a storage carrier address. The file address can be the address of the file storage, and the address of the database table can be characterized according to the information such as the access address of the database, the name of the database table and the like.
In operation S230, a first application programming interface is obtained, where the first application programming interface is configured to respond to the interface call request and return a parameter value identified by the target parameter in the interface call request according to the first mapping relationship.
By way of example, an Application programming Interface, also known as an Application Program Interface, API for short, is primarily intended to provide the ability for an Application to access a set of routines without having to access source code or understand the details of internal workings. The application programming interface may be obtained by encapsulating code that implements a particular function and then provided in a method call, SDK, or HTTP call, etc.
Illustratively, the interface call request may include a parameter query request, a parameter initialization request, or a parameter modification request, among other requests. The first application programming interface may access a service, file, or database table to obtain a parameter value for the target parameter identification.
According to the embodiment of the disclosure, the first application programming interface for unified life cycle management of the system parameters is obtained by configuring the first mapping relation between each parameter identifier and the data source address and packaging, and the source difference of the system parameter data is shielded, so that a set of complete system parameter management strategies is provided, unified configuration management, use and dynamic update of the system parameters can be realized, and a user can manage the system parameters quickly and conveniently.
FIG. 6 schematically shows an architecture diagram of a parameter unification processing framework according to an embodiment of the present disclosure.
As shown in fig. 6, the parameter unified processing framework 600 is obtained according to the method for configuring system parameters in the embodiment of the present disclosure, is a unified framework for managing the life cycle of parameters, and can shield differences of data storage modes, provide a data storage memory object, and implement high-speed storage. Parameter unification processing framework 600 can include a first application programming interface 610, a second application programming interface 620, a memory object 630, and a data storage implementation 640. Data storage implementation 640 may include a Json file storage implementation of second application programming interface 620, an XML file storage implementation of second application programming interface 620, a MySQL database storage implementation of second application programming interface 620, an Oracle database storage implementation of second application programming interface 620, a domestic database (e.g., a shentong database) storage implementation of second application programming interface 620, and so forth. Various portions of the implementation parameter unification processing framework 600 can be encapsulated by classes in a programming language. Referring to fig. 6, in addition to the memory object 630, each class object may have functions of adding parameters, querying parameters, updating parameters, deleting parameters, and the like. The first application programming interface may also have the capability to initialize system parameters.
According to an embodiment of the present disclosure, referring to fig. 6, a second application programming interface may also be obtained, where the second application programming interface is configured to receive a target parameter identifier sent by the first application programming interface, and return a parameter value of the target parameter identifier according to the first mapping relationship. The second application programming interface is used as a system parameter storage operation interface and is used for realizing storage of the data source and realizing processing of the system parameters.
According to the embodiment of the disclosure, a memory object can be configured and obtained, wherein the memory object is used for caching the system parameters to be configured in the memory; the first application programming interface is further configured to obtain a parameter value of the target parameter identifier from the memory object before sending the target parameter identifier to the second application programming interface.
Illustratively, the memory object is used for caching data of the system parameters in a memory, and the system parameters are stored in the memory in a key/value manner, so that the number of times of querying and accessing a database or a file is reduced, and performance degradation is avoided.
Fig. 7 schematically shows a flow chart of a system parameter processing method according to an embodiment of the present disclosure.
As shown in fig. 7, the system parameter processing method of this embodiment is used for a parameter unified processing framework, and the method may include operations S710 to S720.
In operation S710, a parameter query request sent by an application system is received through a first application programming interface, where the parameter query request includes a target parameter identifier to be queried;
in operation S720, in response to the parameter query request, a parameter value identified by the target parameter is returned according to the first mapping relationship.
By way of example, an application system may refer to one or more application programs and application data developed for a particular use and executable in a production environment. The application system may initiate a system parameter query and process the parameter query by a first application programming interface exposed to the outside by the parameter unification processing framework.
According to the embodiment of the disclosure, through a complete system parameter management strategy, a specific query strategy of the system parameter can be realized in an interface mode, and when the system parameter management strategy is used, the difference between the specific definition of the system parameter and a data source can be ignored, so that the system parameter processing efficiency is improved.
FIG. 8 schematically shows a flow chart of a second application programming interface returning parameter values according to an embodiment of the present disclosure.
As shown in fig. 8, returning the parameter value of the target parameter identification in operation S720 includes operations S810 to S820.
In operation S810, transmitting the target parameter identification to a second application programming interface;
in operation S820, the second application programming interface is enabled to return the parameter value identified by the target parameter according to the first mapping relationship.
Referring to fig. 6, if it is determined from the first mapping relationship in the processing policy database table that the data source identified by the target parameter is not a service class source, the first application programming interface 610 may perform operation S810. The first application programming interface may send the target parameter identifier and the corresponding data source address to the second application programming interface, or may send only the target parameter identifier, and the second application programming interface obtains the data source address from the first mapping relationship in the processing policy database table, so as to obtain the parameter value of the target parameter identifier and return it.
Fig. 9 schematically shows a flow chart of a system parameter processing method according to another embodiment of the present disclosure.
As shown in fig. 9, the system parameter processing method of this embodiment includes operation S710 and operations S910 to S970.
In operation S710, a parameter query request transmitted by an application system is received through a first application programming interface.
In operation S910, a parameter value identified by the target parameter is queried in the memory object.
In operation S920, it is determined whether the query is successful in the memory object. If the query in the memory object is successful, executing operation S950, and returning a parameter value of the target parameter identifier; if the query fails in the memory object, operation S930 is performed.
In operation S930, the parameter value identified by the target parameter is queried using the processing policy database table. Such as querying a service, file, or database table according to a first mapping relationship.
In operation S940, it is determined whether the query from the data source is successful. If so, operations S950 and S960 are performed. If not, operation S970 is performed.
In operation S950, the parameter value identified by the target parameter is returned.
In operation S960, the parameter value identified by the target parameter is loaded into the memory object. The method has the advantages that when the target parameter identification is inquired again subsequently by the application system, the target parameter identification can be directly taken out from the memory object, the times of accessing a data source can be reduced, and the performance loss is reduced.
In operation S970, it is returned that no current system parameter defines an exception. And indicating that the target parameter identification of the application system query is not defined.
According to the embodiment of the disclosure, the parameter value of the target parameter is firstly inquired in the memory object, so that the load on the database or the disk can be reduced, and the faster access speed is provided.
FIG. 10 schematically shows a flow diagram of an initialization operation according to an embodiment of the disclosure.
Before receiving a parameter query request sent by an application system through a first application programming interface, as shown in fig. 10, the initialization operation of this embodiment includes operations S1010 to S1030.
In operation S1010, receiving a parameter initialization request transmitted by an application system through a first application programming interface;
in operation S1020, accessing a data source address of each parameter identifier corresponding to the application system in the first mapping relationship to obtain a parameter value of each parameter identifier;
in some embodiments, the parameter unification management framework initialization API may be called upon application system startup. And the first application programming interface queries the processing strategy database table to obtain the data source address of each parameter identifier in the first mapping relation, and further obtains the parameter value for initialization. For example, for a service class source, the first application programming interface may be directly accessible, and for a storage class source, the second application programming interface may be invoked for execution.
In operation S1030, the parameter value of each parameter identifier is loaded into the memory object.
In the related art, in order to solve the problem of dynamic update of the cache, a memory database is usually added as cache storage, which leads to increase in complexity of system deployment, thereby reducing system stability and increasing system maintenance cost. According to the embodiment of the disclosure, the function of inquiring the system parameters in the memory object can be realized through the initialization process, so that the system deployment complexity and the maintenance cost are reduced, and the performance loss caused by frequent access to the database or the disk is reduced.
FIG. 11 schematically shows a flow chart for obtaining a data source address according to an embodiment of the disclosure.
Before accessing the data source address identified by each parameter corresponding to the application system in the first mapping relationship, as shown in fig. 11, the obtaining of the data source address in this embodiment includes operations S1110 to S1120.
In operation S1110, determining a data source type corresponding to each parameter identifier;
in operation S1120, a data source address is obtained according to the data source type.
Referring to table 12 and table 13, the data source TYPE is determined by the PARA _ TYPE column, and if the file TYPE carrier is used, the corresponding file can be accessed, and the parameter value is obtained according to the data structure of the file. And if the data base table type carrier exists, the SQL statement is used for inquiring.
FIG. 12 schematically shows a flow diagram for querying with a non-generic database table according to an embodiment of the present disclosure.
As shown in fig. 12, in the case that the data source type is a database table type, obtaining the parameter value of each parameter identifier includes: for any one of the parameter identifications, operations S1210 to S1230 are performed.
In operation S1210, querying a parameter value of the parameter identifier in the generic database table using a second SQL statement;
illustratively, a single-valued parameter in a general database table is queried, for example, the contents of a second SQL statement are as follows:
select CONFIG_VALUE from CONFIG_TABLE
where CONFIG KEY = "target parameter name"
And querying the multi-value parameters in the general database table, wherein the contents of the second SQL statement are as follows:
select a.DOMAIN_KEY,a.DOMAIN_VALUE
from CONFIG_DOMAIN b,CONFIG_DOMAIN_VALUE a
where a.CONFIG_ID=b.CONFIG_ID
config _ KEY = "target parameter name";
in operation S1220, if the parameter value of the parameter identifier is not queried, a third SQL statement is used to obtain a first SQL statement of the parameter identifier in the non-general database table;
illustratively, a parameter in a non-general database table is queried, for example, the content of the third SQL statement is as follows:
select CONFIG_SQL from CONFIG_SQL
where CONFIG KEY = "target parameter name"
Wherein the first SQL statement is a query statement as configured in table 10.
In operation S1230, the parameter value identified by the parameter is queried using the first SQL statement.
FIG. 13 schematically shows a flow chart of parameter modification according to an embodiment of the present disclosure.
As shown in fig. 13, the parameter modification of this embodiment includes operations S1310 to S1320.
In operation S1310, a parameter modification request sent by an application system is received through a first application programming interface, where the parameter modification request includes a target parameter identifier to be modified, and the parameter modification request includes any one of a request for adding a parameter, a request for updating a parameter, or a request for deleting a parameter;
in operation S1320, a first modification operation is performed according to the first mapping relationship by accessing the data source address of the target parameter identifier, where the first modification operation includes any one of adding a parameter value of the target parameter identifier, updating the parameter value of the target parameter identifier, or deleting the parameter value of the target parameter identifier.
Illustratively, the target parameter identification may be pre-configured in the processing policy database table, such as the respective values under PARA _ ID, PARA _ NAME, PARA _ CODE, PARA _ TYPE, and PARA _ CONTENT. The first modification operation corresponds to the parameter modification request, and if the parameter modification request is a new parameter request, the first modification operation corresponds to an operation of adding a parameter value of the target parameter identifier.
Illustratively, the new addition is to add the parameter value identified by the target parameter to the data source (service class source or storage class source). The update is a modification to an existing parameter value identified by the target parameter in the data source. Deletion is the deletion of the parameter value identified by the target parameter in the data source.
According to the embodiment of the disclosure, the parameter modification operation of the application system can be conveniently completed by using the parameter unified management framework, so that the application system can directly send the corresponding parameter modification request, the definition of the system parameters and the data source difference can be ignored, the timeliness of data update is provided, and the dynamic update is facilitated.
According to an embodiment of the present disclosure, in the event that the first modify operation is snooped, the same second modify operation is performed in the memory object.
Illustratively, the first modification operation and the second modification operation are identical in content, and the executed data storage objects are different. If the first modification operation is an operation of adding a parameter value identified by the target parameter, the first modification operation is added in the data source. If the source is the service class source, a new request can be sent, and if the source is the storage class source, the parameter value is directly written. The second modification operation is to add a cache entity of the target parameter identifier in the memory object in the form of a key value pair.
For example, the application system initiates operation of adding system parameters, calls a first application programming interface to complete physical storage and addition of the system parameters in a data source, and then automatically adds a current system parameter cache object to a memory by a parameter unified management framework.
For example, the application system initiates an operation of updating system parameters, calls a first application programming interface to complete the physical storage updating of the system parameters in the data source, and then automatically updates the current system parameter cache object to the memory by the parameter unified management framework.
For example, the application system initiates an operation of deleting system parameters, calls the first application programming interface to delete the physical storage of the system parameters in the data source, and then automatically deletes the current system parameter cache object in the memory by the parameter unified management framework.
Illustratively, a listener may be added to implement auto-listening for modification events of the data source and make corresponding modifications in the memory object.
According to the embodiment of the disclosure, the monitoring is carried out in a mode of adding a monitor based on a configuration function so as to provide a dynamic storage updating strategy, so that simple configuration and dynamic updating of data are realized.
FIG. 14 schematically illustrates an architecture diagram for system parameter management according to an embodiment of the disclosure.
As shown in fig. 14, in the full lifecycle management flow of system parameter management, a definition phase, a storage phase and a use phase may be included. Based on the software development process, the definition phase may be executed during development of each application system, the system parameter configuration method according to the embodiment of the present disclosure may be executed in the storage phase, and the system parameter processing method according to the embodiment of the present disclosure may be executed in the use phase.
In the definition phase, the service of the application system is analyzed, and system parameter definition, data structure definition and system parameter value definition are carried out. In the storage stage, after a data source and a data structure are defined and system parameters are stored, the system parameter configuration method of the embodiment of the disclosure is executed to determine the meaning and value of the parameter service and determine the configuration data structure and the basic information of the data source and the configuration data parameters. In the use stage, system parameters are initialized according to configuration data, such as system parameter reading, the system parameters are loaded into a memory, and then the system parameters are inquired or modified during use.
Based on the system parameter configuration method and the management method, the disclosure also provides a system parameter configuration device and a management device. The apparatus will be described in detail below with reference to fig. 15 and 16.
Fig. 15 schematically shows a block diagram of a system parameter configuration apparatus according to an embodiment of the present disclosure.
As shown in fig. 15, the system parameter configuration apparatus 1500 of this embodiment includes a source obtaining module 1510, a mapping relation module 1520, and an interface packaging module 1530.
The source obtaining module 1510 may perform operation S210, configured to obtain M data sources of the system parameter to be configured, where the M data sources include a service class source and/or a storage class source, the service class source includes a service for providing a function of querying the system parameter, the storage class source includes a storage carrier for storing the system parameter, and M is an integer greater than or equal to 1;
the mapping relation module 1520 may perform operation S220, to determine a first mapping relation between each parameter identifier in the system parameter to be configured and the data source address, where the data source address is used to obtain a parameter value of each parameter identifier, and the data source address includes a service address or a storage carrier address of M data sources;
in some embodiments, the mapping relation module 1520 may perform operations S510 to S520, which are not described herein.
The interface encapsulation module 1530 may perform operation S230, configured to obtain a first application programming interface, where the first application programming interface is configured to return, in response to the interface call request, a parameter value identified by the target parameter in the interface call request according to the first mapping relationship.
Fig. 16 schematically shows a block diagram of a system parameter processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 16, the system parameter processing apparatus 1600 of this embodiment is used for a parameter unified processing framework, and includes a request receiving module 1610 and a parameter value module 1620.
The request receiving module 1610 may perform operation S710, configured to receive a parameter query request sent by an application system through a first application programming interface, where the parameter query request includes a target parameter identifier to be queried;
the parameter value module 1620 may perform operation S720 for returning the parameter value identified by the target parameter according to the first mapping relationship in response to the parameter query request.
In some embodiments, the parameter value module 1620 may perform operations S810 to S820, operations S1210 to S1230, and operations S1310 to S1320, which are not described herein.
In some embodiments, the system parameter processing apparatus 1600 may include a memory object query module, which is used to execute operation S910 and operation S960, which are not described herein.
In some embodiments, the system parameter processing apparatus 1600 may include an initialization module, configured to perform operations S1010 to S1030, where operations S1110 to S1120 are not described herein.
It should be noted that the implementation, solved technical problems, implemented functions, and achieved technical effects of each module/unit/subunit and the like in the apparatus part embodiment are respectively the same as or similar to the implementation, solved technical problems, implemented functions, and achieved technical effects of each corresponding step in the method part embodiment, and are not described herein again.
According to the embodiment of the present disclosure, any plurality of modules in the system parameter configuration apparatus 1500 or the system parameter processing apparatus 1600 may be combined and implemented in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in one module.
According to an embodiment of the present disclosure, at least one module in the system parameter configuration apparatus 1500 or the system parameter processing apparatus 1600 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware by any other reasonable manner of integrating or packaging a circuit, or may be implemented in any one of or a suitable combination of software, hardware, and firmware. Alternatively, at least one module of system parameter configuration apparatus 1500 or system parameter processing apparatus 1600 may be implemented at least in part as a computer program module that, when executed, may perform a corresponding function.
Fig. 17 schematically shows a block diagram of an electronic device adapted to implement a system parameter configuration method or a management method according to an embodiment of the present disclosure.
As shown in fig. 17, an electronic apparatus 1700 according to an embodiment of the present disclosure includes a processor 1701 which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1702 or a program loaded from a storage portion 1708 into a Random Access Memory (RAM) 1703. The processor 1701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 1701 may also include on-board memory for caching purposes. The processor 1701 may include a single processing unit or multiple processing units for performing the different actions of the method flow according to embodiments of the present disclosure.
In the RAM 1703, various programs and data necessary for the operation of the electronic apparatus 1700 are stored. The processor 1701, the ROM 1702, and the RAM 1703 are connected to each other by a bus 1704. The processor 1701 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 1702 and/or the RAM 1703. Note that the programs may also be stored in one or more memories other than ROM 1702 and RAM 1703. The processor 1701 may also execute various operations of the method flows according to the embodiments of the present disclosure by executing programs stored in one or more memories.
Electronic device 1700 may also include input/output (I/O) interface 1705, input/output (I/O) interface 1705 also connected to bus 1704, according to an embodiment of the present disclosure. Electronic device 1700 may also include one or more of the following components connected to I/O interface 1705: an input section 1706 including a keyboard, a mouse, and the like; an output portion 1707 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 1708 including a hard disk and the like; and a communication section 1709 including a network interface card such as a LAN card, a modem, or the like. The communication section 1709 performs communication processing via a network such as the internet. A driver 1710 is also connected to the I/O interface 1705 as necessary. A removable medium 1711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1710 as necessary, so that a computer program read out therefrom is mounted into the storage portion 1708 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 1702 and/or RAM 1703 described above and/or one or more memories other than the ROM 1702 and RAM 1703.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiment of the present disclosure when executed by the processor 1701. The above described systems, devices, modules, units, etc. may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed as a signal on a network medium, downloaded and installed via the communication portion 1709, and/or installed from the removable medium 1711. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such embodiments, the computer program may be downloaded and installed from a network via the communication portion 1709, and/or installed from the removable media 1711. The computer program, when executed by the processor 1701, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computing devices (e.g., through the internet using an internet service provider).
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the disclosure, and these alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (20)

1. A system parameter configuration method comprises the following steps:
acquiring M data sources of system parameters to be configured, wherein the M data sources comprise service sources and/or storage sources, the service sources comprise services for providing a function of inquiring the system parameters, the storage sources comprise storage carriers for storing the system parameters, and M is an integer greater than or equal to 1;
determining a first mapping relation between each parameter identifier in the system parameters to be configured and a data source address, wherein the data source address is used for obtaining a parameter value of each parameter identifier, and the data source address comprises a service address or a storage carrier address in the M data sources;
and obtaining a first application programming interface, wherein the first application programming interface is used for responding to an interface calling request and returning the parameter value of the target parameter identifier in the interface calling request according to the first mapping relation.
2. The method of claim 1, further comprising:
and obtaining a second application programming interface, wherein the second application programming interface is used for receiving the target parameter identifier sent by the first application programming interface and returning the parameter value of the target parameter identifier according to the first mapping relation.
3. The method of claim 2, further comprising:
configuring and obtaining a memory object, wherein the memory object is used for caching the system parameter to be configured in a memory;
the first application programming interface is further configured to obtain a parameter value of the target parameter identifier from the memory object before the target parameter identifier is sent to the second application programming interface.
4. The method of claim 1, wherein the storage carrier comprises a file class carrier and/or a database table class carrier,
the file class carrier comprises at least one of a JSON file, an XML file or a Properties file;
the database table type carrier comprises a general database table or a non-general database table, the general database table comprises a data structure with uniform specification, and the non-general database table comprises a user-defined data structure.
5. The method of claim 4, wherein before said obtaining M data sources of system parameters to be configured, further comprising:
configuring at least one parameter identifier in the non-general database table, and configuring a second mapping relation between each parameter identifier in the at least one parameter identifier and a first SQL statement, wherein the first SQL statement is adapted to the user-defined data structure to obtain a parameter value of the corresponding parameter identifier.
6. The method of claim 1, further comprising:
configuring a data source type identified by each parameter in the first mapping relation, wherein the data source type comprises a type of the service or a type of the storage carrier; and/or the presence of a gas in the gas,
and storing the first mapping relation into a processing strategy database table.
7. A system parameter processing method for a unified parameter processing framework obtained according to the method of any one of claims 1 to 6, the method comprising:
receiving a parameter query request sent by an application system through a first application programming interface, wherein the parameter query request comprises a target parameter identifier to be queried;
and responding to the parameter query request, and returning the parameter value of the target parameter identifier according to the first mapping relation.
8. The method of claim 7, wherein the returning the parameter value of the target parameter identification according to the first mapping relationship in response to the parameter query request comprises:
sending the target parameter identification to a second application programming interface;
and enabling the second application programming interface to return the parameter value of the target parameter identifier according to the first mapping relation.
9. The method of claim 8, wherein prior to said sending said target parameter identification to a second application programming interface, further comprising:
inquiring the parameter value of the target parameter identification in the memory object;
if the query in the memory object is successful, returning the parameter value of the target parameter identifier;
and if the query in the memory object fails, querying a parameter value of the target parameter identifier by using a processing strategy database table.
10. The method of claim 9, wherein after causing the second application programming interface to return the parameter value identified by the target parameter according to the first mapping relationship, further comprising:
and loading the parameter value of the target parameter identifier into the memory object.
11. The method of claim 9, wherein before receiving the parameter query request sent by the application system through the first application programming interface, the method further comprises:
receiving a parameter initialization request sent by the application system through a first application programming interface;
accessing a data source address of each parameter identifier corresponding to the application system in the first mapping relation to obtain a parameter value of each parameter identifier;
and loading the parameter value of each parameter identifier into the memory object.
12. The method according to claim 11, wherein before the accessing the data source address of each parameter identifier corresponding to the application system in the first mapping relationship, the method further comprises:
determining a data source type corresponding to each parameter identification;
and acquiring the data source address according to the data source type.
13. The method of claim 12, wherein, in the case that the data source type is a database table class, the obtaining the parameter value of each parameter identification comprises: for any one of the parameter identifications, the user terminal,
querying the parameter value of the parameter identifier in the general database table by using a second SQL statement;
if the parameter value of the parameter identifier is not inquired, acquiring a first SQL statement of the parameter identifier in the non-universal database table by using a third SQL statement;
and querying the parameter value of the parameter identification by using the first SQL statement.
14. The method of claim 7, wherein the method further comprises:
receiving a parameter modification request sent by the application system through a first application programming interface, wherein the parameter modification request comprises a target parameter identifier to be modified, and the parameter modification request comprises any one of a parameter adding request, a parameter updating request or a parameter deleting request;
and accessing a data source address of the target parameter identifier to execute a first modification operation according to the first mapping relation, wherein the first modification operation comprises any one operation of adding a parameter value of the target parameter identifier, updating the parameter value of the target parameter identifier or deleting the parameter value of the target parameter identifier.
15. The method of claim 14, wherein the method further comprises:
and executing the same second modification operation in the memory object under the condition of monitoring the first modification operation.
16. A system parameter configuration apparatus, comprising:
the system comprises a source acquisition module, a parameter configuration module and a parameter configuration module, wherein the source acquisition module is used for acquiring M data sources of system parameters to be configured, the M data sources comprise service sources and/or storage sources, the service sources comprise services for providing a function of inquiring the system parameters, the storage sources comprise storage carriers for storing the system parameters, and M is an integer greater than or equal to 1;
a mapping relation module, configured to determine a first mapping relation between each parameter identifier in the system parameter to be configured and a data source address, where the data source address is used to obtain a parameter value of each parameter identifier, and the data source address includes a service address or a storage carrier address in the M data sources;
and the interface packaging module is used for obtaining a first application programming interface, wherein the first application programming interface is used for responding to an interface calling request and returning the parameter value of the target parameter identifier in the interface calling request according to the first mapping relation.
17. A system parameter processing apparatus for a parameter unifying processing framework obtained according to the method of any one of claims 1 to 6, the apparatus comprising:
the system comprises a request receiving module, a parameter query module and a parameter query module, wherein the request receiving module is used for receiving a parameter query request sent by an application system through a first application programming interface, and the parameter query request comprises a target parameter identifier to be queried;
and the parameter value module is used for responding to the parameter query request and returning the parameter value of the target parameter identifier according to the first mapping relation.
18. An electronic device, comprising:
one or more processors;
a storage device to store one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-15.
19. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 15.
20. A computer program product comprising a computer program which, when executed by a processor, carries out the method according to any one of claims 1 to 15.
CN202210902084.2A 2022-07-28 2022-07-28 System parameter configuration method, processing method, device, equipment and medium Pending CN115185612A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210902084.2A CN115185612A (en) 2022-07-28 2022-07-28 System parameter configuration method, processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210902084.2A CN115185612A (en) 2022-07-28 2022-07-28 System parameter configuration method, processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115185612A true CN115185612A (en) 2022-10-14

Family

ID=83521527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210902084.2A Pending CN115185612A (en) 2022-07-28 2022-07-28 System parameter configuration method, processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115185612A (en)

Similar Documents

Publication Publication Date Title
US11775435B2 (en) Invalidation and refresh of multi-tier distributed caches
CN109976667B (en) Mirror image management method, device and system
CN108920222B (en) Business processing method and device based on rule engine
CN109683998B (en) Internationalization realization method, device and system
US10776083B2 (en) Application builder with connected components
US10102133B2 (en) Reducing latency by caching derived data at an edge server
US20130086626A1 (en) Constraint definition for conditional policy attachments
TW201441829A (en) Client side page processing
TW201732657A (en) Service execution method and device
CN109783562B (en) Service processing method and device
CN109981546B (en) Method and device for acquiring remote call relation between application modules
CN112650804B (en) Big data access method, device, system and storage medium
CN110764769B (en) Method and device for processing user request
CN113726855B (en) Service aggregation method, device, electronic equipment and computer-readable storage medium
CN113094561B (en) Webpage generating method, webpage generating device, electronic equipment and storage medium
CN115185612A (en) System parameter configuration method, processing method, device, equipment and medium
CN115617420A (en) Application program generation method, device, equipment and storage medium
US11509746B2 (en) Distributing user requests to cloud computing systems across regions using a machine learning model
CN113779122B (en) Method and device for exporting data
US20210149874A1 (en) Selectively processing an event published responsive to an operation on a database record that relates to consent
CN114237765A (en) Functional component processing method and device, electronic equipment and medium
CN113741888A (en) Service processing method and device
CN113495747B (en) Gray scale release method and device
CN113760886B (en) Method, apparatus, device and computer readable medium for providing data service
US20240070146A1 (en) Database systems and methods of batching data requests for application extensions

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