A data service platform based on microservice system
Through the data service platform based on the microservice system, the unified management and release of API services is achieved, and the problem of mismatch between data development and application development speed is solved, and a secure and stable data open sharing service is provided, which is suitable for large enterprise groups. diversified development strategy.
Patent Information
- Application Number
- CN202011557787.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-23
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2040-12-23
AI Technical Summary
In the existing data development, the core data model changes slowly, resulting in a large amount of data maintenance work, and the speed of business innovation cannot keep up with changes in data demand, resulting in mismatch between data development and application development speeds and insufficient response.
Adopt a data service platform based on the microservice system, and realize unified management and release by quickly registering existing APIs, support one-click release of API services to API gateways, build enterprise-level service capabilities, and eliminate barriers between internal business departments of the enterprise. Adapt to the diversified development strategy of large enterprise groups.
Achieve a secure, stable, low-cost and easy to use data open sharing service. Through the abstraction of business, data and technology, enterprise-level service capabilities are built, and front-end applications are quickly built, solving the mismatch between data development and application development speeds. question.
Smart Images

Figure CN112597183B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data service platforms, and in particular relates to a data service platform based on a microservice system. Background Art
[0002] Data: In computer systems, the combination of various letters, digital symbols, voices, graphics, images, etc. are collectively referred to as data. After being processed, data becomes information. In computer science, data refers to the general term for all media of symbols that can be input into a computer and processed by a computer program. It is a general term for numbers, letters, symbols, and analog quantities that have a certain meaning and are used to input into an electronic computer for processing. It is the most basic element of a geographic information system, and there are many types. Digital data is a discrete value within a certain range.
[0003] In most existing data development, the core data model changes relatively slowly, and the workload of maintaining data is also very large; however, the speed of business innovation and the changes in data requirements are very fast. The emergence of data service platforms is to make up for the problem of inability to keep up with the response due to the mismatch in development speed between data development and application development. Summary of the invention
[0004] The purpose of the present invention is to provide a data service platform based on a microservice system, which facilitates unified management and publishing by quickly registering existing APIs to the data service platform, and supports one-click publishing of API services to the API gateway. Data services and API gateways can provide data open sharing services that are safer, more stable, lower cost and easier to use. By abstracting business, data and technology, service capabilities are reused, enterprise-level service capabilities are built, and barriers between business departments within the enterprise are eliminated, adapting to the development strategy of the enterprise, especially the diversification of business of large enterprise groups. Based on the data service platform, unified services are provided for each business, so that the front-end application can be quickly built, solving the problems existing in the above-mentioned prior art.
[0005] To achieve the above object, the present invention is achieved through the following technical solutions:
[0006] A data service platform based on a microservice system, including a gateway, an API service management module, an application access channel module, and a start module;
[0007] The gateway is connected to the registration center, the application access channel module is connected to the registration center, and the application access channel module is connected to the cache strategy module;
[0008] The gateway includes: load balancing module, permission filtering module, service routing module, current limiting and fuse module, and the API service management module is connected to the registration center;
[0009] The API service management module includes: service grouping module, service development module, application management and authorization module, service monitoring module, and service portal module;
[0010] The application access channel module includes: http request access module, application permission control module, service assistant, single table module, custom SQL module, single indicator module, indicator solution module, registration API module, and the application access channel module is connected with the cache strategy module.
[0011] Optionally, the start module connection has a mode, and the mode connection includes single table mode, custom SQL mode, single indicator mode, and solution mode.
[0012] Optionally, using single-table mode includes the following steps:
[0013] First, the data source is obtained, and then the data is processed and input. After the input is processed, it is assembled and input. After the assembled and input data is identified by the paging strategy and cache strategy modules, it is executed, and then the result processing of the data occurs, thus completing the use of the single table mode.
[0014] Optionally, using a custom SQL mode includes the following steps:
[0015] First, the data source is obtained, and then the data is processed and input as parameters, and then the SQL is checked. Then the checked data is identified through the paging strategy and cache strategy modules, and then executed, and then the result processing of the data appears, thereby completing the use of the custom SQL mode.
[0016] Optionally, using the single indicator mode includes the following steps:
[0017] First, the input parameters are processed without type conversion, and then the indicator library is called to obtain indicator information, and then the indicator input parameters are assembled. Then the indicator library is called through the cache strategy module and the indicator and solution preview interface is called, and then the results are processed to complete the use of the single indicator mode.
[0018] Optionally, using the scheme mode includes the following steps:
[0019] First, the input parameters are processed without type conversion, and then the indicator library is called to obtain the solution information, and then the solution input parameters are assembled. Then, the indicator library is called through the cache strategy module and the indicator and solution preview interface is called, and then the results are processed to complete the use of the solution mode.
[0020] Optionally, the cache strategy module is connected to the indicator management module.
[0021] Optionally, the registration center is connected to an indicator solution module, an indicator management module, and a data source management module, and the cache strategy module is connected to an indicator library.
[0022] Optionally, the API service management module is connected to a management data storage.
[0023] Optionally, the service development module is connected to a service executor.
[0024] The embodiments of the present invention have the following beneficial effects:
[0025] An embodiment of the present invention facilitates unified management and publishing by quickly registering existing APIs to a data service platform, and supports one-click publishing of API services to an API gateway. Data services and API gateways can provide data open sharing services that are more secure, stable, lower cost, and easier to use. By abstracting business, data, and technology, service capabilities are reused, enterprise-level service capabilities are built, barriers between business departments within the enterprise are eliminated, and the development strategy of the enterprise, especially the business diversification of large enterprise groups, is adapted. Based on the data service platform, unified services are provided for each business, so that front-end applications can be quickly built.
[0026] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings constituting a part of the present application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0028] Figure 1 is a structural diagram of an embodiment of the present invention;
[0029] Figure 2 The figure is an execution flow chart of an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use.
[0031] In order to keep the following description of the embodiments of the present invention clear and concise, detailed descriptions of well-known functions and well-known components are omitted.
[0032] See also Figure 1-2As shown, in this embodiment, a data service platform based on a microservice system is provided, including: a gateway, an API service management module, an application access channel module, and a start module;
[0033] The gateway is connected to the registration center, the application access channel module is connected to the registration center, and the application access channel module is connected to the cache strategy module;
[0034] The gateway includes: load balancing module, permission filtering module, service routing module, current limiting and fuse module, and the API service management module is connected to the registration center;
[0035] The API service management module includes: service grouping module, service development module, application management and authorization module, service monitoring module, and service portal module;
[0036] The application access channel module includes: http request access module, application permission control module, service assistant, single table module, custom SQL module, single indicator module, indicator solution module, registration API module, and the application access channel module is connected with the cache strategy module.
[0037] The application of one aspect of this embodiment is: when it is necessary to use a data service platform based on a microservice system, first register the data source to create an API, authorize the application, call the API, register the data source, fill in the data source name, connection string, user name and password, support location search by data source name, and edit and delete the data source. Then configure the API in wizard mode to query the data in a single table. The operator types supported by the request parameters include equal, greater than, less than, greater than or equal to, less than or equal to, not equal to and like expressions, and support the selection of sorting parameters. The sorting methods include ascending and descending. Then publish and offline APIs. Only after the release, the API can be authorized and called by the application; if the published API is not bound to an application, the offline operation can also be performed. Then configure the application association API, support the creation of applications on the platform, generate APPkey and APPsecert, and authorize the created application on the details page of the published API. Then provide RestfulAPI and SDK methods to call API. The platform supports RestfulAPI and SDK methods to call API. Then, API call statistics, the platform has a service overview function, including quantity statistics. The quantity covers the number of published APIs, the number of API calls, the number of API calls, and the number of successful API calls.
[0038] By quickly registering existing APIs to the data service platform, it is convenient to carry out unified management and publishing, and supports one-click publishing of API services to the API gateway. Data services and API gateways can provide data open sharing services that are more secure, stable, lower cost, and easier to use. By abstracting business, data, and technology, service capabilities are reused, enterprise-level service capabilities are built, barriers between business departments within the enterprise are eliminated, and the development strategy of diversified business of enterprises, especially large enterprise groups, is adapted. Based on the data service platform, unified services are provided for each business, so that front-end applications can be quickly built.
[0039] Specific: The gateway is GateWay.
[0040] The start module of this embodiment is connected with a mode, and the mode connection includes a single table mode, a custom SQL mode, a single indicator mode, and a solution mode.
[0041] This embodiment uses the single table mode including the following steps:
[0042] First, the data source is obtained, and then the data is processed and input. After the input is processed, it is assembled and input. After the assembled and input data is identified by the paging strategy and cache strategy modules, it is executed, and then the result processing of the data occurs, thus completing the use of the single table mode.
[0043] The use of the custom SQL mode in this embodiment includes the following steps:
[0044] First, the data source is obtained, and then the data is processed and input as parameters, and then the SQL is checked. Then the checked data is identified through the paging strategy and cache strategy modules, and then executed, and then the result processing of the data appears, thereby completing the use of the custom SQL mode.
[0045] The single indicator mode of this embodiment includes the following steps:
[0046] First, the input parameters are processed without type conversion, and then the indicator library is called to obtain indicator information, and then the indicator input parameters are assembled. Then the indicator library is called through the cache strategy module and the indicator and solution preview interface is called, and then the results are processed to complete the use of the single indicator mode.
[0047] The use scheme mode of this embodiment includes the following steps:
[0048] First, the input parameters are processed without type conversion, and then the indicator library is called to obtain the solution information, and then the solution input parameters are assembled. Then, the indicator library is called through the cache strategy module and the indicator and solution preview interface is called, and then the results are processed to complete the use of the solution mode.
[0049] The cache strategy module of this embodiment is connected to the indicator management module. The data service platform can quickly build API services according to classification to solve the problem that different personnel can use API services quickly and flexibly. The data service platform can automatically configure API services according to the single indicator mode (indicator solution module mode).
[0050] The registration center of this embodiment is connected to the indicator solution module, the indicator management module, and the data source management module, and the cache strategy module is connected to the indicator library. The process when entering data: the user selects one of the single table mode, custom Sql mode, single indicator mode, and indicator solution module mode according to the classification tree to create a new API service. According to the API classification, the user configures the data source, configuration parameters, and configuration data return parameters in the single table mode; in the custom Sql mode, select the data source, configure the execution Sql, and view the configuration parameters and return parameter list. In single indicator mode (indicator solution module mode), select the indicator (indicator solution module), and configure the input and output parameter list. Configure the input parameter value, preview the data and save the API service.
[0051] The API service management module of this embodiment is connected to the management data storage.
[0052] The service development module of this embodiment is connected to the service executor.
[0053] The above-mentioned embodiments may be combined with each other.
[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.
[0055] In the description of the present invention, it is necessary to understand that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, perpendicular, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings. They are only for the convenience of describing the present invention and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the devices or elements referred to must have a specific direction or be constructed and operated in a specific direction. Therefore, they cannot be understood as limiting the scope of protection of the present invention. The directional words "inside and outside" refer to the inside and outside relative to the contours of each component itself.
Claims
1. A data service platform based on a microservice system. It is characterized in that include: Gateway, API service management module, application access channel module, start module; The gateway is connected to the registration center, the application access channel module is connected to the registration center, and the application access channel module is connected to the cache strategy module; The gateway includes: load balancing module, permission filtering module, service routing module, current limiting and fuse module, and the API service management module is connected to the registration center; The API service management module includes: service grouping module, service development module, application management and authorization module, service monitoring module, and service portal module; The application access channel module includes: http request access module, application permission control module, service assistant, single table module, custom SQL module, single indicator module, indicator scheme module, registration API module, and the application access channel module is connected with the cache strategy module; The start module connection has modes, and the mode connection has single table mode, custom SQL mode, single indicator mode, and solution mode; The steps to use the scenario mode are as follows: First, the input parameters are processed without type conversion, and then the indicator library is called to obtain the solution information, and then the solution input parameters are assembled. Then, the indicator library is called through the cache strategy module and the indicator and solution preview interface is called, and then the result is processed to complete the use of the solution mode. The registration center is connected to the indicator solution module, indicator management module, and data source management module, and the cache strategy module is connected to the indicator library; The cache strategy module is connected to the indicator management module. The data service platform can quickly build API services according to classification, so that different personnel can use API services quickly and flexibly. The data service platform can automatically configure API services according to the single indicator mode. The registration center is connected to the indicator solution module, indicator management module, and data source management module. The cache strategy module is connected to the indicator library. The process for entering data is as follows: users select single-table mode, custom Sql mode, single indicator mode, and indicator solution module mode according to the classification tree to create a new API service. Users classify APIs according to the API. In single-table mode, they configure data sources, parameters, and data return parameters. In custom Sql mode, they select data sources, configure execution Sql, view configuration parameters and return parameter lists, and in single indicator mode, select indicators, configure input and output parameter lists, configure input parameter values, and preview data to save API services.
2. A data service platform based on a microservice system as claimed in claim 1, It is characterized in that The steps to use the single table mode are as follows: First, the data source is obtained, and then the data is processed and input. After the input is processed, it is assembled and input. After the assembled and input data is identified by the paging strategy and cache strategy modules, it is executed, and then the result processing of the data occurs, thus completing the use of the single table mode.
3. A data service platform based on a microservice system as claimed in claim 2, It is characterized in that Using custom SQL mode includes the following steps: First, the data source is obtained, and then the data is processed and input as parameters, and then the SQL is checked. Then the checked data is identified through the paging strategy and cache strategy modules, and then executed, and then the result processing of the data appears, thereby completing the use of the custom SQL mode.
4. A data service platform based on a microservice system as claimed in claim 3, It is characterized in that The steps to use the single indicator mode are as follows: First, the input parameters are processed without type conversion, and then the indicator library is called to obtain indicator information, and then the indicator input parameters are assembled. Then the indicator library is called through the cache strategy module and the indicator and solution preview interface is called, and then the results are processed to complete the use of the single indicator mode.
5. A data service platform based on a microservice system as claimed in claim 1, It is characterized in that The API service management module is connected to the management data storage.
6. A data service platform based on a microservice system as claimed in claim 5, It is characterized in that The service development module is connected to the service executor.
