[go: up one dir, main page]

WO2024001679A1 - Data publishing method and system - Google Patents

Data publishing method and system Download PDF

Info

Publication number
WO2024001679A1
WO2024001679A1 PCT/CN2023/098320 CN2023098320W WO2024001679A1 WO 2024001679 A1 WO2024001679 A1 WO 2024001679A1 CN 2023098320 W CN2023098320 W CN 2023098320W WO 2024001679 A1 WO2024001679 A1 WO 2024001679A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
target
configuration
microservice
server
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.)
Ceased
Application number
PCT/CN2023/098320
Other languages
French (fr)
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.)
eBaoTech Corp
Original Assignee
eBaoTech Corp
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 eBaoTech Corp filed Critical eBaoTech Corp
Publication of WO2024001679A1 publication Critical patent/WO2024001679A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Definitions

  • This application relates to the field of communication technology, and in particular to a data publishing method and system.
  • microservice projects have requirements for configuration data release, such as publishing the same business data in multiple configuration environments.
  • conventional technology generally uses database script management to release configuration data, for example, using database version control tools such as Flyway or Liquibase. These tools are all run based on the command line or Maven Project Object Model (POM), and are essentially based on migrating data to change the database, such as migrating data based on Structured Query Language (SQL) to change different configuration environments. database.
  • POM Maven Project Object Model
  • SQL Structured Query Language
  • the embodiments of this application provide a data publishing method and system.
  • the user only needs to configure the configuration file once, and then can export the configuration data in full to the code management system with one click, and then publish the data to multiple target environments with one click. , reducing manual operations in the data publishing process.
  • preset callback operations can be intelligently processed and executed in the target environment, such as clearing caches, rebuilding indexes, pushing data to the integration platform, returning emails to publish result reports, and other callback operations without the need for manual labor. Intervention avoids a lot of duplication of work, greatly shortens the project launch cycle, and reduces subsequent operation and maintenance costs.
  • this application provides a data publishing method.
  • the method includes: a terminal device initiates a data export instruction to a configuration environment server, and the data export instruction is associated with the target microservice; the configuration environment server responds to the The data export instruction determines the target export executor and target data set corresponding to the target microservice according to the preset target configuration file, wherein the target configuration file is used to define the target microservice and the target data set.
  • the configuration environment server uses the target export executor to export the data indicated by the target data set from the configuration environment server to the code management server; the target The data indicated by the data set is part of the data in the configuration data corresponding to the target microservice; the code management server saves the data indicated by the target data set to the first warehouse corresponding to the target microservice;
  • the first warehouse is a warehouse in the code management server used to store the configuration data of the target microservice, and the first warehouse is the same as the warehouse used in the code management server to store application data of the target microservice. different;
  • the code management server packages all the configuration data in the first warehouse indicated by the target data set into a business data package, and publishes the business data package to at least one target environment server, wherein the business data package
  • the data package includes all configuration data of the target microservice, excluding application data of the target microservice. It is understandable that once the user configures the configuration file, he or she can then export the configuration data in full with one click and publish the data with one click.
  • the target data set may include one or more data sets, and the corresponding target export executor may include multiple sub-export executors. Specifically, the target export executor can be used to crawl the data indicated by the target data set.
  • the target data set is also used to define a preset change type; the method further includes: when the change type of data indicated by the target data set meets the preset change type; In the case of a change type, the at least one target environment server imports the data indicated by the target data set. In this way, when the data is imported into the target environment, it can be determined whether the change type of the data to be imported matches the preset change type. If it matches, the data import will be performed. Otherwise, the data import will not be allowed, ensuring the accuracy of the data import. .
  • the above method further includes: the configuration environment server parses the name of the target microservice from the data export instruction; the configuration environment server determines the name of the target microservice according to the target The name of the microservice, and the target export executor corresponding to the target data set is found from the target configuration file corresponding to the target microservice.
  • the target data set includes multiple sub-data sets
  • the target export executor includes multiple sub-export executors
  • one of the sub-data sets corresponds to one sub-export execution.
  • the source data in a part of the multiple sub-data sets is the source data of the target microservice
  • the source data in another part of the sub-data set is the source data of a microservice different from the target microservice.
  • the above target data set indicates multiple data sets defined in the target configuration file below. That is, the plurality of sub-datasets in the above target data set are equivalent to the plurality of data sets indicated by the target configuration file below.
  • the data type of the source data in the plurality of sub-data sets includes at least one of database scripts, pictures, portable document formats, tables, and documents. That is to say, this application supports multi-source data release, which improves the convenience of data release.
  • the above method further includes: a first target environment server parsing out the target data set in the data packet, the first target environment server being the at least one Any one of the target environment servers; the first target environment server uses a target import executor to import the target data set into the first target environment server according to the target configuration table corresponding to the target microservice;
  • the target configuration table is used to define the corresponding relationship between the target microservice, the target data set, and the target import executor. It can be understood that servers corresponding to other environments in at least one target environment server can also specify similar operations. Refer to the relevant description of the first target environment server.
  • the method further includes: the first target environment server executing a target callback operation corresponding to the target data set; wherein the target configuration table is also used to define Correspondence between the target data set and target callback information, the target data set includes multiple sub-data sets, the target callback information includes multiple sub-callback information, and one sub-callback operation corresponds to one sub-data set. That is, the target environment server can intelligently process and execute preset callback operations, such as clearing the cache, rebuilding the index, pushing data to the integration platform, returning and publishing result reports by email, and other callback operations without manual intervention, avoiding a lot of duplication. work, greatly shortening the project launch cycle and reducing subsequent operation and maintenance costs.
  • preset callback operations such as clearing the cache, rebuilding the index, pushing data to the integration platform, returning and publishing result reports by email, and other callback operations without manual intervention, avoiding a lot of duplication. work, greatly shortening the project launch cycle and reducing subsequent operation and maintenance costs.
  • the method further includes: the terminal device initiating a data release instruction to the code management server, and the data release instruction is associated with the target microservice; wherein, The business data package is released by the code management server to the at least one target environment server with one click in response to the data release instruction.
  • the method further includes: the server corresponding to the code management system records release information corresponding to the configuration information of the target microservice; wherein the release information includes the following At least one item: the name of the target microservice, the name release time of the business data package, release status information, and the change type of the target data set indication data in the business data package; and, in the release information
  • the comparison result between the change type of the indicated data contained in the target data set and the preset change type predefined in the target data set is used as the judgment result for judging the correctness of the business data package.
  • the change type of the data indicated by the target data set in the release information is the same as the preset change type defined by the target data set, it means that the business data package is accurate; otherwise, it means that the business data package is inaccurate.
  • the user queries the release information of the business data package he can intuitively see the business change type before the data indicated by each data set in the business data package is exported and released, and then can verify the data indicated by each data set. Whether the data is exported and released under the preset business change type is used to determine the accuracy of the business data package and thereby verify the accuracy of the data export and release.
  • the above change type is new data, changed data or deleted data.
  • the method further includes: the terminal device receiving a publishing query request corresponding to the service data packet; and the terminal device initiating a query request to a server corresponding to the code management system.
  • the service data performs a rollback operation, and the release log button is used to trigger the terminal device to display historical release information of the service data package.
  • the above target microservice is applied to Internet financial products or Internet insurance products.
  • this application provides a data publisher system.
  • the system includes: the system includes a terminal device, a configuration environment server, a code management server, and at least one target environment server; the terminal device is used to provide configuration information to the configuration server.
  • the environment server initiates a data export instruction, and the data export instruction is associated with the target microservice; the configuration environment server is used to respond to the data export instruction and determine the data corresponding to the target microservice according to the preset target configuration file.
  • the target export executor and the target data set wherein the target configuration file is used to define the correspondence between the target microservice, the target data set and the target export executor; the configuration environment server uses the The target export executor exports the data indicated by the target data set from the configuration environment server to the code management server; the data indicated by the target data set is part of the data in the configuration data corresponding to the target microservice.
  • the code management server is also used to save the data indicated by the target data set to the first warehouse corresponding to the target microservice; the first warehouse is used in the code management server to store all A warehouse for the configuration data of the target microservice, and the first warehouse is different from the warehouse used to store the application data of the target microservice in the code management server; the code management server is also used to store the target data Pack all the configuration data in the first warehouse indicated by the set into a business data package, and publish the business data package to at least one target environment server, where the business data package includes the target microservice All configuration data, excluding the application data of the target microservice.
  • the target data set is also used to define a preset change type, When the change type of the data indicated by the target data set matches the preset change type, it is exported to the code management server.
  • system further includes: the configuration environment server parses the name of the target microservice from the data export instruction; the configuration environment server performs the following tasks according to the target: The name of the microservice, and the target export executor corresponding to the target data set is found from the target configuration file corresponding to the target microservice.
  • the target data set includes multiple sub-data sets
  • the target export executor includes multiple sub-export executors
  • one of the sub-data sets corresponds to one sub-export execution.
  • the source data in a part of the multiple sub-data sets is the source data of the target microservice, and the source data in another part of the sub-data set is the source data of a microservice different from the target microservice.
  • the above target data set indicates multiple data sets defined in the target configuration file below. That is, the plurality of sub-datasets in the above target data set are equivalent to the plurality of data sets indicated by the target configuration file below.
  • the data type of the source data in the plurality of sub-data sets includes: at least one of database scripts, pictures, portable document formats, tables, and documents.
  • the system further includes: a first target environment server parsing out the target data set in the data packet, and the first target environment server is the at least one Any one of the target environment servers; the first target environment server uses a target import executor to import the target data set into the first target environment server according to the target configuration table corresponding to the target microservice; The target configuration table is used to define the corresponding relationship between the target microservice, the target data set, and the target import executor.
  • the above system further includes: the first target environment server performs a target callback operation corresponding to the target data set; wherein the target configuration table is also used to define Correspondence between the target data set and target callback information, the target data set includes multiple sub-data sets, the target callback information includes multiple sub-callback information, and one sub-callback operation corresponds to one sub-data set.
  • system further includes: the terminal device initiating a data release instruction to the code management server, and the data release instruction is associated with the target microservice; wherein, The business data package is released by the code management server to the at least one target environment server with one click in response to the data release instruction.
  • the above system further includes: the server corresponding to the code management system records release information corresponding to the configuration information of the target microservice; wherein the release information includes the following At least one item: the name of the target microservice, the name release time of the business data package, release status information, and the change type of the target data set indication data in the business data package; and, in the release information
  • the comparison result between the change type of the indicated data contained in the target data set and the preset change type predefined in the target data set is used as the judgment result for judging the correctness of the business data package.
  • the above change type is new data, changed data or deleted data.
  • the system further includes: the terminal device receiving a publishing query request corresponding to the service data packet; and the terminal device initiating a query request to the server corresponding to the code management system.
  • Publish query request corresponding to the service data package the service corresponding to the code management system returns to the terminal device Return the release information;
  • the terminal device displays the release information, release button, rollback button and release log button through the query interface; wherein the release button is used to trigger re-release of the business data packet to the In at least one target environment server, the rollback button is used to trigger a rollback operation on the business data in the at least one target environment server, and the publish log button is used to trigger the terminal device to display the business data package. historical release information.
  • the above target microservice is applied to Internet financial products or Internet insurance products.
  • embodiments of the present application provide a computer-readable storage medium. Instructions are stored on the computer-readable storage medium. When executed on a terminal device, the instructions cause the electronic device to perform data publishing as in the first aspect. method.
  • embodiments of the present application provide a computer-readable storage medium. Instructions are stored on the computer-readable storage medium. When the instructions are executed on a server, they cause the server to perform the data publishing method in the first aspect.
  • embodiments of the present application provide a terminal device, including: a memory for storing instructions executed by one or more processors of the electronic device, and a processor, when the instructions are processed by one or more When the processor is executed, the processor is configured to execute the data publishing method executed by the terminal device described in the first aspect.
  • embodiments of the present application provide a server, including: a memory for storing instructions executed by one or more processors of an electronic device, and a processor, when the instructions are executed by one or more processors, When executing, the processor is configured to execute the data publishing method executed by the code management server or the server in the at least one target environment server in the first aspect.
  • Figure 1 shows a schematic diagram of a configuration data publishing process according to some embodiments of the present application
  • Figure 2 shows a schematic diagram of a configuration data release scenario according to some embodiments of the present application
  • Figure 3 shows a code schematic diagram of business data according to some embodiments of the present application.
  • Figure 4 shows a code schematic diagram of business data according to some embodiments of the present application.
  • Figure 5 shows a schematic diagram of a display method of business data according to some embodiments of the present application.
  • Figure 6 shows a schematic flow chart of a data publishing method according to some embodiments of the present application.
  • Figure 7 shows a schematic diagram of the hardware structure of a terminal device according to some embodiments of the present application.
  • Illustrative embodiments of the present application include, but are not limited to, a data publishing method and system.
  • the data publishing method provided by the embodiment of this application is mainly used for the maintenance and management of business data of microservices.
  • this application can store the application data and business data of microservices in different warehouses in the code management system to achieve separation of microservice applications and data.
  • configuration Configuration data such as business data in the environment
  • the business data package is packaged; at the user's request, the business data package is published (or imported) to multiple target environments with one click, for example, imported into the database, file management system and other containers of the target environment shown in Figure 1 .
  • users only need to configure the configuration file once, and then can export the configuration data in full to the code management system with one click, and then publish the data to multiple target environments with one click, reducing manual operations in the data release process.
  • preset callback operations can be intelligently processed and executed in the target environment, such as clearing caches, rebuilding indexes, pushing data to the integration platform, returning emails to publish result reports, and other callback operations without the need for manual labor. Intervention avoids a lot of duplication of work, greatly shortens the project launch cycle, and reduces subsequent operation and maintenance costs.
  • the data set in the configuration data is not limited to database scripts, but can also be pictures, Portable Document Format (PDF), excel (i.e. table), doc (document) and other types of multi-source data, which greatly improves the convenience of data release.
  • PDF Portable Document Format
  • excel i.e. table
  • doc document
  • microservice applications are applications built based on spring boot, run under the Spring Cloud architecture, and are provided externally through the Hyper Text Transfer Protocol (HTTP) Serve.
  • HTTP Hyper Text Transfer Protocol
  • the microservice environment involved includes a research and development environment, a test environment, an integration environment, and a production environment.
  • the R&D environment, test environment, and integration environment are used to lay the foundation for a safe and stable production environment. Therefore, configuration data such as business data in the three environments of R&D environment, test environment, and integration environment need to be consistent with the production environment.
  • the embodiment of the present application publishes configuration data among the R&D environment, test environment, integration environment and production environment, so that the configuration data remains consistent throughout the system.
  • the data release method provided by this application is mainly explained by taking the release of configuration data involved between the R&D environment, the test environment, and the integration environment as an example.
  • FIG 2 is a schematic diagram of a configuration data release scenario provided by an embodiment of the present application.
  • the scenario shown in Figure 2 includes a data release management system 10, a code management system 20, a research and development environment 30, a test environment 40 and an integration environment 50.
  • the data release management system 10 is used to trigger the export or submission of configuration data such as business data in the R&D environment 30 to the code management system 20, and trigger the packaging of the configuration data in the code management system 20 into business data packages and Publish to the test environment 40 and integration environment 50, and view the data release status, etc.
  • the above-mentioned data release management system 10 can be implemented through software, and provides a user interaction interface to support functions such as user triggering of data release and subsequent query of data release status.
  • the above-mentioned data release management system 10 can be provided in a terminal device 100, and the terminal device 100 is a device with a display screen.
  • the terminal device 100 applicable to the present application may be a desktop computer, a portable computer, a palmtop computer, a mobile phone, a tablet computer, etc., which are not limited in the embodiments of the present application.
  • the code management system 20 is used to store application data and configuration data (such as business data) of microservices in different warehouses, and package the configuration data into compressed files such as business data packages.
  • the above-mentioned code management system 20 may be a distributed version control system (Git) or a version control system (Subversion, SVN), etc.
  • the code management system 20 can be implemented through gitlab.
  • gitlab is an online code warehouse software based on git. It is generally used to build git private servers in internal networks of enterprises, schools, etc. It can be regarded as a simple github.
  • the warehouse instructions in the code management system 20 involved in this application is the gitlab repository.
  • the code management system 20 may be installed in a server 200, and the server 200 (also referred to as a code management server) may be an independent server or a cloud server.
  • the independent server owns all the software and hardware resources of the entire server, and can allocate and implement a variety of network function services on its own. For example, it can independently store the application data and configuration data of microservices.
  • the cloud server may be a hardware server or may be embedded in a virtualized environment.
  • the cloud server may be a virtual machine executed on a hardware server including one or more other virtual machines.
  • test environment 40 and integration environment 50 are used to parse the business data packages imported from the code management system 20 and automatically execute preset callback operations.
  • the research and development environment 30, the test environment 40 and the integration environment 50 can be applied to the server 300, the server 400 and the server 500 respectively.
  • each of the R&D environment 30 , the test environment 40 and the integration environment 50 may also include terminal devices that interact with servers and other devices used to complete microservice-related tasks such as R&D, testing and integration, which will not be described in detail here. .
  • each of the above-mentioned servers 300, 400 and 500 may be an independent server or a cloud server. Refer to the relevant description of the server 200 above, which will not be described again here.
  • the data publishing method can be implemented through interaction between the terminal device 100, the server 200, the server 300, the server 400 and the server 500. That is, the terminal device 100 interacts with the server to implement the data publishing process, and the terminal device 100 and each server can interact through HTTP protocol requests.
  • the configuration environment to be exported is the R&D environment 30, and the target environments to be imported are the test environment 40 and the integration environment 50 as examples to illustrate the data release method provided by the embodiments of the present application.
  • the target environment servers are the server 400 in the test environment 40 and the server 500 in the integration environment 50 .
  • the microservices involved in this application can be microservices provided for products such as insurance products or financial products
  • configuration data such as business data include basic data or rules of the product, such as insurance rules, claims rules, continued Insurance rules, risk control configuration, insurance plan copy, merchant number, insurance type, liability, terms, rate schedule, etc.
  • configuration data can be divided into the following types: insurance rules, claims rules, renewal rules, risk control configuration, protection plan copy, merchant number, insurance type, liability, terms, rate schedule, etc.
  • the configuration data release involved in this application can be any type of configuration data among the above types.
  • the server in the configuration environment exports configuration data such as business data based on the preset configuration file.
  • the configuration file is usually configured manually by technicians, so the configuration file can remain unchanged during subsequent data export and publishing processes, and users do not need to repeatedly modify it manually.
  • the code management management system 20 can store configuration data such as application data and business data of microservices in two warehouses respectively, thereby realizing separation of applications and data. Then, due to the separation of applications and data of microservices, configuration data such as business data of microservices can be separately exported to the code management system 20 and released. Furthermore, unified and centralized management of classified configuration data stored in the code management system 20 can be achieved. As an example, in the data corresponding to the configuration data of the microservice in the code management system 20, different types of data (such as insurance business data, insurance user information, etc.) are stored according to preset directories.
  • the above configuration file is used to define a data set, define microservice parameters such as the name of a microservice associated with the data set, and define an export executor corresponding to each data set in the configuration environment.
  • a configuration file corresponds to a microservice
  • a configuration file defines one or more data sets
  • a data set corresponds to an export executor.
  • the source data of the above data set is not limited to database scripts, but can also be multi-source data such as pictures, pdf, excel, doc, etc.
  • this application is not limited to the source data export and release of database scripts, but supports the export and release of multi-source data, which greatly improves the convenience of data release.
  • one or more data sets defined in the configuration file contain the source data of the corresponding microservice in the configuration environment, and each defined data set has a name.
  • Multiple data sets defined in the configuration file are the source data of the same current microservice; or, part of the data sets defined in the configuration file contains the source data of the current microservice (recorded as the target microservice), and another part of the data set contains other data sets.
  • Source data for microservices can export and publish the configuration data of other microservices while exporting and publishing the configuration data of the target microservice. That is to say, the data publishing method provided by the embodiment of this application supports exporting and publishing data other than the own server, further improving the convenience of data export and publishing.
  • the above-mentioned export executor is used to export the corresponding data set from the server where the configuration environment is located (such as the server 300 in the R&D environment 30) to the code management system 20.
  • the export executor is used to grab the source data in the corresponding dataset from the configuration environment.
  • an export executor may be an interface used to export the data indicated by the corresponding data set from the configuration environment to the code management system 20 , and the interface is used to indicate to the warehouse in the code management system 20
  • the path of a directory, that is, the export executor corresponding to a data set is also used to indicate the directory in the warehouse in the code management system 20 where the data set is stored.
  • the name of each data set and the name of the target microservice will be configured in the configuration environment and the database of each target environment. That is to say, the name of each microservice and the name of each data set are consistent in the configuration environment, the target environment, and the terminal device 100 .
  • the terminal device 100 can pre-set the above configuration file in the configuration environment 30 , such as pre-stored in the database of the server 300 in the R&D environment 30 .
  • the configuration in order to ensure that the names of the microservices and the names of each data set are consistent in the configuration environment, the target environment and the terminal device 100, while storing the above configuration file in the configuration environment, the configuration can be pre-stored in the target environment. surface.
  • the configuration table in the target environment is used to define the data set, define microservice parameters such as the name of the microserver associated with the data set, define the import executor corresponding to each data set in the target environment, and define each data Set the corresponding callback information.
  • the callback operations indicated by the callback information can be clearing the cache, rebuilding the index, pushing data to the integration platform, and returning a publishing result report via email, etc.
  • a configuration table corresponds to a microservice
  • a configuration table defines one or more data sets
  • a data set corresponds to an import executor. It can be understood that the name of the defined data set and the name of the microservice are consistent in the configuration table of the target environment and the configuration file in the configuration environment.
  • the format and content of the configuration file involved in this application are described in detail.
  • the format of the configuration table in the target environment can refer to the relevant description of the configuration file, which will not be described in detail in this article.
  • the configuration file is a file in Extensible Markup Language (Extensible Markup Language, xml) format and follows a custom Extensible Markup Language Schema Definition (XML Schema Definition, xsd) standard.
  • Extensible Markup Language Extensible Markup Language, xml
  • XML Schema Definition XML Schema Definition
  • the configuration file consists of two parts.
  • the first part is the table definition, which is used to define the table name, primary key, foreign key, business primary key, sorting field (or sorting key), etc.
  • the second part is the data set definition, which is used to define the data that needs to be exported. Table collections, conditions, parameters, etc.
  • primary key refers to a column or a combination of multiple columns, whose value can uniquely identify each row in the table, through which the entity integrity of the table can be enforced.
  • the primary key is mainly used to associate foreign keys with other tables, as well as modify and delete text records.
  • Foreign key used to maintain data consistency and integrity. The main purpose is to control the data stored in the foreign key table and associate the primary key table and the foreign key table. Foreign keys can only reference columns in the foreign key table. value or use a null value.
  • Business primary key In relational database design, the business primary key is a key composed of attributes that already exist in the world. In other expressions, a business primary key is a candidate key that is logically related to an in-row attribute. The business primary key ensures that there will be only one corresponding row for each business primary key.
  • Sort key When creating a table, you generally do not need to specify the primary key, just the sort key. When the primary key is not specified, the column following order by will be used as the primary key. You can specify both the sort key (order by) and the primary key (primary key), but the primary key is best the prefix of the sort key.
  • the sort key is used to sort the data fragments
  • the primary key is used to write marks in the index file.
  • the configuration file contains the name of the target microservice.
  • the table definition in the first part contains the name of the target microservice.
  • the configuration file contains the name of each data set.
  • a table name of the table collection defined in the data set definition in the second part can be the name of a data set.
  • Rule.xml file will be defined as the configuration file, that is, the name of the rule engine service is defined as "Rule”.
  • the first part of the Rule.xml file contains the table t_rm_rule that needs to be exported, which contains the primary key rule_id.
  • the primary key rule_id is used to uniquely identify the table in the Rule.xml file.
  • the second part of Rule.xml is a data set. Each data set can be named. The data set contains a collection of tables that need to be exported, t_rm_rule, t_rm_rule_group, etc.
  • the export condition is rule_id in (ruleIds) (that is, the primary key rule_id is in the preset Assuming the parameter ruleIds), the data type of the parameter ruleIds is an array (Array) type. It is understandable that the name of the rule engine service is "Rule", and multiple data sets include a data set named t_rm_rule and a data set named t_rm_rule_group. In addition, in some embodiments, each data set in the above data sets is also used to define a preset change type. Furthermore, when the data indicated by a data set changes according to the preset change type defined by the data set, the data that triggers the data set indication is exported to the code management system 20 .
  • the T_RM_EVENT table is a rule transaction table under the product rules of an insurance product.
  • the T_RM_EVENT table is a table in the Rule.xml file corresponding to the above-mentioned rule engine service.
  • the primary key can be defined by the code "private Long eventId;” that is, the primary key is eventId;
  • the business primary key can be defined by the code “private String name;”;
  • the sorting key is defined by the code “private String code;”;
  • the business primary key is used to define the name of the business in the table definition
  • the sort key is used to sort each table in the table definition;
  • the foreign key is used to define the name of the business outside the target microservice. Tables corresponding to the source data of other microservices.
  • the table in the configuration file includes multiple pieces of data, each piece of data including primary key, foreign key, sort key and business key. Service primary key, etc. It can be understood that at least one piece of data among multiple pieces of data in the configuration file can be used to define a data set.
  • Figure 3 is a piece of data in the T_RM_EVENT table in the above database, and this data is "underwriting rule inspection".
  • the primary key in this piece of data is -1
  • the name is UnderwritingRuleCheck
  • the foreign key is -1, which is associated with the primary key DRIVER_ID in the T_RM_DRIVER (ie t_rm_driver) table.
  • the sort key (orderKey) and business primary key (BusinessKey) are both UnderwritingRuleCheck, that is, the names of the primary key, business primary key, and sort key are the same.
  • the server side can interact with the PC side to send data such as the "underwriting rule verification" data shown in Figure 4 stored on the server side to the PC side, and then display it to the operator through the PC side interface.
  • the above-mentioned server side refers to the server in various environments such as the research and development environment 30, or the server in the code management system 20.
  • the above-mentioned PC side refers to the above-mentioned terminal device 100, or the terminal device in various environments such as the R&D environment 30 that interacts with the server to support the operator to query or modify data on the server side.
  • the operator can initiate a data request from the terminal device 100 to the server (such as the server 300), so that the server returns the "underwriting rule verification" data in response to the request, and then displays the data.
  • the server such as the server 300
  • the terminal device 100 can display the "Underwriting Rules Verification” data, and/or display the "Underwriting Rules Verification” data according to a preset style. Check” the main information in the data.
  • the terminal device 10 can display the two contents on the same interface, or can display the two contents on different interfaces respectively.
  • the "Underwriting Rule Check” data that is, the data with the primary key of -1 and the name of UnderwritingRuleCheck, as shown in Figure 5, the "Underwriting Rule Check” data is displayed according to the preset style. main information.
  • the main information shown in Figure 5 includes the following: the data code name "Event Code” 81 is “UnderwritingRuleCheck”; the data name “Event Name” 82 is “UnderwritingRuleCheck”; data description information "Description” 83 is “UnderwritingRuleCheck”; the data type “Event Type” 84 is DIRECT; the data associated data name "Driver” 85 is “UnderwritingRuleCheck”, and the "Underwriting Rule Check” data is associated with Driver information through the primary key DriverId: -1 ;
  • the rule group "Rule Group” 86 includes Cloud_Application_API_Validation (cloud application API interface takes effect), Cloud_Application_API (cloud application interface), AutoTest_Preset_UWRule_Group (automatic test preset underwriting rule inspection group), and UWcheckGroup (underwriting rule inspection rule) and other information.
  • the method includes the following steps:
  • Step 601 The terminal device 100 sends a first request to the server 300 in the R&D environment 30.
  • the first request is used to request to export the data indicated by the data set defined by the target configuration file in the server 300 where the R&D environment is located to the code management system. 20.
  • the above-mentioned first request may also be called a data export instruction.
  • the R&D environment 300 is a configuration environment
  • the server 300 is a configuration environment server.
  • the above-mentioned first request includes the name of the target data set and the name of the target microservice.
  • the name of the target microservice in the first request is Rule shown above, that is, the rule engine service identified by the primary key rule_id; the name of the target data set can be t_rm_rule or t_rm_rule_group.
  • the above-mentioned first request also includes a target configuration file corresponding to the target microservice, or a target file parameter used to uniquely identify the target configuration file.
  • the terminal device 100 may also send the target file parameters or the target configuration file to the server 300 .
  • the above target file parameter may be the file name of the target configuration file, such as the name "rule" of the file rule.xml mentioned above.
  • the configuration environment is R&D environment 30.
  • the above-mentioned target data set is one or more data sets to be exported in the server of the R&D environment 30, and the above-mentioned target microservice is the microservice to which the target data set belongs.
  • the data indicated by the data set to be processed can be configuration data such as business data of the target microservice.
  • one of the tables defined in the target data set is the T_RM_EVENT table shown in Figure 3.
  • the target data set includes a table identified by the primary key -1 and the name UnderwritingRuleCheck. Furthermore, it is convenient to subsequently search the table in the target data set according to the primary key to find the data indicated by the target data set, so as to export and publish the data indicated by the data set to be processed.
  • the target data set may include one or more sub-data sets, and the name of the target data set is included in a preconfigured configuration file corresponding to the target microservice.
  • data export and release are performed on configuration data such as business data of the target microservice.
  • the data publishing system 10 in the terminal device 100 can provide a trigger data export interface, which is responsible for sending the name of the target data set and the name of the target microservice to the server 300 .
  • the interface for triggering data export may provide a first input box for inputting or selecting a data set name, a second input box for inputting or selecting a microservice name, and an export button for triggering data export. Then, after the user inputs the name of the target data set through the first input box, enters the name of the target microservice through the second input box, and operates the export button, the terminal device 100 can automatically generate the first request. At this time, the user's operation of the export button can trigger a one-click full export of the configuration data in the configuration environment.
  • the configuration file only needs to be configured once in advance, and then the data export can be easily and conveniently triggered.
  • the name of the data set entered by the user in the first input box can be UnderwritingRuleCheck (ie, underwriting rule check), and the target entered in the second input box
  • UnderwritingRuleCheck ie, underwriting rule check
  • Step 602 The server 300 finds the target export executor from the configuration file according to the name of the target data set and the name of the target microservice.
  • the server 300 matches the target export executor corresponding to the target data set from the configuration file according to the name of the target data set and the name of the target microservice. Among them, a sub-export executor is matched for each sub-target sub-data set in the target data set.
  • the corresponding export executor can be found from the configuration file so that subsequent export operations can be performed on it.
  • Step 603 The server 300 exports the configuration data in the target data set to the first warehouse in the code management system 20 in the server 200 through target export execution.
  • the UnderwritingRuleCheck data can be exported to the first warehouse in the code management system 20 through a target export executor corresponding to the data set in which the data is located.
  • the above-mentioned first warehouse is a warehouse corresponding to the configuration data of the target microservice in the code management system 20 .
  • the configuration data can be submitted to the code management system 20 according to a preset file directory structure.
  • the first warehouse in the code management system 20 not only contains the configuration data indicated by the target data set, but may also contain other configuration data.
  • the above-mentioned first warehouse is a warehouse used to store configuration data of the target microservice in the code management system, and the first warehouse is different from the warehouse used to store application data of the target microservice in the code management system.
  • the server 200 saves the configuration data in the target data set in the code management system 20 and can also record the version information in the configuration data in the first warehouse.
  • Step 604 The terminal device 100 sends a second request to the server 200.
  • the second request is used to request the release of the configuration data of the target microservice in the target environment.
  • the above-mentioned first request can also be called a data release instruction, and the second request is associated with the target microservice.
  • the above-mentioned second request includes target environment parameters and the name of the target microservice.
  • the target environment parameters are the address or name of the server in the target environment where the data is to be released, etc.
  • the second request is used to request to release the configuration data in the first warehouse corresponding to the target microservice in the code management system 20 to the target environment.
  • the target environments may be the test environment 40 and the integration environment 50 .
  • the data publishing system 10 in the terminal device 100 can provide a triggering business data publishing interface, which is used to trigger the business data package corresponding to the target microservice in the code management system 20 and the target microservice.
  • the name of the service is sent to the server of the target environment, that is, the user triggers the release of configuration data in the target environment.
  • the triggering business data publishing interface may provide a third input box for inputting or selecting the name of the microservice, a fourth input box for inputting or selecting target environment parameters, and a publishing button for triggering data publishing. Then, after the user inputs the name of the target microservice through the third input box, enters the target environment parameters through the fourth input box, and operates the publish button, the terminal device 100 can automatically generate the second request. At this time, the user's operation on the publish button can realize one-click publishing of configuration data.
  • the name of the microservice entered in the third input box may be UnderwritingRuleCheck
  • the target environment parameters entered in the fourth input box may include the identification of the test environment 40 (such as the name of the test environment 40 or the name of the server 400 or address, etc.) and the identification of the integrated environment 50 (such as the name of the integrated environment 50 or the name or address of the server 500, etc.).
  • the data release management system 10 when receiving the user's operation on the publish button, can also provide a verification interface for verifying the configuration data to be released, and prompts the verification result. If the verification is correct , then perform subsequent steps 605 and other steps, wherein verifying the configuration data to be released specifically includes verifying the correctness and integrity of the configuration data to be released, and may also verify the surrounding systems of the configuration data to be released, for example Commission allocation system.
  • verifying the configuration data to be released specifically includes verifying the correctness and integrity of the configuration data to be released, and may also verify the surrounding systems of the configuration data to be released, for example Commission allocation system.
  • the data indicated by the target data set can be displayed in the verification interface, so that the user can intuitively see the data exported and published this time in the configuration data to be published, so as to verify the accuracy of the data to be published.
  • the data release management system 10 may also provide a peripheral verification button in the verification interface.
  • the following steps may also be included after the above step 604: when receiving When the verification command is issued through the peripheral verification button, the peripheral system of the configuration data to be released is verified, such as the commission configuration system. If the verification passes, continue to perform subsequent steps such as step 605.
  • Step 605 The server 200 packages the configuration data in the first warehouse of the code management system 20 to obtain a business data package.
  • the server 200 packages all configuration data in the first warehouse.
  • the packaged service data package may be a compressed package.
  • Step 606 The server 200 publishes the service data package in the server 400 and server 500 corresponding to the target environment according to the target environment parameters.
  • the server 300 finds the corresponding export executor from the configuration file according to the name of the target data set and the name of the target microservice, and exports the configuration data in the target data set to the first warehouse in the code management system 20 through export execution.
  • the code management system 20 can call the import interface corresponding to the test environment 40 and the import interface corresponding to the integration environment 50 through the server 200 to publish the business data package.
  • the above target data set is also used to define a preset change type.
  • the change type of the data indicated by the target data set matches the corresponding preset change type, it is imported to the target environment server, such as the server of the test environment 40 400 and integrated environment 50 for server 500.
  • any server in the server 400 and the server 500 can determine whether the service data package is consistent with the current version of the service in the server. Whether there are differences between the data packets, for example, determine whether the MD5 Message-Digest Algorithm codes corresponding to the two data packets are the same to determine whether there are differences between the two data packets. If they are different, it means that the business data package to be imported has changed and is different from the current version of the business data package. If they are the same, it means that the data in the business data package to be imported has not changed and does not exist with the current version of the business data package. difference.
  • the data in the business data package to be imported and the data in the business data package of the current version are obtained and compared, Determine the change type of data in the business data package to be imported, and obtain the change type of data indicated by each data set. Furthermore, the change type of the data indicated by each data set in the business data package to be imported is compared with the predefined preset change type in the corresponding data set. Only the change type of the data indicated by the data set matches the corresponding preset change type. The data indicated by this dataset will be imported into the target environment.
  • the change type of the data indicated by the data set matches the preset change type predefined in the target data set
  • the data indicated by the data set is imported to the server in the target environment. In this way, it can be verified whether the data indicated by each data set is imported into the target environment in compliance with the preset change types to verify the accuracy of data release and import.
  • Step 607 The server 200 records all files released by the data and their corresponding release status. This enables subsequent repeated releases or rollback releases to achieve configuration data version control.
  • all files (ie, release information) of data release include: the name of the business data package (ie, the name of the configuration data), version information, release time (including start time and end time), and release time.
  • Status information (such as successful release, failed release, publishing in progress) and release logs (including historical version numbers, historical release time, historical version configuration data, etc.) and change types (such as new data, changed data, or deleted data, etc.) wait.
  • the release log may also include a version tree formed based on the version information (such as version number) of the configuration data. Then, version comparison and rollback are performed based on the version tree to ensure that the release action is safe and reliable.
  • version information such as version number
  • users check the change type in the release information and compare the change type with the corresponding preset change type to verify the correctness of data release and import.
  • the comparison result of the change type with the preset change type predefined in the target data set can be used to determine the data indicated by the target data set.
  • the judgment result of the import accuracy is used as the judgment result to judge the correctness of the business data package. For example, if the change type comparison result is different, it means that the business data package is imported incorrectly.
  • all files published by the data may also include business data packages.
  • Step 608 The terminal device 100 obtains all files for data release and their corresponding release status from the server 200.
  • the terminal device 100 may send a third request to the server 200, where the third request is used to obtain all files published by the data and their corresponding publishing status from the server 200.
  • the third request may include the name of the target microservice, or information such as release time, which will be used as query conditions for querying the release status of the business data package.
  • the data publishing system 10 in the terminal device 100 can provide a business data publishing status interface, which is used to provide functions such as querying data publishing status, data change records (such as rollback publishing), etc.
  • the data release status interface can trigger querying information such as the release status of the business data package corresponding to the target microservice from the code management system 20 .
  • the business data release status interface can query the corresponding business data release status through release time, the name of the microservice to which the business data package belongs, and other query conditions.
  • the business data release status interface can provide an input box for the user to input or select the release time, the name of the target microservice and other query conditions to trigger the query of the release status of the business data package.
  • the user can select the name of the microservice UnderwritingRuleCheck in the business data release status interface to trigger the search for the data release status.
  • the business data release status interface can also provide the user with a re-publish button that triggers the re-publishing of the business data package of the target microservice through the release time, and a callback button that triggers the rollback of the business data package of the target microservice. Roll publish button etc.
  • the query result of the queried business data package on the business data release status interface can include the following content: release status, release start time, end time, version number, release log entry, re-publish button, rollback release Buttons etc.
  • the data release management system 10 displays a configuration history interface to display all versions of the configuration data, and the configurer can select any two version configurations for comparison.
  • the configuration history interface can also provide a comparison between the version to be released and the online effective version, and provide a release button and a peripheral verification button.
  • Step 609 The server 400 parses the target service data packet and obtains the data indicated by the target data set in the target service data packet.
  • the server 400 parses the target business data packet and can obtain "Underwriting Rule Check” data named UnderwritingRuleCheck in a target data set.
  • Step 610 The server 400 searches the configuration table for the first import executor and the first callback corresponding to the target data set. information, import the data indicated by the target data set into the server 400 through the first import executor, and execute the first callback operation indicated by the first callback information. Combined with the above example, the server 400 can search the configuration table for the import executor and callback information corresponding to the data set named UnderwritingRuleCheck.
  • the first import executor is specifically a plurality of sub-import executors.
  • the first callback information also includes multiple sub-callback information, and each callback information indicates a callback operation.
  • the first callback operation can be clearing the cache, rebuilding the index, pushing data to the integration platform, returning the publishing result report via email, etc.
  • clearing the cache refers to clearing the cache in the server 400 to store service data packets.
  • Rebuilding the index refers to the index rebuilt on the server 400 for the service data packet.
  • Pushing data to the integration platform refers to pushing the data in the business data package into the data release management system 10 .
  • the return of the publishing result report by email means that the server 400 sends the result of successful or failed business data publishing to a preset mailbox in the form of an email for technical personnel to view.
  • the callback operation can be extended by inheriting the callback interface of the publishing service (such as the import interface above), and is embodied in the microservice in the form of a spring bean (that is, a microservice project, such as the above-mentioned target microservice).
  • the callback information of the data set can be achieved through the following steps: first, configure the corresponding spring bean name (for example, the above target is the name of the server) in the database of the target environment in advance; then, obtain it through the spring bean name spring bean, and finally execute the fixed method in the spring bean for callback.
  • Step 611 The server 500 parses the target service data packet and obtains the data indicated by the target data set in the target service data packet.
  • Step 612 The server 500 searches for the second import executor and the second callback information corresponding to the target data set from the configuration table, imports the data indicated by the target data set into the server 500 through the second import executor, and executes the second callback information. Indicates the second callback operation.
  • steps 611 and 612 may refer to the above description of step 609 and step 610, which will not be described again here.
  • the second callback information is the same as or different from the first callback information.
  • the target environment is only the test environment 40 and the integration environment 50 as an example.
  • the actual application may be more or less target environments.
  • the server 400 and the server 500 can perform callback operations before, during, and after data is released.
  • FIG. 7 it is a schematic diagram of the hardware structure of a terminal device 100 provided by an embodiment of the present invention.
  • the terminal device 100 shown in FIG. 7 includes: a processor 1001, a communication unit 1002, a memory 1003, a user interface 1004 and a bus interface 1005.
  • the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 1001 and various circuits of the memory represented by memory 1003 linked together.
  • the bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are all well known in the art and therefore will not be described further herein.
  • the bus interface provides the interface.
  • the communication unit 1002 may be a plurality of elements, including a transmitter and a receiver, providing means for communicating with various other devices over a transmission medium.
  • the user interface 1004 can also It is an interface that can be connected to external and internal devices.
  • the connected devices include but are not limited to keyboards, monitors, speakers, microphones, joysticks, mice, etc.
  • the processor 1001 is responsible for managing the bus architecture and general processing, and the memory 1003 can store data used by the processor 1001 when performing operations.
  • the display screen 1006 is used to provide a human-computer interaction interface.
  • the terminal device 100 also includes some not-shown functional modules, which will not be described again here.
  • the display screen in the user interface 1004 is used to provide the trigger data export interface, trigger data release interface, data release status interface, etc. in the data release management system 10 .
  • the keyboard and mouse in the user interface 1004 can be used to support the user in inputting the name of the data set, the name of the target microservice and other information in the data release management system 10, and to receive the input of the number of users to trigger the operation of exporting all data with one click. , as well as trigger operations to publish data with one click, etc.
  • the communication unit 1002 is configured to send a first request to trigger data export to the server that configures the environment, send a second request to trigger data release to the server 200 where the code management system 20 is located, and send a username to the server 200 where the code management system 20 is located. The third request for querying the data release status, etc.
  • the processor 1001 is configured to generate a first request according to the user's input, and control the communication unit 1002 to initiate a request to the server.
  • FIG. 7 it is a schematic diagram of the hardware structure of a terminal device 100 provided by an embodiment of the present invention.
  • the terminal device 100 shown in FIG. 7 includes: a processor 1001, a communication interface 1002, a memory 1003, a user interface 1004 and a bus interface 1005.
  • the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 1001 and various circuits of the memory represented by memory 1003 linked together.
  • the bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are all well known in the art and therefore will not be described further herein.
  • the bus interface provides the interface.
  • Communication interface 1002 may be a plurality of elements, including a transmitter and a receiver, providing means for communicating with various other devices over a transmission medium.
  • the user interface 1004 can also be an interface that can connect external and internal required devices.
  • the connected devices include but are not limited to keyboards, monitors, speakers, microphones, joysticks, mice, etc.
  • the processor 1001 is responsible for managing the bus architecture and general processing, and the memory 1003 can store data used by the processor 1001 when performing operations.
  • the display screen 1006 is used to provide a human-computer interaction interface.
  • the terminal device 100 also includes some not-shown functional modules, which will not be described again here.
  • the display screen in the user interface 1004 is used to provide the trigger data export interface, trigger data release interface, data release status interface, etc. in the data release management system 10 .
  • the keyboard and mouse in the user interface 1004 can be used to support the user in inputting the name of the data set, the name of the target microservice and other information in the data release management system 10, and to receive the input of the number of users to trigger the operation of exporting all data with one click. , as well as trigger operations to publish data with one click, etc.
  • the communication interface 1002 is used to send a first request to trigger data export to the server that configures the environment, send a second request to trigger data release to the server 200 where the code management system 20 is located, and send a username to the server 200 where the code management system 20 is located. The third request for querying the data release status, etc.
  • the processor 1001 is configured to generate a first request according to the user's input, and control the communication interface 1002 to initiate a request to the server.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium includes computer instructions.
  • the electronic device causes the electronic device to execute the mobile phone 10 (such as each function or step performed by each device in the mobile phone 10.
  • Embodiments of the present application also provide a computer program product.
  • the computer program product When the computer program product is run on a computer, it causes the computer to perform various functions performed by the mobile phone 10 (such as each component in the mobile phone 10) in the above method embodiment, or step.
  • Embodiments of the mechanisms disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods. middle.
  • Embodiments of the present application may be implemented as a computer program or program code executing on a programmable system including at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements) , at least one input device and at least one output device.
  • Program code may be applied to input instructions to perform the functions described herein and to generate output information.
  • Output information can be applied to one or more output devices in a known manner.
  • a processing system includes any processor having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor. system.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • Program code may be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system.
  • assembly language or machine language can also be used to implement program code.
  • the mechanisms described in this application are not limited to the scope of any particular programming language. In either case, the language may be a compiled or interpreted language.
  • the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof.
  • the disclosed embodiments may also be implemented as instructions carried on or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be operated by one or more processors Read and execute.
  • instructions may be distributed over a network or through other computer-readable media.
  • machine-readable media may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magnetic Optical disc, Read Only Memory (ROM), Random Access Memory (RAM), Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Memory Read memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic or optical card, flash memory, or used to use the Internet to transmit information through electrical, optical, acoustic or other forms of propagation signals (for example, carrier waves, infrared signals, digital signals etc.) tangible machine-readable storage.
  • machine-readable media includes any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, computer).
  • each unit/module mentioned in each device embodiment of this application is a logical unit/module.
  • a logical unit/module can be a physical unit/module, or it can be a physical unit/module.
  • Part of the module can also be implemented as a combination of multiple physical units/modules.
  • the physical implementation of these logical units/modules is not the most important.
  • the combination of functions implemented by these logical units/modules is what solves the problem of this application. Key technical issues raised.
  • the above-mentioned equipment embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems raised by this application. This does not mean that the above-mentioned equipment embodiments do not exist. Other units/modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present application relates to the technical field of communications. Disclosed are a data publishing method and system. One-key full-amount data export and one-key data publishing can be performed by means of just one configuration, thereby reducing manual operations in a data publishing process. The method comprises: a terminal device initiating a data export instruction to a configuration environment server; in response to the data export instruction and according to a preset target configuration file, the configuration environment server determining a target export actuator and a target data set, which correspond to a target micro-service; using the target export actuator to export data indicated by the target data set from the configuration environment server to a code management server, wherein the data indicated by the target data set is part of data in configuration data corresponding to the target micro-service; storing the data indicated by the target data set in a first warehouse corresponding to the configuration data of the target micro-service; and packaging, into a service data packet, all configuration data in the first warehouse that is indicated by the target data set, and publishing the service data packet into at least one target environment server.

Description

数据发布方法及系统Data publishing method and system

本申请要求于2022年06月29日提交国家知识产权局、申请号为202210749103.2、申请名称为“数据发布方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the State Intellectual Property Office on June 29, 2022, with application number 202210749103.2 and the application name "Data Publishing Method and System", the entire content of which is incorporated into this application by reference.

技术领域Technical field

本申请涉及通信技术领域,特别涉及一种数据发布方法及系统。This application relates to the field of communication technology, and in particular to a data publishing method and system.

背景技术Background technique

通常微服务项目都有配置数据发布的要求,例如在多个配置环境中发布相同的业务数据等。目前,常规技术中一般采用数据库脚本管理的方式实现配置数据发布,例如使用Flyway或者Liquibase等数据库版本控制工具实现。这些工具都是基于命令行或者Maven项目对象模型(POM)运行,本质都是基于迁移数据的方式来更改数据库,例如基于结构化查询语言(Structured Query Language,SQL)迁移数据来更改不同配置环境中的数据库。但是,基于SQL迁移数据在不同配置环境中更新配置数据时需要对数据库脚本进行手动编辑操作,使得配置数据发布过程工作量较大且较为繁琐。Usually microservice projects have requirements for configuration data release, such as publishing the same business data in multiple configuration environments. Currently, conventional technology generally uses database script management to release configuration data, for example, using database version control tools such as Flyway or Liquibase. These tools are all run based on the command line or Maven Project Object Model (POM), and are essentially based on migrating data to change the database, such as migrating data based on Structured Query Language (SQL) to change different configuration environments. database. However, when updating configuration data in different configuration environments based on SQL migration data, manual editing of database scripts is required, making the configuration data publishing process heavy and cumbersome.

发明内容Contents of the invention

本申请实施例提供了一种数据发布方法及系统,用户只需对配置文件进行一次配置,后续便可以一键全量导出配置数据到代码管理系统中,而后一键发布数据到多个目标环境中,减少了数据发布过程的人工操作。进而,针对导入的业务数据包,在目标环境中可以智能化处理并执行预设回调操作,例如清缓存,重建索引,推送数据到集成平台,邮件返回发布结果报告等回调操作,而不需人工介入,避免了大量的重复工作,极大的缩短了项目的上线周期,减少了后续运维成本。The embodiments of this application provide a data publishing method and system. The user only needs to configure the configuration file once, and then can export the configuration data in full to the code management system with one click, and then publish the data to multiple target environments with one click. , reducing manual operations in the data publishing process. Furthermore, for imported business data packages, preset callback operations can be intelligently processed and executed in the target environment, such as clearing caches, rebuilding indexes, pushing data to the integration platform, returning emails to publish result reports, and other callback operations without the need for manual labor. Intervention avoids a lot of duplication of work, greatly shortens the project launch cycle, and reduces subsequent operation and maintenance costs.

第一方面,本申请提供了一种数据发布方法,该方法包括:终端设备向配置环境服务器发起数据导出指令,所述数据导出指令与目标微服务相关联;所述配置环境服务器响应于所述数据导出指令,按照预设的目标配置文件确定与所述目标微服务对应的目标导出执行器和目标数据集,其中,所述目标配置文件用于定义所述目标微服务、所述目标数据集以及所述目标导出执行器之间的对应关系;所述配置环境服务器使用所述目标导出执行器,将所述目标数据集指示的数据从所述配置环境服务器导出到代码管理服务器;所述目标数据集指示的数据是与所述目标微服务对应的配置数据中的部分数据;所述代码管理服务器将所述目标数据集指示的数据保存至与所述目标微服务对应的第一仓库中;所述第一仓库为所述代码管理服务器中用于存储所述目标微服务的配置数据的仓库,并且第一仓库与所述代码管理服务器中用于存储所述目标微服务的应用数据的仓库不同;In a first aspect, this application provides a data publishing method. The method includes: a terminal device initiates a data export instruction to a configuration environment server, and the data export instruction is associated with the target microservice; the configuration environment server responds to the The data export instruction determines the target export executor and target data set corresponding to the target microservice according to the preset target configuration file, wherein the target configuration file is used to define the target microservice and the target data set. and the corresponding relationship between the target export executors; the configuration environment server uses the target export executor to export the data indicated by the target data set from the configuration environment server to the code management server; the target The data indicated by the data set is part of the data in the configuration data corresponding to the target microservice; the code management server saves the data indicated by the target data set to the first warehouse corresponding to the target microservice; The first warehouse is a warehouse in the code management server used to store the configuration data of the target microservice, and the first warehouse is the same as the warehouse used in the code management server to store application data of the target microservice. different;

所述代码管理服务器将所述目标数据集指示的所述第一仓库中的全部配置数据打包为业务数据包,并将所述业务数据包发布到至少一个目标环境服务器中,其中,所述业务数据包中包括所述目标微服务的所有配置数据,不包括所述目标微服务的应用数据。可以理解的是,用户对配置文件配置一次,后续便可以一键全量导出配置数据以及一键发布数 据。其中,目标数据集可以包括一个或多个数据集,相应的目标导出执行器可以包括多个子导出执行器。具体地,目标导出执行器可以用于抓取目标数据集指示的数据。The code management server packages all the configuration data in the first warehouse indicated by the target data set into a business data package, and publishes the business data package to at least one target environment server, wherein the business data package The data package includes all configuration data of the target microservice, excluding application data of the target microservice. It is understandable that once the user configures the configuration file, he or she can then export the configuration data in full with one click and publish the data with one click. according to. The target data set may include one or more data sets, and the corresponding target export executor may include multiple sub-export executors. Specifically, the target export executor can be used to crawl the data indicated by the target data set.

在上述第一方面的一种可能的实现方式中,所述目标数据集还用于定义预设变更类型;所述方法还包括:在所述目标数据集指示的数据的变更类型符合所述预设变更类型的情况下,所述至少一个目标环境服务器导入所述目标数据集指示的数据。如此,在数据导入至目标环境是,可以确定待导入的数据的变更类型是否符合预设变更类型,如果符合的情况下再执行数据导入,反之则不允许数据导入,保证了数据导入的准确性。In a possible implementation of the above first aspect, the target data set is also used to define a preset change type; the method further includes: when the change type of data indicated by the target data set meets the preset change type; In the case of a change type, the at least one target environment server imports the data indicated by the target data set. In this way, when the data is imported into the target environment, it can be determined whether the change type of the data to be imported matches the preset change type. If it matches, the data import will be performed. Otherwise, the data import will not be allowed, ensuring the accuracy of the data import. .

在上述第一方面的一种可能的实现方式中,上述方法还包括:所述配置环境服务器从所述数据导出指令中解析出所述目标微服务的名称;所述配置环境服务器按照所述目标微服务的名称,从与所述目标微服务对应的所述目标配置文件中查找出与所述目标数据集对应的所述目标导出执行器。In a possible implementation manner of the above first aspect, the above method further includes: the configuration environment server parses the name of the target microservice from the data export instruction; the configuration environment server determines the name of the target microservice according to the target The name of the microservice, and the target export executor corresponding to the target data set is found from the target configuration file corresponding to the target microservice.

在上述第一方面的一种可能的实现方式中,所述目标数据集中包括多个子数据集,所述目标导出执行器中包括多个子导出执行器,一个所述子数据集对应一个子导出执行器;并且,所述多个子数据集中的一部分子数据集中的源数据为所述目标微服务的源数据,另一部分子数据集中的源数据为与所述目标微服务不同的微服务的源数据。即本申请支持发布非本服务的数据,提升了数据发布的便捷性。In a possible implementation of the first aspect, the target data set includes multiple sub-data sets, the target export executor includes multiple sub-export executors, and one of the sub-data sets corresponds to one sub-export execution. and the source data in a part of the multiple sub-data sets is the source data of the target microservice, and the source data in another part of the sub-data set is the source data of a microservice different from the target microservice. . That is to say, this application supports the release of data other than this service, which improves the convenience of data release.

需要说明的是,上述目标数据集指示的下文中目标配置文件所定义的多个数据集。即,上述目标数据集中多个子数据集相当于下文中的目标配置文件指示的多个数据集。It should be noted that the above target data set indicates multiple data sets defined in the target configuration file below. That is, the plurality of sub-datasets in the above target data set are equivalent to the plurality of data sets indicated by the target configuration file below.

在上述第一方面的一种可能的实现方式中,所述多个子数据集中的源数据的数据类型包括:数据库脚本、图片、可携带文档格式、表格、文档中的至少一种。即本申请支持多源数据发布,提升了数据发布的便捷性。In a possible implementation of the above first aspect, the data type of the source data in the plurality of sub-data sets includes at least one of database scripts, pictures, portable document formats, tables, and documents. That is to say, this application supports multi-source data release, which improves the convenience of data release.

在上述第一方面的一种可能的实现方式中,上述方法还包括:第一目标环境服务器解析出所述数据包中的所述目标数据集,所述第一目标环境服务器为所述至少一个目标环境服务器中的任意一个;所述第一目标环境服务器按照与所述目标微服务对应的目标配置表,使用目标导入执行器将所述目标数据集导入到所述第一目标环境服务器中;其中,所述目标配置表用于定义所述目标微服务、所述目标数据集以及所述目标导入执行器之间的对应关系。可以理解的是,至少一个目标环境服务器中的其他环境对应的服务器也可以指定类似的操作,参照对第一目标环境服务器的相关描述。In a possible implementation of the above first aspect, the above method further includes: a first target environment server parsing out the target data set in the data packet, the first target environment server being the at least one Any one of the target environment servers; the first target environment server uses a target import executor to import the target data set into the first target environment server according to the target configuration table corresponding to the target microservice; The target configuration table is used to define the corresponding relationship between the target microservice, the target data set, and the target import executor. It can be understood that servers corresponding to other environments in at least one target environment server can also specify similar operations. Refer to the relevant description of the first target environment server.

在上述第一方面的一种可能的实现方式中,上述方法还包括:所述第一目标环境服务器执行与所述目标数据集对应的目标回调操作;其中,所述目标配置表还用于定义所述目标数据集与目标回调信息之间的对应关系,所述目标数据集中包括多个子数据集,所述目标回调信息中包括多个子回调信息,一个所述子回调操作对应一个所述子数据集。即在目标环境服务器中可以智能化处理并执行预设回调操作,例如清缓存,重建索引,推送数据到集成平台,邮件返回发布结果报告等回调操作,而不需人工介入,避免了大量的重复工作,极大的缩短了项目的上线周期,减少了后续运维成本。In a possible implementation of the first aspect, the method further includes: the first target environment server executing a target callback operation corresponding to the target data set; wherein the target configuration table is also used to define Correspondence between the target data set and target callback information, the target data set includes multiple sub-data sets, the target callback information includes multiple sub-callback information, and one sub-callback operation corresponds to one sub-data set. That is, the target environment server can intelligently process and execute preset callback operations, such as clearing the cache, rebuilding the index, pushing data to the integration platform, returning and publishing result reports by email, and other callback operations without manual intervention, avoiding a lot of duplication. work, greatly shortening the project launch cycle and reducing subsequent operation and maintenance costs.

在上述第一方面的一种可能的实现方式中,上述方法还包括:所述终端设备向所述代码管理服务器发起数据发布指令,所述数据发布指令与所述目标微服务关联;其中,所述业务数据包是所述代码管理服务器响应于所述数据发布指令,一键发布到所述至少一个目标环境服务器中的。 In a possible implementation of the first aspect, the method further includes: the terminal device initiating a data release instruction to the code management server, and the data release instruction is associated with the target microservice; wherein, The business data package is released by the code management server to the at least one target environment server with one click in response to the data release instruction.

在上述第一方面的一种可能的实现方式中,上述方法还包括:所述代码管理系统对应的服务器记录所述目标微服务的配置信息对应的发布信息;其中,所述发布信息中包括以下至少一项:所述目标微服务的名称、所述业务数据包的名称发布时间、发布状态信息以及所述业务数据包中所述目标数据集指示数据的变更类型;并且,所述发布信息中的包含的所述目标数据集指示数据的变更类型与所述目标数据集中预先定义的预设变更类型的比较结果,作为判断所述业务数据包正确性的判断结果。可以理解的是,如果发布信息中目标数据集指示数据的变更类型与目标数据集定义的预设变更类型相同,则说明业务数据包准确,反之则说明业务数据包不准确。如此,本申请实施例中,用户在查询业务数据包的发布信息时,可以直观看到业务数据包中各个数据集指示的数据导出并发布之前的业务变更类型,进而可以验证各个数据集指示的数据是否在预设的业务变更类型的情况下导出并发布的,以判断业务数据包的准确性,从而验证数据导出并发布的准确性。In a possible implementation of the first aspect, the method further includes: the server corresponding to the code management system records release information corresponding to the configuration information of the target microservice; wherein the release information includes the following At least one item: the name of the target microservice, the name release time of the business data package, release status information, and the change type of the target data set indication data in the business data package; and, in the release information The comparison result between the change type of the indicated data contained in the target data set and the preset change type predefined in the target data set is used as the judgment result for judging the correctness of the business data package. It can be understood that if the change type of the data indicated by the target data set in the release information is the same as the preset change type defined by the target data set, it means that the business data package is accurate; otherwise, it means that the business data package is inaccurate. In this way, in the embodiment of the present application, when the user queries the release information of the business data package, he can intuitively see the business change type before the data indicated by each data set in the business data package is exported and released, and then can verify the data indicated by each data set. Whether the data is exported and released under the preset business change type is used to determine the accuracy of the business data package and thereby verify the accuracy of the data export and release.

在上述第一方面的一种可能的实现方式中,上述变更类型为新增数据、变更数据或删减数据。In a possible implementation of the above first aspect, the above change type is new data, changed data or deleted data.

在上述第一方面的一种可能的实现方式中,上述方法还包括:所述终端设备接收与所述业务数据包对应的发布查询请求;所述终端设备向所述代码管理系统对应的服务器发起与所述业务数据包对应的发布查询请求;所述代码管理系统对应的服务向所述终端设备返回所述发布信息;所述终端设备通过查询界面展示所述发布信息、发布按钮、回滚按钮和发布日志按钮;其中,所述发布按钮用于触发将所述业务数据包重新发布至所述至少一个目标环境服务器中,所述回滚按钮用于触发在所述至少一个目标环境服务器中对所述业务数据执行回滚操作,发布日志按钮用于触发所述终端设备显示所述业务数据包的历史发布信息。In a possible implementation of the first aspect, the method further includes: the terminal device receiving a publishing query request corresponding to the service data packet; and the terminal device initiating a query request to a server corresponding to the code management system. A release query request corresponding to the business data package; the service corresponding to the code management system returns the release information to the terminal device; the terminal device displays the release information, release button, and rollback button through the query interface and publish log button; wherein, the publish button is used to trigger the re-publishing of the business data package to the at least one target environment server, and the rollback button is used to trigger the re-publishing of the service data package in the at least one target environment server. The service data performs a rollback operation, and the release log button is used to trigger the terminal device to display historical release information of the service data package.

在上述第一方面的一种可能的实现方式中,上述所述目标微服务应用于互联网金融产品或者互联网保险产品。In a possible implementation manner of the above first aspect, the above target microservice is applied to Internet financial products or Internet insurance products.

第二方面,本申请提供了一种数据发布方系统,该系统包括:所述系统包括终端设备,配置环境服务器,代码管理服务器,以及至少一个目标环境服务器;所述终端设备,用于向配置环境服务器发起数据导出指令,所述数据导出指令与目标微服务关联;所述配置环境服务器,用于响应于所述数据导出指令,按照预设的目标配置文件确定与所述目标微服务对应的目标导出执行器和目标数据集,其中,所述目标配置文件用于定义所述目标微服务、所述目标数据集以及所述目标导出执行器之间的对应关系;所述配置环境服务器使用所述目标导出执行器,将所述目标数据集指示的数据从所述配置环境服务器导出到代码管理服务器;所述目标数据集指示的数据是与所述目标微服务对应的配置数据中的部分数据;所述代码管理服务器,还用于将所述目标数据集指示的数据保存至与所述目标微服务对应的第一仓库中;所述第一仓库为所述代码管理服务器中用于存储所述目标微服务的配置数据的仓库,并且第一仓库与所述代码管理服务器中用于存储所述目标微服务的应用数据的仓库不同;所述代码管理服务器,还用于将所述目标数据集指示的所述第一仓库中的全部配置数据打包为业务数据包,并将所述业务数据包发布到至少一个目标环境服务器中,其中,所述业务数据包中包括所述目标微服务的所有配置数据,不包括所述目标微服务的应用数据。In a second aspect, this application provides a data publisher system. The system includes: the system includes a terminal device, a configuration environment server, a code management server, and at least one target environment server; the terminal device is used to provide configuration information to the configuration server. The environment server initiates a data export instruction, and the data export instruction is associated with the target microservice; the configuration environment server is used to respond to the data export instruction and determine the data corresponding to the target microservice according to the preset target configuration file. The target export executor and the target data set, wherein the target configuration file is used to define the correspondence between the target microservice, the target data set and the target export executor; the configuration environment server uses the The target export executor exports the data indicated by the target data set from the configuration environment server to the code management server; the data indicated by the target data set is part of the data in the configuration data corresponding to the target microservice. ; The code management server is also used to save the data indicated by the target data set to the first warehouse corresponding to the target microservice; the first warehouse is used in the code management server to store all A warehouse for the configuration data of the target microservice, and the first warehouse is different from the warehouse used to store the application data of the target microservice in the code management server; the code management server is also used to store the target data Pack all the configuration data in the first warehouse indicated by the set into a business data package, and publish the business data package to at least one target environment server, where the business data package includes the target microservice All configuration data, excluding the application data of the target microservice.

在上述第二方面的一种可能的实现方式中,所述目标数据集还用于定义预设变更类型, 所述目标数据集指示的数据的变更类型符合所述预设变更类型时被导出到所述代码管理服务器。In a possible implementation of the second aspect above, the target data set is also used to define a preset change type, When the change type of the data indicated by the target data set matches the preset change type, it is exported to the code management server.

在上述第二方面的一种可能的实现方式中,上述系统还包括:所述配置环境服务器从所述数据导出指令中解析出所述目标微服务的名称;所述配置环境服务器按照所述目标微服务的名称,从与所述目标微服务对应的所述目标配置文件中查找出与所述目标数据集对应的所述目标导出执行器。In a possible implementation of the second aspect, the system further includes: the configuration environment server parses the name of the target microservice from the data export instruction; the configuration environment server performs the following tasks according to the target: The name of the microservice, and the target export executor corresponding to the target data set is found from the target configuration file corresponding to the target microservice.

在上述第二方面的一种可能的实现方式中,所述目标数据集中包括多个子数据集,所述目标导出执行器中包括多个子导出执行器,一个所述子数据集对应一个子导出执行器;并且,所述多个子数据集中的一部分子数据集中的源数据为所述目标微服务的源数据,另一部分子数据集中的源数据为与所述目标微服务不同的微服务的源数据。In a possible implementation of the second aspect, the target data set includes multiple sub-data sets, the target export executor includes multiple sub-export executors, and one of the sub-data sets corresponds to one sub-export execution. and the source data in a part of the multiple sub-data sets is the source data of the target microservice, and the source data in another part of the sub-data set is the source data of a microservice different from the target microservice. .

需要说明的是,上述目标数据集指示的下文中目标配置文件所定义的多个数据集。即,上述目标数据集中多个子数据集相当于下文中的目标配置文件指示的多个数据集。It should be noted that the above target data set indicates multiple data sets defined in the target configuration file below. That is, the plurality of sub-datasets in the above target data set are equivalent to the plurality of data sets indicated by the target configuration file below.

在上述第二方面的一种可能的实现方式中,所述多个子数据集中的源数据的数据类型包括:数据库脚本、图片、可携带文档格式、表格、文档中的至少一种。In a possible implementation of the above second aspect, the data type of the source data in the plurality of sub-data sets includes: at least one of database scripts, pictures, portable document formats, tables, and documents.

在上述第二方面的一种可能的实现方式中,上述系统还包括:第一目标环境服务器解析出所述数据包中的所述目标数据集,所述第一目标环境服务器为所述至少一个目标环境服务器中的任意一个;所述第一目标环境服务器按照与所述目标微服务对应的目标配置表,使用目标导入执行器将所述目标数据集导入到所述第一目标环境服务器中;其中,所述目标配置表用于定义所述目标微服务、所述目标数据集以及所述目标导入执行器之间的对应关系。In a possible implementation of the second aspect, the system further includes: a first target environment server parsing out the target data set in the data packet, and the first target environment server is the at least one Any one of the target environment servers; the first target environment server uses a target import executor to import the target data set into the first target environment server according to the target configuration table corresponding to the target microservice; The target configuration table is used to define the corresponding relationship between the target microservice, the target data set, and the target import executor.

在上述第二方面的一种可能的实现方式中,上述系统还包括:所述第一目标环境服务器执行与所述目标数据集对应的目标回调操作;其中,所述目标配置表还用于定义所述目标数据集与目标回调信息之间的对应关系,所述目标数据集中包括多个子数据集,所述目标回调信息中包括多个子回调信息,一个所述子回调操作对应一个所述子数据集。In a possible implementation of the above second aspect, the above system further includes: the first target environment server performs a target callback operation corresponding to the target data set; wherein the target configuration table is also used to define Correspondence between the target data set and target callback information, the target data set includes multiple sub-data sets, the target callback information includes multiple sub-callback information, and one sub-callback operation corresponds to one sub-data set.

在上述第二方面的一种可能的实现方式中,上述系统还包括:所述终端设备向所述代码管理服务器发起数据发布指令,所述数据发布指令与所述目标微服务关联;其中,所述业务数据包是所述代码管理服务器响应于所述数据发布指令,一键发布到所述至少一个目标环境服务器中的。In a possible implementation of the second aspect, the system further includes: the terminal device initiating a data release instruction to the code management server, and the data release instruction is associated with the target microservice; wherein, The business data package is released by the code management server to the at least one target environment server with one click in response to the data release instruction.

在上述第二方面的一种可能的实现方式中,上述系统还包括:所述代码管理系统对应的服务器记录所述目标微服务的配置信息对应的发布信息;其中,所述发布信息中包括以下至少一项:所述目标微服务的名称、所述业务数据包的名称发布时间、发布状态信息以及所述业务数据包中所述目标数据集指示数据的变更类型;并且,所述发布信息中的包含的所述目标数据集指示数据的变更类型与所述目标数据集中预先定义的预设变更类型的比较结果,作为判断所述业务数据包正确性的判断结果。In a possible implementation of the above second aspect, the above system further includes: the server corresponding to the code management system records release information corresponding to the configuration information of the target microservice; wherein the release information includes the following At least one item: the name of the target microservice, the name release time of the business data package, release status information, and the change type of the target data set indication data in the business data package; and, in the release information The comparison result between the change type of the indicated data contained in the target data set and the preset change type predefined in the target data set is used as the judgment result for judging the correctness of the business data package.

在上述第二方面的一种可能的实现方式中,上述变更类型为新增数据、变更数据或删减数据。In a possible implementation of the above second aspect, the above change type is new data, changed data or deleted data.

在上述第二方面的一种可能的实现方式中,上述系统还包括:所述终端设备接收与所述业务数据包对应的发布查询请求;所述终端设备向所述代码管理系统对应的服务器发起与所述业务数据包对应的发布查询请求;所述代码管理系统对应的服务向所述终端设备返 回所述发布信息;所述终端设备通过查询界面展示所述发布信息、发布按钮、回滚按钮和发布日志按钮;其中,所述发布按钮用于触发将所述业务数据包重新发布至所述至少一个目标环境服务器中,所述回滚按钮用于触发在所述至少一个目标环境服务器中对所述业务数据执行回滚操作,发布日志按钮用于触发所述终端设备显示所述业务数据包的历史发布信息。In a possible implementation of the second aspect, the system further includes: the terminal device receiving a publishing query request corresponding to the service data packet; and the terminal device initiating a query request to the server corresponding to the code management system. Publish query request corresponding to the service data package; the service corresponding to the code management system returns to the terminal device Return the release information; the terminal device displays the release information, release button, rollback button and release log button through the query interface; wherein the release button is used to trigger re-release of the business data packet to the In at least one target environment server, the rollback button is used to trigger a rollback operation on the business data in the at least one target environment server, and the publish log button is used to trigger the terminal device to display the business data package. historical release information.

在上述第二方面的一种可能的实现方式中,上述所述目标微服务应用于互联网金融产品或者互联网保险产品。In a possible implementation manner of the above second aspect, the above target microservice is applied to Internet financial products or Internet insurance products.

第三方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,该指令在终端设备上执行时使电子设备执行如第一方面中的数据发布方法。In a third aspect, embodiments of the present application provide a computer-readable storage medium. Instructions are stored on the computer-readable storage medium. When executed on a terminal device, the instructions cause the electronic device to perform data publishing as in the first aspect. method.

第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,该指令在服务器上执行时使服务器执行如第一方面中的数据发布方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium. Instructions are stored on the computer-readable storage medium. When the instructions are executed on a server, they cause the server to perform the data publishing method in the first aspect.

第五方面,本申请实施例提供了一种终端设备,包括:存储器,用于存储由电子设备的一个或多个处理器执行的指令,以及处理器,当所述指令被一个或多个处理器执行时,所述处理器用于执行如第一方面中所述终端设备执行的数据发布方法。In a fifth aspect, embodiments of the present application provide a terminal device, including: a memory for storing instructions executed by one or more processors of the electronic device, and a processor, when the instructions are processed by one or more When the processor is executed, the processor is configured to execute the data publishing method executed by the terminal device described in the first aspect.

第六方面,本申请实施例提供了一种服务器,包括:存储器,用于存储由电子设备的一个或多个处理器执行的指令,以及处理器,当所述指令被一个或多个处理器执行时,所述处理器用于执行如第一方面中所述代码管理服务器或所述至少一个目标环境服务器中的服务器执行的数据发布方法。In a sixth aspect, embodiments of the present application provide a server, including: a memory for storing instructions executed by one or more processors of an electronic device, and a processor, when the instructions are executed by one or more processors, When executing, the processor is configured to execute the data publishing method executed by the code management server or the server in the at least one target environment server in the first aspect.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the purpose of the present application. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.

图1根据本申请的一些实施例,示出了一种配置数据发布流程示意图;Figure 1 shows a schematic diagram of a configuration data publishing process according to some embodiments of the present application;

图2根据本申请的一些实施例,示出了一种配置数据发布场景示意图;Figure 2 shows a schematic diagram of a configuration data release scenario according to some embodiments of the present application;

图3根据本申请的一些实施例,示出了一种业务数据的代码示意图;Figure 3 shows a code schematic diagram of business data according to some embodiments of the present application;

图4根据本申请的一些实施例,示出了一种业务数据的代码示意图;Figure 4 shows a code schematic diagram of business data according to some embodiments of the present application;

图5根据本申请的一些实施例,示出了一种业务数据的显示方式的示意图;Figure 5 shows a schematic diagram of a display method of business data according to some embodiments of the present application;

图6根据本申请的一些实施例,示出了一种数据发布方法的流程示意图;Figure 6 shows a schematic flow chart of a data publishing method according to some embodiments of the present application;

图7根据本申请的一些实施例,示出了一种终端设备的硬件结构示意图。Figure 7 shows a schematic diagram of the hardware structure of a terminal device according to some embodiments of the present application.

具体实施方式Detailed ways

本申请的说明性实施例包括但不限于一种数据发布方法以及系统。Illustrative embodiments of the present application include, but are not limited to, a data publishing method and system.

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.

本申请实施例提供的数据发布方法主要用于微服务的业务数据等的维护管理。具体地,本申请可以在代码管理系统中将微服务的应用数据与业务数据分别存储在不同仓库中,实现微服务的应用与数据分离。在此基础上,参照图1示出的配置数据发布流程:针对配置 环境中的业务数据等配置数据;按照预设的配置文件将该配置数据导出(或称提交)到代码管理系统中与相关微服务的配置数据对应的仓库中;将当前仓库中的所有配置数据打包得到业务数据包;在用户的请求下将该业务数据包一键发布(或称导入)到多个目标环境中,例如导入到图1示出的目标环境的数据库、文件管理系统等容器中。如此,用户只需对配置文件进行一次配置,后续便可以一键全量导出配置数据到代码管理系统中,而后一键发布数据到多个目标环境中,减少了数据发布过程的人工操作。进而,针对导入的业务数据包,在目标环境中可以智能化处理并执行预设回调操作,例如清缓存,重建索引,推送数据到集成平台,邮件返回发布结果报告等回调操作,而不需人工介入,避免了大量的重复工作,极大的缩短了项目的上线周期,减少了后续运维成本。另外,由于微服务的应用和数据分离,因此配置数据中的数据集不限于数据库脚本,还可以为图片,可携带文档格式(Portable Document Format,PDF),excel(即表格),doc(文档)等多种类型的多源数据,极大提升了数据发布的便捷性。The data publishing method provided by the embodiment of this application is mainly used for the maintenance and management of business data of microservices. Specifically, this application can store the application data and business data of microservices in different warehouses in the code management system to achieve separation of microservice applications and data. On this basis, refer to the configuration data release process shown in Figure 1: For configuration Configuration data such as business data in the environment; export (or submit) the configuration data to the warehouse corresponding to the configuration data of the relevant microservices in the code management system according to the preset configuration file; transfer all configuration data in the current warehouse The business data package is packaged; at the user's request, the business data package is published (or imported) to multiple target environments with one click, for example, imported into the database, file management system and other containers of the target environment shown in Figure 1 . In this way, users only need to configure the configuration file once, and then can export the configuration data in full to the code management system with one click, and then publish the data to multiple target environments with one click, reducing manual operations in the data release process. Furthermore, for imported business data packages, preset callback operations can be intelligently processed and executed in the target environment, such as clearing caches, rebuilding indexes, pushing data to the integration platform, returning emails to publish result reports, and other callback operations without the need for manual labor. Intervention avoids a lot of duplication of work, greatly shortens the project launch cycle, and reduces subsequent operation and maintenance costs. In addition, due to the separation of microservice applications and data, the data set in the configuration data is not limited to database scripts, but can also be pictures, Portable Document Format (PDF), excel (i.e. table), doc (document) and other types of multi-source data, which greatly improves the convenience of data release.

在本申请提供的一些实施例中,微服务应用(或称微服务项目)是基于spring boot构建的应用,在Spring Cloud架构下运行,通过超文本传输协议(Hyper Text Transfer Protocol,HTTP)对外提供服务。In some embodiments provided in this application, microservice applications (or microservice projects) are applications built based on spring boot, run under the Spring Cloud architecture, and are provided externally through the Hyper Text Transfer Protocol (HTTP) Serve.

在本申请的一些实施例,所涉及的微服务的环境包括研发环境、测试环境、集成环境以及生产环境。在一些实施例中,研发环境、测试环境以及集成环境是为了给生产环境可以安全稳定做基础。因此,对于研发环境、测试环境、集成环境这三个环境中的业务数据等配置数据都需要和生产环境保持一致。基于此,本申请实施例在研发环境、测试环境、集成环境以及生产环境之间针对配置数据进行数据发布,使配置数据在整个系统中保持一致。以下实施例中,主要以在研发环境、测试环境、集成环境之间涉及的配置数据发布为例,对本申请提供的数据发布方法进行说明。In some embodiments of this application, the microservice environment involved includes a research and development environment, a test environment, an integration environment, and a production environment. In some embodiments, the R&D environment, test environment, and integration environment are used to lay the foundation for a safe and stable production environment. Therefore, configuration data such as business data in the three environments of R&D environment, test environment, and integration environment need to be consistent with the production environment. Based on this, the embodiment of the present application publishes configuration data among the R&D environment, test environment, integration environment and production environment, so that the configuration data remains consistent throughout the system. In the following embodiments, the data release method provided by this application is mainly explained by taking the release of configuration data involved between the R&D environment, the test environment, and the integration environment as an example.

参照图2所示,为本申请实施例提供的一种配置数据发布场景示意图。图2示出的场景中包括数据发布管理系统10,代码管理系统20,研发环境30,测试环境40以及集成环境50。Refer to Figure 2, which is a schematic diagram of a configuration data release scenario provided by an embodiment of the present application. The scenario shown in Figure 2 includes a data release management system 10, a code management system 20, a research and development environment 30, a test environment 40 and an integration environment 50.

作为一种示例,数据发布管理系统10用于触发将研发环境30中的业务数据等配置数据导出或提交至代码管理系统20中,触发将代码管理系统20中的配置数据打包为业务数据包并发布到测试环境40和集成环境50中,以及查看数据发布状态等。As an example, the data release management system 10 is used to trigger the export or submission of configuration data such as business data in the R&D environment 30 to the code management system 20, and trigger the packaging of the configuration data in the code management system 20 into business data packages and Publish to the test environment 40 and integration environment 50, and view the data release status, etc.

在一些实施例中,上述数据发布管理系统10可以通过软件实现,提供用户交互界面用于支持用户触发数据发布以及后续数据发布状态的查询等功能。作为一种示例,上述数据发布管理系统10可以设置于终端设备100中,该终端设备100为具有显示屏的设备。例如,适用于本申请的终端设备100可以为台式机、便携式电脑、掌上电脑、手机、平板电脑等,本申请实施例对此不作限定。In some embodiments, the above-mentioned data release management system 10 can be implemented through software, and provides a user interaction interface to support functions such as user triggering of data release and subsequent query of data release status. As an example, the above-mentioned data release management system 10 can be provided in a terminal device 100, and the terminal device 100 is a device with a display screen. For example, the terminal device 100 applicable to the present application may be a desktop computer, a portable computer, a palmtop computer, a mobile phone, a tablet computer, etc., which are not limited in the embodiments of the present application.

本申请实施例中,代码管理系统20用于将微服务的应用数据和配置数据(如业务数据)分别存储在不同仓库中,并将配置数据打包为业务数据包等压缩文件。作为一种示例,上述代码管理系统20可以为分布式版本控制系统(Git)或者版本控制系统(Subversion,SVN)等。在本申请的一些实施例中,代码管理系统20可以通过gitlab实现。其中,gitlab是一个基于git实现的在线代码仓库软件,一般用于在企业、学校等内部网络搭建git私服,可以看作是一个简单的github。相应的,本申请涉及的代码管理系统20中的仓库指 的是gitlab仓库。In the embodiment of this application, the code management system 20 is used to store application data and configuration data (such as business data) of microservices in different warehouses, and package the configuration data into compressed files such as business data packages. As an example, the above-mentioned code management system 20 may be a distributed version control system (Git) or a version control system (Subversion, SVN), etc. In some embodiments of the present application, the code management system 20 can be implemented through gitlab. Among them, gitlab is an online code warehouse software based on git. It is generally used to build git private servers in internal networks of enterprises, schools, etc. It can be regarded as a simple github. Correspondingly, the warehouse instructions in the code management system 20 involved in this application is the gitlab repository.

在一些实施例中,代码管理系统20可以设置于服务器200中,该服务器200(也称为代码管理服务器)可以为独立服务器,还可以为云端服务器。其中,独立服务器拥有整台服务器的所有软硬件资源,可以自行分配与实行多种网络功能服务,如可以独立存储微服务的应用数据和配置数据。另外,云端服务器可以是硬件服务器,也可以植入虚拟化环境中,例如,根据本申请的一些实施例,云端服务器可以是在包括一个或多个其他虚拟机的硬件服务器上执行的虚拟机。In some embodiments, the code management system 20 may be installed in a server 200, and the server 200 (also referred to as a code management server) may be an independent server or a cloud server. Among them, the independent server owns all the software and hardware resources of the entire server, and can allocate and implement a variety of network function services on its own. For example, it can independently store the application data and configuration data of microservices. In addition, the cloud server may be a hardware server or may be embedded in a virtualized environment. For example, according to some embodiments of the present application, the cloud server may be a virtual machine executed on a hardware server including one or more other virtual machines.

上述测试环境40和集成环境50用于对从代码管理系统20导入的业务数据包进行解析并自动执行预设的回调操作。作为一种示例,研发环境30、测试环境40和集成环境50可以分别应用于服务器300,服务器400和服务器500中。此外,研发环境30,测试环境40和集成环境50中的每个环境中还可以包括与服务器交互的终端设备等用于完成研发、测试以及集成等微服务相关任务的设备,此处不做赘述。The above-mentioned test environment 40 and integration environment 50 are used to parse the business data packages imported from the code management system 20 and automatically execute preset callback operations. As an example, the research and development environment 30, the test environment 40 and the integration environment 50 can be applied to the server 300, the server 400 and the server 500 respectively. In addition, each of the R&D environment 30 , the test environment 40 and the integration environment 50 may also include terminal devices that interact with servers and other devices used to complete microservice-related tasks such as R&D, testing and integration, which will not be described in detail here. .

在一些实施例中,上述服务器300,服务器400和服务器500中的每个服务器可以为独立服务器,也可以为云端服务器,参照上文中对服务器200的相关描述,此处不再赘述。In some embodiments, each of the above-mentioned servers 300, 400 and 500 may be an independent server or a cloud server. Refer to the relevant description of the server 200 above, which will not be described again here.

可以理解的是,本申请实施例中,在图2示出的数据发布场景中,可以通过终端设备100、服务器200、服务器300、服务器400以及服务器500进行交互,实现数据发布的方法。即终端设备100与服务器端交互实现数据发布流程,而终端设备100与各个服务器可以通过HTTP协议请求交互。It can be understood that in the embodiment of the present application, in the data publishing scenario shown in Figure 2, the data publishing method can be implemented through interaction between the terminal device 100, the server 200, the server 300, the server 400 and the server 500. That is, the terminal device 100 interacts with the server to implement the data publishing process, and the terminal device 100 and each server can interact through HTTP protocol requests.

本申请实施例以下,主要以待导出配置数据的配置环境为研发环境30,待导入配置数据的目标环境为测试环境40和集成环境50为例,说明本申请实施例提供的数据发布方法。此时,目标环境服务器为测试环境40中的服务器400和集成环境50中的服务器500。In the following embodiments of the present application, the configuration environment to be exported is the R&D environment 30, and the target environments to be imported are the test environment 40 and the integration environment 50 as examples to illustrate the data release method provided by the embodiments of the present application. At this time, the target environment servers are the server 400 in the test environment 40 and the server 500 in the integration environment 50 .

在本申请一些实施例中,本申请涉及的微服务可以为保险产品或金融产品等产品提供的微服务,业务数据等配置数据包括产品的基础数据或规则等,例如投保规则、理赔规则、续保规则、风控配置、保障计划文案、商户号、险种、责任、条款、费率表等。相应的,作为一种示例,配置数据可以分为以下类型:投保规则、理赔规则、续保规则、风控配置、保障计划文案、商户号、险种、责任、条款、费率表等。可以理解的是,本申请涉及的配置数据发布可以为上述类型中任意类型的配置数据。In some embodiments of this application, the microservices involved in this application can be microservices provided for products such as insurance products or financial products, and configuration data such as business data include basic data or rules of the product, such as insurance rules, claims rules, continued Insurance rules, risk control configuration, insurance plan copy, merchant number, insurance type, liability, terms, rate schedule, etc. Correspondingly, as an example, configuration data can be divided into the following types: insurance rules, claims rules, renewal rules, risk control configuration, protection plan copy, merchant number, insurance type, liability, terms, rate schedule, etc. It can be understood that the configuration data release involved in this application can be any type of configuration data among the above types.

接下来,在下文中首先对本申请实施例中数据导出之前预先设置的配置文件进行描述。Next, the configuration file preset before data export in the embodiment of the present application is first described below.

本申请实施例中,配置环境中的服务器依据预先设置的配置文件导出业务数据等配置数据。其中,配置文件通常为技术人员手动配置的,那么后续数据导出以及发布过程中的配置文件可以保持不变,不需要用户重复手动修改。In the embodiment of this application, the server in the configuration environment exports configuration data such as business data based on the preset configuration file. Among them, the configuration file is usually configured manually by technicians, so the configuration file can remain unchanged during subsequent data export and publishing processes, and users do not need to repeatedly modify it manually.

需要说明的是,本申请实施例中,代码管理管理系统20可以将微服务的应用数据和业务数据等配置数据分别存储在两个仓库中,实现了分离应用和数据。那么,由于微服务的应用和数据分离,使得后续可以将微服务的业务数据等配置数据单独导出到代码管理系统20并进行数据发布。进而,可以实现对代码管理系统20中存储的配置数据分门别类的统一集中化管理。作为一种示例,在代码管理系统20中与微服务的配置数据对应的数据中,不同类型的数据(如保险业务数据、保险用户信息等类型)按照预设的目录存储。It should be noted that in the embodiment of the present application, the code management management system 20 can store configuration data such as application data and business data of microservices in two warehouses respectively, thereby realizing separation of applications and data. Then, due to the separation of applications and data of microservices, configuration data such as business data of microservices can be separately exported to the code management system 20 and released. Furthermore, unified and centralized management of classified configuration data stored in the code management system 20 can be achieved. As an example, in the data corresponding to the configuration data of the microservice in the code management system 20, different types of data (such as insurance business data, insurance user information, etc.) are stored according to preset directories.

具体地,在一些实施例中,上述配置文件用于定义数据集,定义与数据集关联的微服务的名称等微服务参数,以及定义配置环境中与每个数据集对应的导出执行器等。其中, 一个配置文件对应一个微服务,一个配置文件定义一个或多个数据集,一个数据集对应一个导出执行器。Specifically, in some embodiments, the above configuration file is used to define a data set, define microservice parameters such as the name of a microservice associated with the data set, and define an export executor corresponding to each data set in the configuration environment. in, A configuration file corresponds to a microservice, a configuration file defines one or more data sets, and a data set corresponds to an export executor.

可以理解的是,由于本申请中数据导出并不依赖于现有技术中的数据库迁移,因此上述数据集的源数据不限于数据库脚本,还可以为图片,pdf,excel,doc等多源数据。也就是说,本申请不限数据库脚本的源数据导出及发布,而是支持多源数据的导出与发布,极大提升了数据发布的便捷性。It can be understood that since the data export in this application does not rely on database migration in the prior art, the source data of the above data set is not limited to database scripts, but can also be multi-source data such as pictures, pdf, excel, doc, etc. In other words, this application is not limited to the source data export and release of database scripts, but supports the export and release of multi-source data, which greatly improves the convenience of data release.

在一些实施例中,配置文件中定义的一个或多个数据集中包含对应的微服务在配置环境中的源数据,并且定义的每个数据集具有一个名称。配置文件中定义的多个数据集为当前同一个微服务的源数据;或者,配置文件中定义的一部分数据集包含当前微服务(记为目标微服务)的源数据,另一部分数据集包含其他微服务的源数据。也就是说,本申请可以在导出并发布目标微服务的配置数据的同时,导出并发布其他微服务的配置数据。即本申请实施例提供的数据发布方法支持导出并发布非本服务器的数据,进一步提升了数据导出及发布的便捷性。In some embodiments, one or more data sets defined in the configuration file contain the source data of the corresponding microservice in the configuration environment, and each defined data set has a name. Multiple data sets defined in the configuration file are the source data of the same current microservice; or, part of the data sets defined in the configuration file contains the source data of the current microservice (recorded as the target microservice), and another part of the data set contains other data sets. Source data for microservices. In other words, this application can export and publish the configuration data of other microservices while exporting and publishing the configuration data of the target microservice. That is to say, the data publishing method provided by the embodiment of this application supports exporting and publishing data other than the own server, further improving the convenience of data export and publishing.

在一些实施例中,上述导出执行器用于将对应的数据集从配置环境所在的服务器(如研发环境30中的服务器300)导出到代码管理系统20中。作为一种示例,导出执行器用于从配置环境中抓取对应的数据集中的源数据。另外,在一些实施例中,一个导出执行器可以为用于将对应的数据集指示的数据从配置环境导出到代码管理系统20的接口,该接口用于指示到代码管理系统20中的仓库中的一个目录的路径,即与一个数据集对应的导出执行器还用于指示代码管理系统20中存储该数据集的仓库中的目录。In some embodiments, the above-mentioned export executor is used to export the corresponding data set from the server where the configuration environment is located (such as the server 300 in the R&D environment 30) to the code management system 20. As an example, the export executor is used to grab the source data in the corresponding dataset from the configuration environment. In addition, in some embodiments, an export executor may be an interface used to export the data indicated by the corresponding data set from the configuration environment to the code management system 20 , and the interface is used to indicate to the warehouse in the code management system 20 The path of a directory, that is, the export executor corresponding to a data set is also used to indicate the directory in the warehouse in the code management system 20 where the data set is stored.

另外,各个数据集的名称以及目标微服务的名称将会被配置到配置环境以及各个目标环境的数据库中。也就是说,各个微服务的名称以及各个数据集的名称在配置环境和目标环境以及终端设备100中是一致的。在一些实施例中,终端设备100可以在配置环境30中预先设置上述配置文件,如将配置文件预先存储在研发环境30中的服务器300的数据库中。In addition, the name of each data set and the name of the target microservice will be configured in the configuration environment and the database of each target environment. That is to say, the name of each microservice and the name of each data set are consistent in the configuration environment, the target environment, and the terminal device 100 . In some embodiments, the terminal device 100 can pre-set the above configuration file in the configuration environment 30 , such as pre-stored in the database of the server 300 in the R&D environment 30 .

在一些实施例中,为了保证微服务的名称以及各个数据集的名称在配置环境、目标环境以及终端设备100中一致,在配置环境中存储上述配置文件的同时,在目标环境中可以预先存储配置表。具体地,目标环境中的配置表用于定义数据集,定义与数据集关联的微服务器的名称等微服务参数,定义目标环境中与每个数据集对应的导入执行器,以及定义每个数据集对应的回调信息。例如,回调信息指示的回调操作可以为清缓存,重建索引,推送数据到集成平台,邮件返回发布结果报告等。其中,一个配置表对应一个微服务,一个配置表定义了一个或多个数据集,一个数据集对应一个导入执行器。可以理解的是,所定义的数据集的名称和微服务的名称在目标环境的配置表和配置环境中的配置文件中保持一致。In some embodiments, in order to ensure that the names of the microservices and the names of each data set are consistent in the configuration environment, the target environment and the terminal device 100, while storing the above configuration file in the configuration environment, the configuration can be pre-stored in the target environment. surface. Specifically, the configuration table in the target environment is used to define the data set, define microservice parameters such as the name of the microserver associated with the data set, define the import executor corresponding to each data set in the target environment, and define each data Set the corresponding callback information. For example, the callback operations indicated by the callback information can be clearing the cache, rebuilding the index, pushing data to the integration platform, and returning a publishing result report via email, etc. Among them, a configuration table corresponds to a microservice, a configuration table defines one or more data sets, and a data set corresponds to an import executor. It can be understood that the name of the defined data set and the name of the microservice are consistent in the configuration table of the target environment and the configuration file in the configuration environment.

进一步的,对本申请中涉及的配置文件的格式和内容进行详细描述。另外,目标环境中的配置表的格式可以参照对配置文件的相关描述,本文对此不做赘述。Further, the format and content of the configuration file involved in this application are described in detail. In addition, the format of the configuration table in the target environment can refer to the relevant description of the configuration file, which will not be described in detail in this article.

在一些实施例中,配置文件为可扩展标记语言(Extensible Markup Language,xml)格式的文件,遵循自定义可扩展标记语言架构(XML Schema Definition,xsd)标准。In some embodiments, the configuration file is a file in Extensible Markup Language (Extensible Markup Language, xml) format and follows a custom Extensible Markup Language Schema Definition (XML Schema Definition, xsd) standard.

更具体地,配置文件由两部分组成,第一部分是表定义,用于定义表名、主键、外键、业务主键,排序字段(或称排序键)等。第二部分是数据集定义,用于定义需要被导出的 表集合、条件以及参数等。More specifically, the configuration file consists of two parts. The first part is the table definition, which is used to define the table name, primary key, foreign key, business primary key, sorting field (or sorting key), etc. The second part is the data set definition, which is used to define the data that needs to be exported. Table collections, conditions, parameters, etc.

其中,主键:指的是一个列或多列的组合,其值能唯一地标识表中的每一行,通过它可强制表的实体完整性。主键主要是用与其他表的外键关联,以及文本记录的修改与删除。Among them, primary key: refers to a column or a combination of multiple columns, whose value can uniquely identify each row in the table, through which the entity integrity of the table can be enforced. The primary key is mainly used to associate foreign keys with other tables, as well as modify and delete text records.

外键:用于保持数据一致性,完整性,主要目的是控制存储在外键表中的数据,使主键表和外键表这两张表形成关联,外键只能引用外键表中的列的值或使用空值。Foreign key: used to maintain data consistency and integrity. The main purpose is to control the data stored in the foreign key table and associate the primary key table and the foreign key table. Foreign keys can only reference columns in the foreign key table. value or use a null value.

业务主键:在关系型数据库设计中,业务主键是一个由已经真实存在于世界中的属性构成的键。在其他的表达方式中,一个业务主键是和行内属性具有逻辑关系的候选键。业务主键确保了对于每个业务主键只会存在唯一一条对应的行。Business primary key: In relational database design, the business primary key is a key composed of attributes that already exist in the world. In other expressions, a business primary key is a candidate key that is logically related to an in-row attribute. The business primary key ensures that there will be only one corresponding row for each business primary key.

排序键:创建表时,一般不需要指定主键,只要指定排序键即可。当没有指定主键(primary key)时,会把order by后面的列作为主键。可以同时指定排序键(order by)和主键(primary key),但主键最好是排序键的前缀。Sort key: When creating a table, you generally do not need to specify the primary key, just the sort key. When the primary key is not specified, the column following order by will be used as the primary key. You can specify both the sort key (order by) and the primary key (primary key), but the primary key is best the prefix of the sort key.

当指定的主键和排序键不同的情况下:此时排序键用于在数据片段中进行排序,主键用于在索引文件中进行标记的写入。When the specified primary key and sort key are different: the sort key is used to sort the data fragments, and the primary key is used to write marks in the index file.

其中,配置文件中包含目标微服务的名称,例如第一部分的表定义中包含目标微服务的名称。配置文件中包含各个数据集的名称,例如第二部分的数据集定义中定义的表集合的一个表名称可以为一个数据集的名称。Among them, the configuration file contains the name of the target microservice. For example, the table definition in the first part contains the name of the target microservice. The configuration file contains the name of each data set. For example, a table name of the table collection defined in the data set definition in the second part can be the name of a data set.

进一步的,作为一种示例,目标微服务为规则引擎服务,那么会定义一个Rule.xml文件作为配置文件,即该规则引擎服务的名称定义为“Rule”。其中,Rule.xml文件的第一部分包含需要导出的表t_rm_rule,其中包含了主键rule_id,该主键rule_id用于唯一标识Rule.xml文件中的表。另外,Rule.xml的第二部分为数据集,每个数据集可以指定名称,数据集内包含需要导出的表的集合t_rm_rule,t_rm_rule_group等,导出条件为rule_id in(ruleIds)(即主键rule_id处于预设的参数ruleIds中),参数ruleIds的数据类型为数组(Array)类型。可以理解的是,规则引擎服务的名称为“Rule”,多个数据集中包含名称为t_rm_rule的数据集以及名称为t_rm_rule_group的数据集等。此外,在一些实施例中,上述数据集中的每个数据集还用于定义一种预设变更类型。进而,一个数据集指示的数据按照该数据集所定义的预设变更类型发生变更的情况下,将触发该数据集指示的数据导出到代码管理系统20中。Further, as an example, if the target microservice serves a rule engine, then a Rule.xml file will be defined as the configuration file, that is, the name of the rule engine service is defined as "Rule". Among them, the first part of the Rule.xml file contains the table t_rm_rule that needs to be exported, which contains the primary key rule_id. The primary key rule_id is used to uniquely identify the table in the Rule.xml file. In addition, the second part of Rule.xml is a data set. Each data set can be named. The data set contains a collection of tables that need to be exported, t_rm_rule, t_rm_rule_group, etc. The export condition is rule_id in (ruleIds) (that is, the primary key rule_id is in the preset Assuming the parameter ruleIds), the data type of the parameter ruleIds is an array (Array) type. It is understandable that the name of the rule engine service is "Rule", and multiple data sets include a data set named t_rm_rule and a data set named t_rm_rule_group. In addition, in some embodiments, each data set in the above data sets is also used to define a preset change type. Furthermore, when the data indicated by a data set changes according to the preset change type defined by the data set, the data that triggers the data set indication is exported to the code management system 20 .

接下来,对配置文件中的一个表中的主键、外键、排序键等,表中的一条数据的主键、外键、排序键,以及外键所关联的表的主键等,来对配置文件中的主键、外键以及排序键进行描述。Next, check the configuration file for the primary key, foreign key, sort key, etc. in a table in the configuration file, the primary key, foreign key, sort key, etc. of a piece of data in the table, and the primary key of the table associated with the foreign key. Primary keys, foreign keys, and sort keys are described in .

作为另一种示例,T_RM_EVENT表为保险产品的产品规则下的规则事务表,例如T_RM_EVENT表为上述规则引擎服务对应的Rule.xml文件中的一个表。例如,在该表中,主键(PrimaryKey)可以通过代码“private Long eventId;”定义,即主键为eventId;业务主键(BusinessKey)通过代码“private String name;”定义;排序键(orderKey,或称排序字段)通过代码“private String code;”定义;外键(ReferenceKey)通过代码“@JoinColumn(name="DRIVER_ID")”定义,即外键为DRIVER_ID。需要说明的是,在一些实施例中,业务主键用于在表定义中对业务的名称进行定义,排序键用于对表定义中的各个表进行排序;外键用于定义目标微服务之外的其他微服务的源数据对应的表。As another example, the T_RM_EVENT table is a rule transaction table under the product rules of an insurance product. For example, the T_RM_EVENT table is a table in the Rule.xml file corresponding to the above-mentioned rule engine service. For example, in this table, the primary key (PrimaryKey) can be defined by the code "private Long eventId;" that is, the primary key is eventId; the business primary key (BusinessKey) can be defined by the code "private String name;"; the sorting key (orderKey, or sorting Field) is defined by the code "private String code;"; the foreign key (ReferenceKey) is defined by the code "@JoinColumn(name="DRIVER_ID")", that is, the foreign key is DRIVER_ID. It should be noted that in some embodiments, the business primary key is used to define the name of the business in the table definition, the sort key is used to sort each table in the table definition; the foreign key is used to define the name of the business outside the target microservice. Tables corresponding to the source data of other microservices.

另外,配置文件的表中的包括多条数据,每条数据中包括主键、外键、排序键以及业 务主键等。可以理解的是,配置文件中的多条数据中的至少一条数据可以用于定义一个数据集。In addition, the table in the configuration file includes multiple pieces of data, each piece of data including primary key, foreign key, sort key and business key. Service primary key, etc. It can be understood that at least one piece of data among multiple pieces of data in the configuration file can be used to define a data set.

作为一种示例,参照图3所示,为上述数据库中的T_RM_EVENT表里的一条数据,该数据为“核保规则检验”。具体地,如图3中的虚线框中的内容所示该,其中该条数据中主键为-1,名称为UnderwritingRuleCheck,外键为-1关联T_RM_DRIVER(即t_rm_driver)表中的主键DRIVER_ID。另外,排序键(orderKey)和业务主键(BusinessKey)均为UnderwritingRuleCheck,即主键、业务主键和排序键的名称相同。As an example, refer to Figure 3, which is a piece of data in the T_RM_EVENT table in the above database, and this data is "underwriting rule inspection". Specifically, as shown in the dotted box in Figure 3, the primary key in this piece of data is -1, the name is UnderwritingRuleCheck, and the foreign key is -1, which is associated with the primary key DRIVER_ID in the T_RM_DRIVER (ie t_rm_driver) table. In addition, the sort key (orderKey) and business primary key (BusinessKey) are both UnderwritingRuleCheck, that is, the names of the primary key, business primary key, and sort key are the same.

进一步的,作为一种示例,参照如4所示,为图3示出的“核保规则检验”这一数据所关联的父表T_RM_DRIVER中的数据,如图6中的虚线框中的内容所示该条数据的主键为DRIVER_ID,用以被子表T_RM_EVENT关联,该条件数据的名称为UnderwritingRuleCheck。Further, as an example, refer to the data in the parent table T_RM_DRIVER associated with the "underwriting rule verification" data shown in Figure 3, as shown in Figure 4, as shown in the dotted box in Figure 6. Indicates that the primary key of this piece of data is DRIVER_ID, which is used to associate it with the sub-table T_RM_EVENT. The name of this conditional data is UnderwritingRuleCheck.

在一些实施例中,服务器端可以与PC端侧交互,以将服务器端存储的上述图4示出的“核保规则检验”数据等数据发送给PC端,进而通过PC端的界面展示给操作人员。其中,上述服务器端指的是研发环境30等各个环境中的服务器,或者代码管理系统20中的服务器。上述PC端指的是上述终端设备100,或者研发环境30等各个环境中的与服务器交互来支持操作人员在服务器端查询或修改数据的终端设备。In some embodiments, the server side can interact with the PC side to send data such as the "underwriting rule verification" data shown in Figure 4 stored on the server side to the PC side, and then display it to the operator through the PC side interface. . Among them, the above-mentioned server side refers to the server in various environments such as the research and development environment 30, or the server in the code management system 20. The above-mentioned PC side refers to the above-mentioned terminal device 100, or the terminal device in various environments such as the R&D environment 30 that interacts with the server to support the operator to query or modify data on the server side.

作为一种示例,操作人员可以在终端设备100侧向服务器端(如服务器300)发起数据请求,使得服务器端响应于该请求返回“核保规则检验”数据,进而展示该数据。As an example, the operator can initiate a data request from the terminal device 100 to the server (such as the server 300), so that the server returns the "underwriting rule verification" data in response to the request, and then displays the data.

在一些实施例中,在操作人员在终端设备100中查询“核保规则检验”数据时,终端设备100可以显示“核保规则检验”数据,和/或,按照预设样式显示“核保规则检验”数据中的主要信息。例如,终端设备10可以在同一界面上显示这两者的内容,也可以在不同界面分别展示这两者的内容。In some embodiments, when the operator queries the "Underwriting Rules Verification" data in the terminal device 100, the terminal device 100 can display the "Underwriting Rules Verification" data, and/or display the "Underwriting Rules Verification" data according to a preset style. Check” the main information in the data. For example, the terminal device 10 can display the two contents on the same interface, or can display the two contents on different interfaces respectively.

进一步的,作为一种示例,对于“核保规则检验”数据,即主键为-1,名称为UnderwritingRuleCheck的数据,参照图5所示,为按照预设样式显示“核保规则检验”数据中的主要信息。其中,针对“核保规则检验”数据,图5示出的主要信息包括以下内容:数据代码名称“Event Code”81为“UnderwritingRuleCheck”;数据名称“Event Name”82为“UnderwritingRuleCheck”;数据描述信息“Description”83为“UnderwritingRuleCheck”;数据类型“Event Type”84为DIRECT;数据关联的数据名称“Driver”85为“UnderwritingRuleCheck”,“核保规则检验”数据通过主键DriverId:-1关联Driver的信息;规则分组“Rule Group”86包括Cloud_Application_API_Validation(云端应用API接口生效),Cloud_Application_API(云端应用接口),AutoTest_Preset_UWRule_Group(自动测试预置核保规则检验组)、以及UWcheckGroup(核保规则检验则)等信息。Further, as an example, for the "Underwriting Rule Check" data, that is, the data with the primary key of -1 and the name of UnderwritingRuleCheck, as shown in Figure 5, the "Underwriting Rule Check" data is displayed according to the preset style. main information. Among them, for the "Underwriting Rules Check" data, the main information shown in Figure 5 includes the following: the data code name "Event Code" 81 is "UnderwritingRuleCheck"; the data name "Event Name" 82 is "UnderwritingRuleCheck"; data description information "Description" 83 is "UnderwritingRuleCheck"; the data type "Event Type" 84 is DIRECT; the data associated data name "Driver" 85 is "UnderwritingRuleCheck", and the "Underwriting Rule Check" data is associated with Driver information through the primary key DriverId: -1 ; The rule group "Rule Group" 86 includes Cloud_Application_API_Validation (cloud application API interface takes effect), Cloud_Application_API (cloud application interface), AutoTest_Preset_UWRule_Group (automatic test preset underwriting rule inspection group), and UWcheckGroup (underwriting rule inspection rule) and other information.

接下来,基于图2示出的场景中的多个设备采用图3至图5示出的配置文件以及数据,参照9所示的数据发布方法流程,对本申请实施例提供的数据发布方法进行详细介绍,该方法包括如下步骤:Next, based on the multiple devices in the scenario shown in Figure 2 using the configuration files and data shown in Figures 3 to 5, with reference to the data publishing method flow shown in 9, the data publishing method provided by the embodiment of the present application is described in detail. Introduction, the method includes the following steps:

步骤601:终端设备100向研发环境30中的服务器300发送第一请求,第一请求用于请求将研发环境所在的服务器300中的目标配置文件所定义的数据集指示的数据导出到代码管理系统20。可以理解的是,上述第一请求也可以称为数据导出指令。其中,研发环境300为配置环境,服务器300为配置环境服务器。 Step 601: The terminal device 100 sends a first request to the server 300 in the R&D environment 30. The first request is used to request to export the data indicated by the data set defined by the target configuration file in the server 300 where the R&D environment is located to the code management system. 20. It can be understood that the above-mentioned first request may also be called a data export instruction. Among them, the R&D environment 300 is a configuration environment, and the server 300 is a configuration environment server.

在一些实施例中,上述第一请求包括目标数据集的名称和目标微服务的名称。作为一种示例,第一请求中目标微服务的名称为上文示出的Rule,即主键rule_id标识的规则引擎服务;目标数据集的名称可以为t_rm_rule或t_rm_rule_group。In some embodiments, the above-mentioned first request includes the name of the target data set and the name of the target microservice. As an example, the name of the target microservice in the first request is Rule shown above, that is, the rule engine service identified by the primary key rule_id; the name of the target data set can be t_rm_rule or t_rm_rule_group.

在另一些实施例中,上述第一请求中还包括与目标微服务对应的目标配置文件,或者用于唯一标识目标配置文件的目标文件参数。相应的,终端设备100响应于第一请求,还可以向服务器300发送目标文件参数或者目标配置文件。例如,作为一种示例,上述目标文件参数可以为目标配置文件的文件名,如上文中的文件rule.xml的名称“rule”。In some other embodiments, the above-mentioned first request also includes a target configuration file corresponding to the target microservice, or a target file parameter used to uniquely identify the target configuration file. Correspondingly, in response to the first request, the terminal device 100 may also send the target file parameters or the target configuration file to the server 300 . For example, as an example, the above target file parameter may be the file name of the target configuration file, such as the name "rule" of the file rule.xml mentioned above.

作为一种示例,配置环境为研发环境30。上述目标数据集为研发环境30的服务器中待导出的一个或多个数据集,上述目标微服务为目标数据集所属的微服务。此时,待处理数据集指示的数据可以是目标微服务的业务数据等配置数据。例如,目标数据集中的定义的一个表为上述图3示出的T_RM_EVENT表,此时,目标数据集中包括主键-1和名称UnderwritingRuleCheck标识的表。进而,方便后续根据主键查找目标数据集中的表而查找目标数据集指示的数据,以将待处理数据集指示的数据导出以及发布。As an example, the configuration environment is R&D environment 30. The above-mentioned target data set is one or more data sets to be exported in the server of the R&D environment 30, and the above-mentioned target microservice is the microservice to which the target data set belongs. At this time, the data indicated by the data set to be processed can be configuration data such as business data of the target microservice. For example, one of the tables defined in the target data set is the T_RM_EVENT table shown in Figure 3. At this time, the target data set includes a table identified by the primary key -1 and the name UnderwritingRuleCheck. Furthermore, it is convenient to subsequently search the table in the target data set according to the primary key to find the data indicated by the target data set, so as to export and publish the data indicated by the data set to be processed.

在一些实施例中,目标数据集可以包括一个或多个子数据集,目标数据集的名称包含于预先配置的与目标微服务对应的配置文件中。In some embodiments, the target data set may include one or more sub-data sets, and the name of the target data set is included in a preconfigured configuration file corresponding to the target microservice.

通常在统一发布新版本或者需要修复程序(hotfix)的场景下,对目标微服务的业务数据等配置数据,执行数据导出以及发布。Usually in scenarios where a new version is released uniformly or a hotfix is required, data export and release are performed on configuration data such as business data of the target microservice.

可以理解的是,上述第一请求可以为用户手动发起的。It can be understood that the above-mentioned first request may be manually initiated by the user.

在一种可能的实现方式中,终端设备100中的数据发布系统10可以提供触发数据导出界面,该界面用于负责将目标数据集的名称和目标微服务的名称发送至服务器300。作为一种示例,触发数据导出界面中可以提供输入或选择数据集名称的第一输入框,输入或选择微服务名称的第二输入框,以及触发数据导出的导出按钮。那么,在用户通过第一输入框输入目标数据集的名称,通过第二输入框输入目标微服务的名称,并且对导出按钮进行操作之后,终端设备100可以自动生成第一请求。此时,用户对导出按钮的操作可以触发一键全量导出配置环境中的配置数据,即只需要预先对配置文件的一次配置,后续便可以简单便捷的触发数据导出。作为一种示例,结合上文中的图4至图5的示例,用户在第一输入框中输入的数据集的名称可以为UnderwritingRuleCheck(即核保规则检验),在第二输入框中输入的目标微服务的名称为UnderwritingRuleCheck。In a possible implementation, the data publishing system 10 in the terminal device 100 can provide a trigger data export interface, which is responsible for sending the name of the target data set and the name of the target microservice to the server 300 . As an example, the interface for triggering data export may provide a first input box for inputting or selecting a data set name, a second input box for inputting or selecting a microservice name, and an export button for triggering data export. Then, after the user inputs the name of the target data set through the first input box, enters the name of the target microservice through the second input box, and operates the export button, the terminal device 100 can automatically generate the first request. At this time, the user's operation of the export button can trigger a one-click full export of the configuration data in the configuration environment. That is, the configuration file only needs to be configured once in advance, and then the data export can be easily and conveniently triggered. As an example, combined with the examples of Figures 4 to 5 above, the name of the data set entered by the user in the first input box can be UnderwritingRuleCheck (ie, underwriting rule check), and the target entered in the second input box The name of the microservice is UnderwritingRuleCheck.

步骤602:服务器300根据目标数据集的名称和目标微服务的名称从配置文件中查找出目标导出执行器。Step 602: The server 300 finds the target export executor from the configuration file according to the name of the target data set and the name of the target microservice.

具体地,服务器300根据目标数据集的名称和目标微服务的名称,从配置文件中匹配与目标数据集对应的目标导出执行器。其中,对于目标数据集中的每个子目标子数据集分别匹配出一个子导出执行器。Specifically, the server 300 matches the target export executor corresponding to the target data set from the configuration file according to the name of the target data set and the name of the target microservice. Among them, a sub-export executor is matched for each sub-target sub-data set in the target data set.

作为一种示例,针对数据集的名称为UnderwritingRuleCheck(即核保规则检验)的数据,可以从配置文件中查找到对应的导出执行器,以便后续对其执行导出操作。As an example, for the data whose name is UnderwritingRuleCheck (underwriting rule check), the corresponding export executor can be found from the configuration file so that subsequent export operations can be performed on it.

步骤603:服务器300通过目标导出执行将目标数据集中的配置数据导出到服务器200中的代码管理系统20中的第一仓库中。作为一种示例,通过与UnderwritingRuleCheck数据所在数据集对应的目标导出执行器可以将该数据导出到代码管理系统20中的第一仓库中。 Step 603: The server 300 exports the configuration data in the target data set to the first warehouse in the code management system 20 in the server 200 through target export execution. As an example, the UnderwritingRuleCheck data can be exported to the first warehouse in the code management system 20 through a target export executor corresponding to the data set in which the data is located.

在一些实施例中,上述第一仓库为代码管理系统20中与目标微服务的配置数据对应的仓库。在一些实施例中,在对目标数据集中的配置数据执行导出之后可以将该配置数据按照预设的文件目录结构提交到代码管理系统20中。In some embodiments, the above-mentioned first warehouse is a warehouse corresponding to the configuration data of the target microservice in the code management system 20 . In some embodiments, after exporting the configuration data in the target data set, the configuration data can be submitted to the code management system 20 according to a preset file directory structure.

可以理解的是,代码管理系统20中的第一仓库中不仅包含目标数据集指示的配置数据,还可包含其他配置数据。It can be understood that the first warehouse in the code management system 20 not only contains the configuration data indicated by the target data set, but may also contain other configuration data.

在一些实施例中,上述第一仓库为代码管理系统中用于存储目标微服务的配置数据的仓库,并且第一仓库与代码管理系统中用于存储目标微服务的应用数据的仓库不同。这样一来,每次发布数据时,仅需要对第一仓库中的所有配置数据进行打包,而不需要处理目标微服务的应用数据,有利于减少数据打包过程的耗时并减少资源消耗,使得数据发布过程的耗时较短。In some embodiments, the above-mentioned first warehouse is a warehouse used to store configuration data of the target microservice in the code management system, and the first warehouse is different from the warehouse used to store application data of the target microservice in the code management system. In this way, every time data is published, all configuration data in the first warehouse only needs to be packaged, without processing the application data of the target microservice, which is beneficial to reducing the time and resource consumption of the data packaging process, making The data publishing process takes less time.

另外,在一些实施例中,服务器200在代码管理系统20中保存目标数据集中的配置数据,还可以记录第一仓库中的配置数据中的版本信息。In addition, in some embodiments, the server 200 saves the configuration data in the target data set in the code management system 20 and can also record the version information in the configuration data in the first warehouse.

步骤604:终端设备100向服务器200发送第二请求,第二请求用于请求在目标环境中发布目标微服务的配置数据。可以理解的是,上述第一请求还可以称为数据发布指令,该第二请求与目标微服务相关联。Step 604: The terminal device 100 sends a second request to the server 200. The second request is used to request the release of the configuration data of the target microservice in the target environment. It can be understood that the above-mentioned first request can also be called a data release instruction, and the second request is associated with the target microservice.

其中,上述第二请求包括目标环境参数和目标微服务的名称,该目标环境参数为待发布数据的目标环境中的服务器的地址或名称等。具体地,第二请求用于请求将代码管理系统20中与目标微服务对应的第一仓库中的配置数据发布至目标环境。作为一种示例,目标环境可以为测试环境40和集成环境50。Wherein, the above-mentioned second request includes target environment parameters and the name of the target microservice. The target environment parameters are the address or name of the server in the target environment where the data is to be released, etc. Specifically, the second request is used to request to release the configuration data in the first warehouse corresponding to the target microservice in the code management system 20 to the target environment. As an example, the target environments may be the test environment 40 and the integration environment 50 .

可以理解的是,上述第二请求可以为用户手动发起的。It can be understood that the above second request may be manually initiated by the user.

在一种可能的实现方式中,终端设备100中的数据发布系统10可以提供触发业务数据发布界面,该界面用于触发将代码管理系统20中的与目标微服务对应的业务数据包和目标微服务的名称发送至目标环境的服务器中,即用户触发在目标环境中发布配置数据。In a possible implementation, the data publishing system 10 in the terminal device 100 can provide a triggering business data publishing interface, which is used to trigger the business data package corresponding to the target microservice in the code management system 20 and the target microservice. The name of the service is sent to the server of the target environment, that is, the user triggers the release of configuration data in the target environment.

作为一种示例,触发业务数据发布界面中可以提供输入或选择微服务的名称的第三输入框,输入或选择目标环境参数的第四输入框,以及触发数据发布的发布按钮等。那么,在用户通过第三输入框输入目标微服务的名称,通过第四输入框输入目标环境参数,并且对发布按钮进行操作之后,终端设备100可以自动生成第二请求。此时,用户对发布按钮的操作可实现一键发布配置数据。作为一种实施例,第三输入框中输入微服务的名称可以为UnderwritingRuleCheck,第四输入框中输入的目标环境参数可以包括测试环境40的标识(如测试环境40的名称或者服务器400的名称或地址等)以及集成环境50的标识(如集成环境50的名称或者服务器500的名称或地址等)。As an example, the triggering business data publishing interface may provide a third input box for inputting or selecting the name of the microservice, a fourth input box for inputting or selecting target environment parameters, and a publishing button for triggering data publishing. Then, after the user inputs the name of the target microservice through the third input box, enters the target environment parameters through the fourth input box, and operates the publish button, the terminal device 100 can automatically generate the second request. At this time, the user's operation on the publish button can realize one-click publishing of configuration data. As an embodiment, the name of the microservice entered in the third input box may be UnderwritingRuleCheck, and the target environment parameters entered in the fourth input box may include the identification of the test environment 40 (such as the name of the test environment 40 or the name of the server 400 or address, etc.) and the identification of the integrated environment 50 (such as the name of the integrated environment 50 or the name or address of the server 500, etc.).

在一些实施例中,在接收到用户对发布按钮的操作时,数据发布管理系统10还可以提供校验界面,用于对待发布的配置数据进行校验,并提示校验结果,如果校验正确,则执行后续的步骤605等步骤,其中,对待发布的配置数据进行校验具体包括校验待发布的配置数据的正确性和完整性,还可以校验待发布的配置数据的周边系统,例如佣金配置系统。作为一种示例,校验界面中可以显示目标数据集指示的数据,使得用户可以直观的看到待发布的配置数据中本次导出并发布的数据,以验证待发布的数据的准确性。In some embodiments, when receiving the user's operation on the publish button, the data release management system 10 can also provide a verification interface for verifying the configuration data to be released, and prompts the verification result. If the verification is correct , then perform subsequent steps 605 and other steps, wherein verifying the configuration data to be released specifically includes verifying the correctness and integrity of the configuration data to be released, and may also verify the surrounding systems of the configuration data to be released, for example Commission allocation system. As an example, the data indicated by the target data set can be displayed in the verification interface, so that the user can intuitively see the data exported and published this time in the configuration data to be published, so as to verify the accuracy of the data to be published.

作为一种示例,在接收到用户对发布按钮的操作时,数据发布管理系统10还可以在检验界面中提供外围校验按钮。此时,在上述步骤604之后还可以包括以下步骤:当接收 到通过外围校验按钮发出的校验指令时,校验待发布的配置数据的周边系统,例如佣金配置系统。在校验通过的情况下,继续执行后续步骤605等步骤。As an example, when receiving a user's operation on the release button, the data release management system 10 may also provide a peripheral verification button in the verification interface. At this time, the following steps may also be included after the above step 604: when receiving When the verification command is issued through the peripheral verification button, the peripheral system of the configuration data to be released is verified, such as the commission configuration system. If the verification passes, continue to perform subsequent steps such as step 605.

步骤605:服务器200将代码管理系统20的第一仓库中的配置数据打包得到业务数据包。Step 605: The server 200 packages the configuration data in the first warehouse of the code management system 20 to obtain a business data package.

可以理解的是,服务器200是将第一仓库中的所有配置数据打包。并且,打包得到的业务数据包可以为压缩包。It can be understood that the server 200 packages all configuration data in the first warehouse. Moreover, the packaged service data package may be a compressed package.

步骤606:服务器200根据目标环境参数在目标环境对应的服务器400和服务器500中发布业务数据包。Step 606: The server 200 publishes the service data package in the server 400 and server 500 corresponding to the target environment according to the target environment parameters.

服务器300根据目标数据集的名称和目标微服务的名称从配置文件中查找出对应的导出执行器,并通过导出执行将目标数据集中的配置数据导出到代码管理系统20中的第一仓库中。The server 300 finds the corresponding export executor from the configuration file according to the name of the target data set and the name of the target microservice, and exports the configuration data in the target data set to the first warehouse in the code management system 20 through export execution.

在一些实施例中,代码管理系统20通过服务器200可以调用与测试环境40对应的导入接口和与集成环境50对应的导入接口对业务数据包进行发布。In some embodiments, the code management system 20 can call the import interface corresponding to the test environment 40 and the import interface corresponding to the integration environment 50 through the server 200 to publish the business data package.

在一些实施例中,上述目标数据集还用于定义预设变更类型,该目标数据集指示的数据的变更类型符合对应的预设变更类型时被导入到目标环境服务器,如测试环境40的服务器400和集成环境50的服务器500。In some embodiments, the above target data set is also used to define a preset change type. When the change type of the data indicated by the target data set matches the corresponding preset change type, it is imported to the target environment server, such as the server of the test environment 40 400 and integrated environment 50 for server 500.

更具体的,本申请实施例中,在服务器200向服务器400和服务器500发布业务数据包的情况下,服务器400和服务器500中的任意服务器可以判断该业务数据包与该服务器中当前版本的业务数据包之间是否有差异,例如,判断两个数据包对应的MD5信息摘要算法(MD5 Message-Digest Algorithm)码是否相同以判断两个数据包之间是否有差异。如果不同则说明待导入的业务数据包发生了变更而与当前版本的业务数据包存在差异,如果相同则说明待导入的业务数据包中的数据未发生变更而与当前版本的业务数据包不存在差异。进而,在判断出待导入的业务数据包与当前版本的业务数据包之间存在差异的情况下,获取待导入的业务数据包中的数据和当前版本的业务数据包中的数据并进行比较,确定出待导入的业务数据包的数据的变更类型,得到各个数据集指示的数据的变更类型。进而,对待导入的业务数据包中各个数据集指示的数据的变更类型与对应数据集中预定义的预设变更类型进行比较,只有数据集指示的数据的变更类型符合对应的预设变更类型,才会将该数据集指示的数据导入到目标环境中。例如,在数据集指示的数据的变更类型符合目标数据集中预定义的预设变更类型时,将该数据集指示的数据导入到目标环境中服务器。如此,可以验证各个数据集指示的数据是否在符合预设变更类型的情况下导入目标环境的,以验证数据发布和导入的准确性。More specifically, in the embodiment of the present application, when the server 200 releases a service data package to the server 400 and the server 500, any server in the server 400 and the server 500 can determine whether the service data package is consistent with the current version of the service in the server. Whether there are differences between the data packets, for example, determine whether the MD5 Message-Digest Algorithm codes corresponding to the two data packets are the same to determine whether there are differences between the two data packets. If they are different, it means that the business data package to be imported has changed and is different from the current version of the business data package. If they are the same, it means that the data in the business data package to be imported has not changed and does not exist with the current version of the business data package. difference. Furthermore, when it is determined that there is a difference between the business data package to be imported and the business data package of the current version, the data in the business data package to be imported and the data in the business data package of the current version are obtained and compared, Determine the change type of data in the business data package to be imported, and obtain the change type of data indicated by each data set. Furthermore, the change type of the data indicated by each data set in the business data package to be imported is compared with the predefined preset change type in the corresponding data set. Only the change type of the data indicated by the data set matches the corresponding preset change type. The data indicated by this dataset will be imported into the target environment. For example, when the change type of the data indicated by the data set matches the preset change type predefined in the target data set, the data indicated by the data set is imported to the server in the target environment. In this way, it can be verified whether the data indicated by each data set is imported into the target environment in compliance with the preset change types to verify the accuracy of data release and import.

步骤607:服务器200记录数据发布的所有文件及其对应的发布状态。从而,以便后续重复发布,或者回滚发布,实现配置数据版本控制。Step 607: The server 200 records all files released by the data and their corresponding release status. This enables subsequent repeated releases or rollback releases to achieve configuration data version control.

其中,在一些实施例中,数据发布的所有文件(即发布信息)包括:业务数据包的名称(即配置数据的名称)、版本信息、发布时间(包括起始时间和结束时间)、以及发布状态信息(如发布成功、发布失败、正在发布)以及发布日志(包括历史版本号以及历史发布时间以历史版本的配置数据等)以及变更类型(如新增数据、变更数据或删减数据等)等。Among them, in some embodiments, all files (ie, release information) of data release include: the name of the business data package (ie, the name of the configuration data), version information, release time (including start time and end time), and release time. Status information (such as successful release, failed release, publishing in progress) and release logs (including historical version numbers, historical release time, historical version configuration data, etc.) and change types (such as new data, changed data, or deleted data, etc.) wait.

具体地,发布日志中还可以包括根据配置数据的版本信息(如版本号)构成的版本树, 进而以版本树为基础进行版本比较和回滚,以确保发布动作安全可靠。Specifically, the release log may also include a version tree formed based on the version information (such as version number) of the configuration data. Then, version comparison and rollback are performed based on the version tree to ensure that the release action is safe and reliable.

需要说明的是,用户通过查看发布信息中的变更类型,并将该变更类型与对应的预设变更类型进行比较,以验证数据发布以及导入的正确性。例如,对于业务数据包的发布信息中记录的目标数据集指示的数据的变更类型,可以将该变更类型与目标数据集中预先定义的预设变更类型的比较结果,作为判断目标数据集指示的数据的导入准确性的判断结果,并将该判断结果作为判断该业务数据包正确性的判断结果,例如,变更类型比较结果为不同说明业务数据包导入有误。It should be noted that users check the change type in the release information and compare the change type with the corresponding preset change type to verify the correctness of data release and import. For example, for the change type of data indicated by the target data set recorded in the release information of the business data package, the comparison result of the change type with the preset change type predefined in the target data set can be used to determine the data indicated by the target data set. The judgment result of the import accuracy is used as the judgment result to judge the correctness of the business data package. For example, if the change type comparison result is different, it means that the business data package is imported incorrectly.

另外,在其他一些实施例中,数据发布的所有文件中还可以包括业务数据包。In addition, in some other embodiments, all files published by the data may also include business data packages.

可以理解的是,重复发布可以重复执行上述步骤604到步骤606实现。It can be understood that repeated publishing can be implemented by repeatedly executing the above steps 604 to 606.

步骤608:终端设备100向服务器200从服务器200获取数据发布的所有文件及其对应的发布状态。Step 608: The terminal device 100 obtains all files for data release and their corresponding release status from the server 200.

其中,终端设备100可以向服务器200发送第三请求,第三请求用于从服务器200获取数据发布的所有文件及其对应的发布状态。Wherein, the terminal device 100 may send a third request to the server 200, where the third request is used to obtain all files published by the data and their corresponding publishing status from the server 200.

在一些实施例中,第三请求中可以包括目标微服务的名称,或者发布时间等信息,这些信息将作为查询业务数据包的发布状态的查询条件。In some embodiments, the third request may include the name of the target microservice, or information such as release time, which will be used as query conditions for querying the release status of the business data package.

可以理解的是,上述第三请求可以为用户手动发起的。It can be understood that the above third request can be manually initiated by the user.

在一种可能的实现方式中,终端设备100中的数据发布系统10可以提供业务数据发布状态界面,该界面用于提供查询数据发布状态,数据变更记录(如回滚发布)等功能等。具体地,数据发布状态界面可以触发从代码管理系统20中查询与目标微服务对应的业务数据包的发布状态等信息。In a possible implementation, the data publishing system 10 in the terminal device 100 can provide a business data publishing status interface, which is used to provide functions such as querying data publishing status, data change records (such as rollback publishing), etc. Specifically, the data release status interface can trigger querying information such as the release status of the business data package corresponding to the target microservice from the code management system 20 .

作为一种示例,业务数据发布状态界面可以通过发布时间,业务数据包所属微服务的名称等查询条件来查询对应业务数据发布状态。其中,业务数据发布状态界面可以提供输入框用于用户输入或者选择发布时间,目标微服务的名称等查询条件,触发查询业务数据包的发布状态。As an example, the business data release status interface can query the corresponding business data release status through release time, the name of the microservice to which the business data package belongs, and other query conditions. Among them, the business data release status interface can provide an input box for the user to input or select the release time, the name of the target microservice and other query conditions to trigger the query of the release status of the business data package.

作为一种实施例,用户可以在业务数据发布状态界面中选择微服务的名称UnderwritingRuleCheck来触发查找数据发布状态。As an embodiment, the user can select the name of the microservice UnderwritingRuleCheck in the business data release status interface to trigger the search for the data release status.

另外,作为另一种示例,业务数据发布状态界面可以通过发布时间还可以提供用户触发重新发布目标微服务的业务数据包的重新发布按钮,以及触发回滚发布目标微服务的业务数据包的回滚发布按钮等。In addition, as another example, the business data release status interface can also provide the user with a re-publish button that triggers the re-publishing of the business data package of the target microservice through the release time, and a callback button that triggers the rollback of the business data package of the target microservice. Roll publish button etc.

具体地,业务数据发布状态界面针对查询到的查询出业务数据包的查询结果可以包括以下内容:发布状态、发布起始时间,结束时间,版本号,发布日志入口,重新发布按钮、回滚发布按钮等。例如,在用户对发布日志入口进行点击之后,数据发布管理系统10展示提供配置历史界面展示配置数据的所有版本,配置人员可选择任意两个版本配置进行比较。另外,该配置历史界面中还可以提供待发布版本与线上生效版本的比较,并提供发布按钮,还可以提供外围校验按钮等。Specifically, the query result of the queried business data package on the business data release status interface can include the following content: release status, release start time, end time, version number, release log entry, re-publish button, rollback release Buttons etc. For example, after the user clicks on the release log entry, the data release management system 10 displays a configuration history interface to display all versions of the configuration data, and the configurer can select any two version configurations for comparison. In addition, the configuration history interface can also provide a comparison between the version to be released and the online effective version, and provide a release button and a peripheral verification button.

步骤609:服务器400解析目标业务数据包,得到目标业务数据包中的目标数据集指示的数据。作为一种示例,服务器400解析目标业务数据包,可以获取一个目标数据集的名称为UnderwritingRuleCheck的“核保规则检验”数据。Step 609: The server 400 parses the target service data packet and obtains the data indicated by the target data set in the target service data packet. As an example, the server 400 parses the target business data packet and can obtain "Underwriting Rule Check" data named UnderwritingRuleCheck in a target data set.

步骤610:服务器400从配置表中查找目标数据集对应的第一导入执行器和第一回调 信息,通过第一导入执行器在服务器400中导入目标数据集指示的数据,并执行第一回调信息指示的第一回调操作。结合上述示例,服务器400可以从配置表中查找与名称为UnderwritingRuleCheck的数据集对应的导入执行器以及回调信息。Step 610: The server 400 searches the configuration table for the first import executor and the first callback corresponding to the target data set. information, import the data indicated by the target data set into the server 400 through the first import executor, and execute the first callback operation indicated by the first callback information. Combined with the above example, the server 400 can search the configuration table for the import executor and callback information corresponding to the data set named UnderwritingRuleCheck.

其中,在目标数据集包括多个子数据集时,第一导入执行器具体为多个子导入执行器,另外第一回调信息也包括多个子回调信息,每个回调信息指示一个回调操作。Wherein, when the target data set includes multiple sub-data sets, the first import executor is specifically a plurality of sub-import executors. In addition, the first callback information also includes multiple sub-callback information, and each callback information indicates a callback operation.

作为一种示例,第一回调操作可以为清缓存,重建索引,推送数据到集成平台,邮件返回发布结果报告等。例如,清缓存指的是为在服务器400中清缓存以存储业务数据包。重建索引指的是在服务器400为业务数据包重建的索引。推送数据到集成平台指的是将业务数据包中的数据推送的数据发布管理系统10中。另外,邮件返回发布结果报告指的是服务器400将业务数据发布成功或失败的结果以邮件形式发送给预设的邮箱以供技术人员查看。As an example, the first callback operation can be clearing the cache, rebuilding the index, pushing data to the integration platform, returning the publishing result report via email, etc. For example, clearing the cache refers to clearing the cache in the server 400 to store service data packets. Rebuilding the index refers to the index rebuilt on the server 400 for the service data packet. Pushing data to the integration platform refers to pushing the data in the business data package into the data release management system 10 . In addition, the return of the publishing result report by email means that the server 400 sends the result of successful or failed business data publishing to a preset mailbox in the form of an email for technical personnel to view.

在一些实施例中,回调操作可以继承发布服务的回调接口(如上文中的导入接口)进行扩展,在微服务中以spring bean(即微服务项目,如上述目标微服务)的方式体现。具体地,数据集的回调信息的可以通过以下步骤实现:首先,将对应的spring bean name(如上述目标为服务器的名称)提前配置在目标环境的数据库中;然后,通过spring bean name可获取到spring bean,最后执行spring bean中的固定方法进行回调。In some embodiments, the callback operation can be extended by inheriting the callback interface of the publishing service (such as the import interface above), and is embodied in the microservice in the form of a spring bean (that is, a microservice project, such as the above-mentioned target microservice). Specifically, the callback information of the data set can be achieved through the following steps: first, configure the corresponding spring bean name (for example, the above target is the name of the server) in the database of the target environment in advance; then, obtain it through the spring bean name spring bean, and finally execute the fixed method in the spring bean for callback.

步骤611:服务器500解析目标业务数据包,得到目标业务数据包中的目标数据集指示的数据。Step 611: The server 500 parses the target service data packet and obtains the data indicated by the target data set in the target service data packet.

步骤612:服务器500从配置表中查找目标数据集对应的第二导入执行器和第二回调信息,通过第二导入执行器在服务器500中导入目标数据集指示的数据,并执行第二回调信息指示的第二回调操作。Step 612: The server 500 searches for the second import executor and the second callback information corresponding to the target data set from the configuration table, imports the data indicated by the target data set into the server 500 through the second import executor, and executes the second callback information. Indicates the second callback operation.

类似的,对步骤611和612的描述可以参照上文中对步骤609和步骤610的描述,此处不再赘述。其中,第二回调信息与第一回调信息相同或不同。Similarly, the description of steps 611 and 612 may refer to the above description of step 609 and step 610, which will not be described again here. Wherein, the second callback information is the same as or different from the first callback information.

需要说明的是,本申请实施例中仅以目标环境为测试环境40和集成环境50为例说明,实际应用可以为更多或更少的目标环境。It should be noted that in the embodiment of the present application, the target environment is only the test environment 40 and the integration environment 50 as an example. The actual application may be more or less target environments.

可以理解的是,本申请实施例中,在数据发布前、发布过程中以及发布之后,服务器400和服务器500均可以进行回调操作。It can be understood that in this embodiment of the present application, the server 400 and the server 500 can perform callback operations before, during, and after data is released.

本申请实施例中,基于配置文件发布配置数据时可以支持多源数据发布。另外,只需一次对配置文件的配置,后续便可一键全量导出配置数据,而后可以一键发布数据并智能化处理回调操作。再不需人工介入,避免了大量的重复工作,极大的缩短了项目的上线周期,减少了后续运维成本。In the embodiment of this application, when publishing configuration data based on configuration files, multi-source data publishing can be supported. In addition, you only need to configure the configuration file once, and then you can export all the configuration data with one click, and then publish the data with one click and handle callback operations intelligently. Manual intervention is no longer required, a large amount of duplication of work is avoided, the project launch cycle is greatly shortened, and subsequent operation and maintenance costs are reduced.

在一种可能的实现方式中,如图7所示,为本发明实施例提供的一种终端设备100的硬件结构示意图。图7示出的终端设备100包括:处理器1001、通信单元1002、存储器1003、用户接口1004和总线接口1005。图7中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1001代表的一个或多个处理器和存储器1003代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。通信单元1002可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。针对不同的管理设备,用户接口1004还可以 是能够外接内接需要设备的接口,连接的设备包括但不限于键盘、显示器、扬声器、麦克风、操纵杆、鼠标等。处理器1001负责管理总线架构和通常的处理,存储器1003可以存储处理器1001在执行操作时所使用的数据。显示屏1006用于提供人机交互界面。In a possible implementation manner, as shown in FIG. 7 , it is a schematic diagram of the hardware structure of a terminal device 100 provided by an embodiment of the present invention. The terminal device 100 shown in FIG. 7 includes: a processor 1001, a communication unit 1002, a memory 1003, a user interface 1004 and a bus interface 1005. In FIG. 7 , the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 1001 and various circuits of the memory represented by memory 1003 linked together. The bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are all well known in the art and therefore will not be described further herein. The bus interface provides the interface. The communication unit 1002 may be a plurality of elements, including a transmitter and a receiver, providing means for communicating with various other devices over a transmission medium. For different management devices, the user interface 1004 can also It is an interface that can be connected to external and internal devices. The connected devices include but are not limited to keyboards, monitors, speakers, microphones, joysticks, mice, etc. The processor 1001 is responsible for managing the bus architecture and general processing, and the memory 1003 can store data used by the processor 1001 when performing operations. The display screen 1006 is used to provide a human-computer interaction interface.

另外,终端设备100还包括一些未示出的功能模块,在此不再赘述。In addition, the terminal device 100 also includes some not-shown functional modules, which will not be described again here.

其中,用户接口1004中的显示屏用于提供数据发布管理系统10中的触发数据导出界面、触发数据发布界面以及数据发布状态界面等。进而,用户接口1004中的键盘和鼠标可以用于支持用户在数据发布管理系统10中输入数据集的名称、目标微服务的名称等信息,以及接收用户数输入的触发一键全量导出数据的操作,以及触发一键发布数据的操作等。通信单元1002,用于向配置环境的服务器发送触发数据导出的第一请求,向代码管理系统20所在的服务器200发送触发数据发布的第二请求,以及向代码管理系统20所在的服务器200发送用于查询数据发布状态的第三请求等。处理器1001,用于根据用户的输入生成第一请求等,并控制通信单元1002向服务器端发起请求。The display screen in the user interface 1004 is used to provide the trigger data export interface, trigger data release interface, data release status interface, etc. in the data release management system 10 . Furthermore, the keyboard and mouse in the user interface 1004 can be used to support the user in inputting the name of the data set, the name of the target microservice and other information in the data release management system 10, and to receive the input of the number of users to trigger the operation of exporting all data with one click. , as well as trigger operations to publish data with one click, etc. The communication unit 1002 is configured to send a first request to trigger data export to the server that configures the environment, send a second request to trigger data release to the server 200 where the code management system 20 is located, and send a username to the server 200 where the code management system 20 is located. The third request for querying the data release status, etc. The processor 1001 is configured to generate a first request according to the user's input, and control the communication unit 1002 to initiate a request to the server.

在一种可能的实现方式中,如图7所示,为本发明实施例提供的一种终端设备100的硬件结构示意图。图7示出的终端设备100包括:处理器1001、通信接口1002、存储器1003、用户接口1004和总线接口1005。图7中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1001代表的一个或多个处理器和存储器1003代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。通信接口1002可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。针对不同的管理设备,用户接口1004还可以是能够外接内接需要设备的接口,连接的设备包括但不限于键盘、显示器、扬声器、麦克风、操纵杆、鼠标等。处理器1001负责管理总线架构和通常的处理,存储器1003可以存储处理器1001在执行操作时所使用的数据。显示屏1006用于提供人机交互界面。In a possible implementation manner, as shown in FIG. 7 , it is a schematic diagram of the hardware structure of a terminal device 100 provided by an embodiment of the present invention. The terminal device 100 shown in FIG. 7 includes: a processor 1001, a communication interface 1002, a memory 1003, a user interface 1004 and a bus interface 1005. In FIG. 7 , the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 1001 and various circuits of the memory represented by memory 1003 linked together. The bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are all well known in the art and therefore will not be described further herein. The bus interface provides the interface. Communication interface 1002 may be a plurality of elements, including a transmitter and a receiver, providing means for communicating with various other devices over a transmission medium. For different management devices, the user interface 1004 can also be an interface that can connect external and internal required devices. The connected devices include but are not limited to keyboards, monitors, speakers, microphones, joysticks, mice, etc. The processor 1001 is responsible for managing the bus architecture and general processing, and the memory 1003 can store data used by the processor 1001 when performing operations. The display screen 1006 is used to provide a human-computer interaction interface.

另外,终端设备100还包括一些未示出的功能模块,在此不再赘述。In addition, the terminal device 100 also includes some not-shown functional modules, which will not be described again here.

其中,用户接口1004中的显示屏用于提供数据发布管理系统10中的触发数据导出界面、触发数据发布界面以及数据发布状态界面等。进而,用户接口1004中的键盘和鼠标可以用于支持用户在数据发布管理系统10中输入数据集的名称、目标微服务的名称等信息,以及接收用户数输入的触发一键全量导出数据的操作,以及触发一键发布数据的操作等。通信接口1002,用于向配置环境的服务器发送触发数据导出的第一请求,向代码管理系统20所在的服务器200发送触发数据发布的第二请求,以及向代码管理系统20所在的服务器200发送用于查询数据发布状态的第三请求等。处理器1001,用于根据用户的输入生成第一请求等,并控制通信接口1002向服务器端发起请求。The display screen in the user interface 1004 is used to provide the trigger data export interface, trigger data release interface, data release status interface, etc. in the data release management system 10 . Furthermore, the keyboard and mouse in the user interface 1004 can be used to support the user in inputting the name of the data set, the name of the target microservice and other information in the data release management system 10, and to receive the input of the number of users to trigger the operation of exporting all data with one click. , as well as trigger operations to publish data with one click, etc. The communication interface 1002 is used to send a first request to trigger data export to the server that configures the environment, send a second request to trigger data release to the server 200 where the code management system 20 is located, and send a username to the server 200 where the code management system 20 is located. The third request for querying the data release status, etc. The processor 1001 is configured to generate a first request according to the user's input, and control the communication interface 1002 to initiate a request to the server.

本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中手机10(如手机10中的各个器件)执行的各个功能或者步骤。Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium includes computer instructions. When the computer instructions are run on the above-mentioned electronic device, the electronic device causes the electronic device to execute the mobile phone 10 ( Such as each function or step performed by each device in the mobile phone 10.

本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机10(如手机10中的各个器件)执行的各个功能或者步骤。Embodiments of the present application also provide a computer program product. When the computer program product is run on a computer, it causes the computer to perform various functions performed by the mobile phone 10 (such as each component in the mobile phone 10) in the above method embodiment, or step.

本申请公开的机制的各实施例可以被实现在硬件、软件、固件或这些实现方法的组合 中。本申请的实施例可实现为在可编程系统上执行的计算机程序或程序代码,该可编程系统包括至少一个处理器、存储系统(包括易失性和非易失性存储器和/或存储元件)、至少一个输入设备以及至少一个输出设备。Various embodiments of the mechanisms disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods. middle. Embodiments of the present application may be implemented as a computer program or program code executing on a programmable system including at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements) , at least one input device and at least one output device.

可将程序代码应用于输入指令,以执行本申请描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。为了本申请的目的,处理系统包括具有诸如例如数字信号处理器(Digital Signal Processor,DSP)、微控制器、专用集成电路(Application Specific Integrated Circuit,ASIC)或微处理器之类的处理器的任何系统。Program code may be applied to input instructions to perform the functions described herein and to generate output information. Output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any processor having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor. system.

程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本申请中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。Program code may be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. When necessary, assembly language or machine language can also be used to implement program code. In fact, the mechanisms described in this application are not limited to the scope of any particular programming language. In either case, the language may be a compiled or interpreted language.

在一些情况下,所公开的实施例可以以硬件、固件、软件或其任何组合来实现。所公开的实施例还可以被实现为由一个或多个暂时或非暂时性机器可读(例如,计算机可读)存储介质承载或存储在其上的指令,其可以由一个或多个处理器读取和执行。例如,指令可以通过网络或通过其他计算机可读介质分发。因此,机器可读介质可以包括用于以机器(例如,计算机)可读的形式存储或传输信息的任何机制,包括但不限于,软盘、光盘、光碟、只读存储器(CD-ROMs)、磁光盘、只读存储器(Read Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁卡或光卡、闪存、或用于利用因特网以电、光、声或其他形式的传播信号来传输信息(例如,载波、红外信号数字信号等)的有形的机器可读存储器。因此,机器可读介质包括适合于以机器(例如计算机)可读的形式存储或传输电子指令或信息的任何类型的机器可读介质。In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried on or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be operated by one or more processors Read and execute. For example, instructions may be distributed over a network or through other computer-readable media. Thus, machine-readable media may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magnetic Optical disc, Read Only Memory (ROM), Random Access Memory (RAM), Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Memory Read memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic or optical card, flash memory, or used to use the Internet to transmit information through electrical, optical, acoustic or other forms of propagation signals (for example, carrier waves, infrared signals, digital signals etc.) tangible machine-readable storage. Thus, machine-readable media includes any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, computer).

在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明性附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以不包括这些特征或者可以与其他特征组合。In the drawings, some structural or methodological features may be shown in specific arrangements and/or orders. However, it should be understood that such specific arrangement and/or ordering may not be required. Rather, in some embodiments, the features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments these features may not be included or may be combined with other features.

需要说明的是,本申请各设备实施例中提到的各单元/模块都是逻辑单元/模块,在物理上,一个逻辑单元/模块可以是一个物理单元/模块,也可以是一个物理单元/模块的一部分,还可以以多个物理单元/模块的组合实现,这些逻辑单元/模块本身的物理实现方式并不是最重要的,这些逻辑单元/模块所实现的功能的组合才是解决本申请所提出的技术问题的关键。此外,为了突出本申请的创新部分,本申请上述各设备实施例并没有将与解决本申请所提出的技术问题关系不太密切的单元/模块引入,这并不表明上述设备实施例并不存在其它的单元/模块。It should be noted that each unit/module mentioned in each device embodiment of this application is a logical unit/module. Physically, a logical unit/module can be a physical unit/module, or it can be a physical unit/module. Part of the module can also be implemented as a combination of multiple physical units/modules. The physical implementation of these logical units/modules is not the most important. The combination of functions implemented by these logical units/modules is what solves the problem of this application. Key technical issues raised. In addition, in order to highlight the innovative part of this application, the above-mentioned equipment embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems raised by this application. This does not mean that the above-mentioned equipment embodiments do not exist. Other units/modules.

需要说明的是,在本专利的示例和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设 备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in the examples and descriptions of this patent, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply There is no such actual relationship or sequence between these entities or operations. Furthermore, the terms "comprises,""comprises," or any other variations thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or device includes a list of elements. Equipment includes not only those elements but also other elements not expressly listed or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a" does not exclude the presence of additional identical elements in a process, method, article, or device that includes the stated element.

虽然通过参照本申请的某些优选实施例,已经对本申请进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。 Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes may be made in form and detail without departing from the present invention. The spirit and scope of the application.

Claims (13)

一种数据发布方法,其特征在于,所述方法包括:A data publishing method, characterized in that the method includes: 终端设备向配置环境服务器发起数据导出指令,所述数据导出指令与目标微服务相关联;The terminal device initiates a data export instruction to the configuration environment server, and the data export instruction is associated with the target microservice; 所述配置环境服务器响应于所述数据导出指令,按照预设的目标配置文件确定与所述目标微服务对应的目标导出执行器和目标数据集,其中,所述目标配置文件用于定义所述目标微服务、所述目标数据集以及所述目标导出执行器之间的对应关系;In response to the data export instruction, the configuration environment server determines the target export executor and target data set corresponding to the target microservice according to a preset target configuration file, wherein the target configuration file is used to define the The correspondence between the target microservice, the target data set and the target export executor; 所述配置环境服务器使用所述目标导出执行器,将所述目标数据集指示的数据从所述配置环境服务器导出到代码管理服务器;所述目标数据集指示的数据是与所述目标微服务对应的配置数据中的部分数据;The configuration environment server uses the target export executor to export the data indicated by the target data set from the configuration environment server to the code management server; the data indicated by the target data set corresponds to the target microservice Part of the data in the configuration data; 所述代码管理服务器将所述目标数据集指示的数据保存至与所述目标微服务对应的第一仓库中;所述第一仓库为所述代码管理服务器中用于存储所述目标微服务的配置数据的仓库,并且第一仓库与所述代码管理服务器中用于存储所述目标微服务的应用数据的仓库不同;The code management server saves the data indicated by the target data set into the first warehouse corresponding to the target microservice; the first warehouse is a storage space in the code management server used to store the target microservice. Configure a warehouse of data, and the first warehouse is different from the warehouse used to store application data of the target microservice in the code management server; 所述代码管理服务器将所述目标数据集指示的所述第一仓库中的全部配置数据打包为业务数据包,并将所述业务数据包发布到至少一个目标环境服务器中,其中,所述业务数据包中包括所述目标微服务的所有配置数据,不包括所述目标微服务的应用数据。The code management server packages all the configuration data in the first warehouse indicated by the target data set into a business data package, and publishes the business data package to at least one target environment server, wherein the business data package The data package includes all configuration data of the target microservice, excluding application data of the target microservice. 根据权利要求1所述的方法,其特征在于,所述目标数据集还用于定义预设变更类型;The method according to claim 1, characterized in that the target data set is also used to define a preset change type; 所述方法还包括:The method also includes: 在所述目标数据集指示的数据的变更类型符合所述预设变更类型的情况下,所述至少一个目标环境服务器导入所述目标数据集指示的数据。If the change type of the data indicated by the target data set complies with the preset change type, the at least one target environment server imports the data indicated by the target data set. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, characterized in that, the method further includes: 所述配置环境服务器从所述数据导出指令中解析出所述目标微服务的名称;The configuration environment server parses the name of the target microservice from the data export instruction; 所述配置环境服务器按照所述目标微服务的名称,从与所述目标微服务对应的所述目标配置文件中查找出与所述目标数据集对应的所述目标导出执行器。The configuration environment server searches for the target export executor corresponding to the target data set from the target configuration file corresponding to the target microservice according to the name of the target microservice. 根据权利要求1至3中任一项所述的方法,其特征在于,所述目标数据集中包括多个子数据集,所述目标导出执行器中包括多个子导出执行器,一个所述子数据集对应一个子导出执行器;并且,The method according to any one of claims 1 to 3, characterized in that the target data set includes multiple sub-data sets, the target export executor includes multiple sub-export executors, and one of the sub-data sets Corresponds to a sub-exported executor; and, 所述多个子数据集中的一部分子数据集中的源数据为所述目标微服务的源数据,另一部分子数据集中的源数据为与所述目标微服务不同的微服务的源数据。The source data in a part of the multiple sub-data sets is the source data of the target microservice, and the source data in another part of the sub-data set is the source data of a microservice different from the target microservice. 根据权利要求4所述的方法,其特征在于,所述多个子数据集中的源数据的数据类型包括:数据库脚本、图片、可携带文档格式、表格、文档中的至少一种。The method according to claim 4, wherein the data type of the source data in the plurality of sub-data sets includes at least one of database scripts, pictures, portable document formats, tables, and documents. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, characterized in that the method further includes: 第一目标环境服务器解析出所述数据包中的所述目标数据集,所述第一目标环境服务器为所述至少一个目标环境服务器中的任意一个;The first target environment server parses out the target data set in the data packet, and the first target environment server is any one of the at least one target environment server; 所述第一目标环境服务器按照与所述目标微服务对应的目标配置表,使用目标导入执行器导入所述目标数据集指示的数据;The first target environment server uses a target import executor to import the data indicated by the target data set according to the target configuration table corresponding to the target microservice; 其中,所述目标配置表用于定义所述目标微服务、所述目标数据集以及所述目标导入 执行器之间的对应关系。Wherein, the target configuration table is used to define the target microservice, the target data set and the target import Correspondence between actuators. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method of claim 6, further comprising: 所述第一目标环境服务器执行与所述目标数据集对应的目标回调操作;The first target environment server executes a target callback operation corresponding to the target data set; 其中,所述目标配置表还用于定义所述目标数据集与目标回调信息之间的对应关系,所述目标数据集中包括多个子数据集,所述目标回调信息中包括多个子回调信息,一个所述子回调操作对应一个所述子数据集。Wherein, the target configuration table is also used to define the corresponding relationship between the target data set and target callback information. The target data set includes multiple sub-data sets, and the target callback information includes multiple sub-callback information. One The sub-callback operation corresponds to one of the sub-data sets. 根据权利要求1至7中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 7, characterized in that the method further includes: 所述终端设备向所述代码管理服务器发起数据发布指令,所述数据发布指令与所述目标微服务关联;The terminal device initiates a data release instruction to the code management server, and the data release instruction is associated with the target microservice; 其中,所述业务数据包是所述代码管理服务器响应于所述数据发布指令,一键发布到所述至少一个目标环境服务器中的。Wherein, the business data package is released by the code management server to the at least one target environment server with one click in response to the data release instruction. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, further comprising: 所述代码管理系统对应的服务器记录所述目标微服务的配置信息对应的发布信息;The server corresponding to the code management system records the release information corresponding to the configuration information of the target microservice; 其中,所述发布信息中包括以下至少一项:所述目标微服务的名称、所述业务数据包的名称发布时间、发布状态信息以及所述业务数据包中所述目标数据集指示数据的变更类型;并且,Wherein, the release information includes at least one of the following: the name of the target microservice, the name release time of the business data package, release status information, and changes in the target data set indication data in the business data package. type; and, 所述发布信息中的包含的所述目标数据集指示数据的变更类型与所述目标数据集中预先定义的预设变更类型的比较结果,作为判断所述业务数据包正确性的判断结果。The comparison result between the change type of the target data set indication data contained in the release information and the preset change type predefined in the target data set is used as a judgment result to determine the correctness of the business data package. 根据权利要求9所述的方法,其特征在于,所述变更类型为新增数据、变更数据和删减数据中的至少一种。The method according to claim 9, characterized in that the change type is at least one of newly added data, changed data and deleted data. 根据权利要求9或10所述的方法,其特征在于,所述方法还包括:The method according to claim 9 or 10, characterized in that, the method further includes: 所述终端设备接收与所述业务数据包对应的发布查询请求;The terminal device receives a publishing query request corresponding to the service data packet; 所述终端设备向所述代码管理系统对应的服务器发起与所述业务数据包对应的发布查询请求;The terminal device initiates a release query request corresponding to the service data package to the server corresponding to the code management system; 所述代码管理系统对应的服务向所述终端设备返回所述发布信息;The service corresponding to the code management system returns the publishing information to the terminal device; 所述终端设备通过查询界面展示所述发布信息、发布按钮、回滚按钮和发布日志按钮;The terminal device displays the release information, release button, rollback button and release log button through the query interface; 其中,所述发布按钮用于触发将所述业务数据包重新发布至所述至少一个目标环境服务器中,所述回滚按钮用于触发在所述至少一个目标环境服务器中对所述业务数据执行回滚操作,发布日志按钮用于触发所述终端设备显示所述业务数据包的历史发布信息。Wherein, the publish button is used to trigger the re-publishing of the business data package to the at least one target environment server, and the rollback button is used to trigger execution of the business data in the at least one target environment server. In the rollback operation, the release log button is used to trigger the terminal device to display the historical release information of the service data package. 根据权利要求1至11中任一项所述的方法,其特征在于,The method according to any one of claims 1 to 11, characterized in that, 所述目标微服务应用于互联网金融产品或者互联网保险产品。The target microservice is applied to Internet financial products or Internet insurance products. 一种数据发布系统,其特征在于,所述系统包括终端设备,配置环境服务器,代码管理服务器,以及至少一个目标环境服务器;A data publishing system, characterized in that the system includes a terminal device, a configuration environment server, a code management server, and at least one target environment server; 所述终端设备,用于向配置环境服务器发起数据导出指令,所述数据导出指令与目标微服务关联;The terminal device is used to initiate a data export instruction to the configuration environment server, where the data export instruction is associated with the target microservice; 所述配置环境服务器,用于响应于所述数据导出指令,按照预设的目标配置文件确定与所述目标微服务对应的目标导出执行器和目标数据集,其中,所述目标配置文件用于定义所述目标微服务、所述目标数据集以及所述目标导出执行器之间的对应关系;The configuration environment server is configured to respond to the data export instruction and determine the target export executor and target data set corresponding to the target microservice according to a preset target configuration file, wherein the target configuration file is used to Define the corresponding relationship between the target microservice, the target data set and the target export executor; 所述配置环境服务器使用所述目标导出执行器,将所述目标数据集指示的数据从所述 配置环境服务器导出到代码管理服务器;所述目标数据集指示的数据是与所述目标微服务对应的配置数据中的部分数据;The configuration environment server uses the target export executor to export the data indicated by the target data set from the The configuration environment server exports to the code management server; the data indicated by the target data set is part of the data in the configuration data corresponding to the target microservice; 所述代码管理服务器,还用于将所述目标数据集指示的数据保存至与所述目标微服务对应的第一仓库中;所述第一仓库为所述代码管理服务器中用于存储所述目标微服务的配置数据的仓库,并且第一仓库与所述代码管理服务器中用于存储所述目标微服务的应用数据的仓库不同;The code management server is also used to save the data indicated by the target data set to the first warehouse corresponding to the target microservice; the first warehouse is used in the code management server to store the A warehouse for the configuration data of the target microservice, and the first warehouse is different from the warehouse used to store the application data of the target microservice in the code management server; 所述代码管理服务器,还用于将所述目标数据集指示的所述第一仓库中的全部配置数据打包为业务数据包,并将所述业务数据包发布到至少一个目标环境服务器中,其中,所述业务数据包中包括所述目标微服务的所有配置数据,不包括所述目标微服务的应用数据。 The code management server is also configured to package all configuration data in the first warehouse indicated by the target data set into a business data package, and publish the business data package to at least one target environment server, wherein , the business data package includes all configuration data of the target microservice, excluding application data of the target microservice.
PCT/CN2023/098320 2022-06-29 2023-06-05 Data publishing method and system Ceased WO2024001679A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210749103.2A CN115202711B (en) 2022-06-29 2022-06-29 Data publishing method and system
CN202210749103.2 2022-06-29

Publications (1)

Publication Number Publication Date
WO2024001679A1 true WO2024001679A1 (en) 2024-01-04

Family

ID=83577663

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/098320 Ceased WO2024001679A1 (en) 2022-06-29 2023-06-05 Data publishing method and system

Country Status (2)

Country Link
CN (1) CN115202711B (en)
WO (1) WO2024001679A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118519671A (en) * 2024-07-19 2024-08-20 湖南云畅网络科技有限公司 Export method and system of low-code item

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115202711B (en) * 2022-06-29 2023-11-14 易保网络技术(上海)有限公司 Data publishing method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708571A (en) * 2020-06-17 2020-09-25 珠海宏桥高科技有限公司 Microservice deployment method, device, electronic device and storage medium
CN111966451A (en) * 2020-07-24 2020-11-20 苏州浪潮智能科技有限公司 Data extraction method, system, equipment and medium
CN112181439A (en) * 2020-09-24 2021-01-05 中国建设银行股份有限公司 Micro-service deployment method and device, electronic equipment and readable storage medium
CN112511608A (en) * 2020-11-19 2021-03-16 中国平安财产保险股份有限公司 Micro-service module registration and test method, device, equipment and storage medium
US20220012051A1 (en) * 2014-11-11 2022-01-13 Fair Isaac Corporation Workflow templates for configuration packages
CN115202711A (en) * 2022-06-29 2022-10-18 易保网络技术(上海)有限公司 Data publishing method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352649B (en) * 2018-12-24 2023-09-22 北京嘀嘀无限科技发展有限公司 Code processing method, device, server and readable storage medium
CN110825518B (en) * 2019-10-14 2023-06-09 上海交通大学 Microservice-oriented nanosecond-level power resource allocation method and system
US11645302B2 (en) * 2020-09-18 2023-05-09 Toshiba Global Commerce Solutions Holdings Corporation Methods and systems providing synchronization of data in a distributed system using microservice architecture in servers, store controllers, terminals and related articles of manufacture
CN112363718A (en) * 2020-11-10 2021-02-12 杭州和利时自动化有限公司 Industrial application integration system based on micro-service architecture
CN112860450B (en) * 2020-12-04 2024-04-19 武汉悦学帮网络技术有限公司 Request processing method and device
CN113434175B (en) * 2021-06-29 2024-02-27 平安科技(深圳)有限公司 Data processing method, device, storage medium and equipment
CN113792077B (en) * 2021-09-17 2023-06-06 易保网络技术(上海)有限公司 A data processing method, program product, readable medium and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220012051A1 (en) * 2014-11-11 2022-01-13 Fair Isaac Corporation Workflow templates for configuration packages
CN111708571A (en) * 2020-06-17 2020-09-25 珠海宏桥高科技有限公司 Microservice deployment method, device, electronic device and storage medium
CN111966451A (en) * 2020-07-24 2020-11-20 苏州浪潮智能科技有限公司 Data extraction method, system, equipment and medium
CN112181439A (en) * 2020-09-24 2021-01-05 中国建设银行股份有限公司 Micro-service deployment method and device, electronic equipment and readable storage medium
CN112511608A (en) * 2020-11-19 2021-03-16 中国平安财产保险股份有限公司 Micro-service module registration and test method, device, equipment and storage medium
CN115202711A (en) * 2022-06-29 2022-10-18 易保网络技术(上海)有限公司 Data publishing method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118519671A (en) * 2024-07-19 2024-08-20 湖南云畅网络科技有限公司 Export method and system of low-code item

Also Published As

Publication number Publication date
CN115202711B (en) 2023-11-14
CN115202711A (en) 2022-10-18

Similar Documents

Publication Publication Date Title
JP7148654B2 (en) Declarative language and visualization system for recommended data transformation and restoration
US10528585B2 (en) ETL tool interface for remote mainframes
US10509696B1 (en) Error detection and mitigation during data migrations
US10740286B1 (en) Migration task validation before data migration
CN111966692A (en) Data processing method, medium, device and computing equipment for data warehouse
US9031920B2 (en) Objects in a storage environment for connected applications
US10938907B2 (en) Techniques and architectures for managing disparate heterogeneous cloud-based resources
CN102682126B (en) The access method of a kind of form data and device
US12159104B2 (en) Describing changes in a workflow based on changes in structured documents containing workflow metadata
US9619533B2 (en) System and method for reporting multiple objects in enterprise content management
WO2024001679A1 (en) Data publishing method and system
US20220207033A1 (en) Systems and methods for data retrieval
US20150317572A1 (en) On-Demand Enrichment of Business Data
CN116028466A (en) Database structure migration method, device, equipment, storage medium
CN111736837A (en) Method, device, device, readable storage medium, and system for restoring web page operations
CN110244934B (en) Method and device for generating product demand document and test information
US9330140B1 (en) Transient virtual single tenant queries in a multi-tenant shared database system
US10289620B1 (en) Reporting and data governance management
US10365925B2 (en) Merging applications
US10534588B2 (en) Data processing simulator with simulator module and data elements
US10817272B2 (en) Generation and usage of language-converted script
US10769164B2 (en) Simplified access for core business with enterprise search
US10318524B2 (en) Reporting and data governance management
CN115033276A (en) Project release method, device, equipment and storage medium
CN120872902A (en) File management method, system, equipment, cluster, product and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23829863

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 23829863

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11.07.2025)