CN113014626B - Data service management method and device, storage medium and electronic device - Google Patents

Data service management method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113014626B
CN113014626B CN202110179404.1A CN202110179404A CN113014626B CN 113014626 B CN113014626 B CN 113014626B CN 202110179404 A CN202110179404 A CN 202110179404A CN 113014626 B CN113014626 B CN 113014626B
Authority
CN
China
Prior art keywords
service
target
data
name
data services
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110179404.1A
Other languages
Chinese (zh)
Other versions
CN113014626A (en
Inventor
周伟诚
蒋一新
郑佰云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hujin Xinrong Technology Co ltd
Original Assignee
Beijing Hujin Xinrong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Hujin Xinrong Technology Co ltd filed Critical Beijing Hujin Xinrong Technology Co ltd
Priority to CN202110179404.1A priority Critical patent/CN113014626B/en
Publication of CN113014626A publication Critical patent/CN113014626A/en
Application granted granted Critical
Publication of CN113014626B publication Critical patent/CN113014626B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a management method and a device of data service, a storage medium and an electronic device, wherein the method comprises the following steps: the method comprises the steps of obtaining a plurality of data services, and converting a target structure of data of each data service in the plurality of data services to obtain a plurality of target structures corresponding to the plurality of data services, wherein the target structures are used for indicating a cache strategy corresponding to the data services and a service executor corresponding to the data services; performing service registration on each target structure in the plurality of target structures to determine a plurality of service providers; receiving a call request, searching a target service provider in a plurality of service providers according to service requirements in the call request, and calling the target service provider to perform target service, namely performing unified type target structure conversion and service registration through data service, thereby solving the problems that different data services cannot be unified and integrated, and various different sources can not be managed in the related technology.

Description

Data service management method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for managing a data service, a storage medium, and an electronic apparatus.
Background
Modern internet finance is rapidly developing, but the risk hidden behind it is also becoming more severe. In this context, it is very important to perform risk assessment using internet data. Unlike traditional banks that utilize certificate certificates to perform risk assessment on lenders, internet finance can utilize multi-dimensional online data to perform risk assessment on lenders. However, in the process of referring to multidimensional data, the access modes of data sources are not only various, but also vary in performance quality.
Aiming at the problems that different data services cannot be unified and integrated, various different sources cannot be managed and the like in the related technology, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a data service management method and device, a storage medium and an electronic device, which are used for at least solving the problems that different data services cannot be unified and integrated, various different sources cannot be managed and the like in the related technologies.
According to an aspect of an embodiment of the present invention, there is provided a method for managing a data service, including: the method comprises the steps of obtaining a plurality of data services, and converting a target structure of data of each data service in the plurality of data services to obtain a plurality of target structures corresponding to the plurality of data services, wherein the target structures are used for indicating a cache strategy corresponding to the data services and a service executor corresponding to the data services; performing service registration on each target structure in the plurality of target structures to determine a plurality of service providers; receiving a calling request, searching a target service provider in the plurality of service providers according to the service requirement in the calling request, and calling the target service provider to carry out target service.
In an exemplary embodiment, registering the service with each of the plurality of target structures to determine a plurality of service providers comprises: acquiring a preset name list, wherein the name list is used for indicating a service name and an operation name corresponding to a data service; determining a target name for each target structure of the plurality of target structures that matches from the name list, wherein the target name comprises: a service name and an operation name; and performing service registration on the target structure through the target name to determine a plurality of service providers.
In an exemplary embodiment, after the target structure is service registered by the target name to determine a plurality of service providers, the method further comprises: configuring a uniform invocation request with a parameter format for the plurality of service providers, wherein the parameter format at least comprises the following contents: target name, request parameters.
In an exemplary embodiment, after performing service registration on each of the plurality of target structures to determine a plurality of service providers, the method further comprises: obtaining a plurality of usage information of the plurality of service providers, wherein the usage information comprises at least one of: data properties of the service provider, usage scenarios of the service provider; and determining a target caching strategy of each service provider according to the use information.
In an exemplary embodiment, after performing service registration on each of the plurality of target structures to determine a plurality of service providers, the method further comprises: performing target processing on the request parameters of each service provider in the plurality of service providers, wherein the target processing comprises verifying the validity of the parameters and standardizing the parameters; determining a target function of the data service corresponding to the request parameter; and packaging the target function to obtain a target service executor of the service provider.
In an exemplary embodiment, after receiving a call request, searching a target service provider in the plurality of service providers according to service requirements in the call request, and calling the target service provider for a target service, the method further includes: acquiring a service result of the target service provider for performing target service; performing data analysis on the message corresponding to the service result to obtain an analysis result; determining the service execution condition of the target service provider according to the analysis result, wherein the service execution condition comprises at least one of the following conditions: the state code of the target service provider execution result, the state information of the target service provider execution result and the detailed information of the target service provider execution result.
According to another aspect of the embodiments of the present invention, there is provided a management apparatus for a data service, including: the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a plurality of data services and converting a target structure of data of each data service in the plurality of data services to obtain a plurality of target structures corresponding to the plurality of data services, and the target structures are used for indicating a cache strategy corresponding to the data services and a service executor corresponding to the data services; a registration module, configured to perform service registration on each target structure of the multiple target structures to determine multiple service providers; and the calling module is used for receiving a calling request, searching a target service provider in the plurality of service providers according to the service requirement in the calling request, and calling the target service provider to carry out target service.
In an exemplary embodiment, the registration module is further configured to obtain a preset name list, where the name list is used to indicate a service name and an operation name corresponding to a data service; determining a target name for each target structure of the plurality of target structures that matches from the name list, wherein the target name comprises: a service name and an operation name; and performing service registration on the target structure through the target name to determine a plurality of service providers.
In an exemplary embodiment, the registration module is further configured to configure a call request with a unified parameter format for the plurality of service providers, where the parameter format at least includes the following: target name, request parameters.
In one exemplary embodiment, the apparatus further comprises: a cache module, configured to obtain a plurality of usage information of the plurality of service providers, where the usage information includes at least one of: data properties of the service provider, usage scenarios of the service provider; and determining a target caching strategy of each service provider according to the use information.
In one exemplary embodiment, the apparatus further comprises: the execution module is used for carrying out target processing on the request parameters of each service provider in the plurality of service providers, wherein the target processing comprises verification parameter legality and standardized parameters; determining a target function of the data service corresponding to the request parameter; and packaging the target function to obtain a target service executor of the service provider.
In one exemplary embodiment, the apparatus further comprises: the analysis module is used for acquiring a service result of the target service provider for performing the target service; performing data analysis on the message corresponding to the service result to obtain an analysis result; determining the service execution condition of the target service provider according to the analysis result, wherein the service execution condition comprises at least one of the following conditions: the state code of the target service provider execution result, the state information of the target service provider execution result and the detailed information of the target service provider execution result.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-mentioned management method of data services when running.
According to another aspect of the embodiments of the present invention, there is provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for managing data services through the computer program.
In the embodiment of the invention, a plurality of data services are obtained, and each data service in the plurality of data services is subjected to data target structure conversion to obtain a plurality of target structures corresponding to the plurality of data services, wherein the target structures are used for indicating a cache strategy corresponding to the data service and a service executor corresponding to the data service; performing service registration on each target structure in the plurality of target structures to determine a plurality of service providers; receiving a calling request, searching a target service provider in a plurality of service providers according to service requirements in the calling request, and calling the target service provider to perform target service, namely performing unified type target structure conversion and service registration through data service, so that the problems that different data services cannot be unified and integrated, multiple different sources cannot be managed and the like in the related technology are solved, the data service with consistent form and stable performance is provided to the outside, the integration and management efficiency of the data service is improved, and the performance quality of the data service is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal of a management method of a data service according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of managing data services according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a service provider according to an alternative embodiment of the present invention;
FIG. 4 is a schematic illustration of a call process for an external data service after registration of a data access proxy platform in accordance with an alternative embodiment of the present invention;
FIG. 5 is a schematic diagram of a sample form of a partial data service in accordance with an alternative embodiment of the present invention;
FIG. 6 is a schematic illustration of performance data for a portion of a service for a practical application in accordance with an alternative embodiment of the present invention;
fig. 7 is a block diagram of a structure of a management apparatus of a data service according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a computer terminal, a database or a similar operation device. Taking the example of running on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of a data service management method according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the management method of the data service in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 can further include memory located remotely from the processor 102, which can be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In this embodiment, a method for managing a data service is provided, and fig. 2 is a flowchart of a method for managing a data service according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, acquiring a plurality of data services, and converting a target structure of data of each data service in the plurality of data services to obtain a plurality of target structures corresponding to the plurality of data services, wherein the target structures are used for indicating a cache policy corresponding to the data service and a service executor corresponding to the data service;
step S204, performing service registration on each target structure in the plurality of target structures to determine a plurality of service providers;
step S206, receiving a call request, searching a target service provider in the plurality of service providers according to the service requirement in the call request, and calling the target service provider to perform target service.
Through the steps, a plurality of data services are obtained, and each data service in the plurality of data services is subjected to data target structure conversion to obtain a plurality of target structures corresponding to the plurality of data services, wherein the target structures are used for indicating a cache strategy corresponding to the data service and a service executor corresponding to the data service; performing service registration on each target structure in the plurality of target structures to determine a plurality of service providers; receiving a calling request, searching a target service provider in a plurality of service providers according to service requirements in the calling request, and calling the target service provider to perform target service, namely performing unified type target structure conversion and service registration through data service, so that the problems that different data services cannot be unified and integrated, multiple different sources cannot be managed and the like in the related technology are solved, the data service with consistent form and stable performance is provided to the outside, the integration and management efficiency of the data service is improved, and the performance quality of the data service is improved.
In an exemplary embodiment, registering the services for each of the plurality of target structures to determine a plurality of service providers comprises: acquiring a preset name list, wherein the name list is used for indicating a service name and an operation name corresponding to a data service; determining a target name for each target structure of the plurality of target structures that matches from the name list, wherein the target name comprises: a service name and an operation name; and performing service registration on the target structure through the target name to determine a plurality of service providers.
For example, different foreign party data services (corresponding to data services in the embodiment) are distinguished by a service name ServiceName and an operation name OperationName. When each foreign data service is accessed into the data service management platform and is converted into a target structure, a service name and an operation name corresponding to the function type of the corresponding target structure of the foreign data service are searched from a name list preset in the data service management platform according to the function type of the target structure, then a target name containing the corresponding service name ServiceName and operation name is appointed for the target structure, service registration is carried out according to the determined target name, unification of request parameters of different foreign data services is realized by setting parameter params, service registration is carried out on the target structure through the target name, and a plurality of service providers in a unified service form are determined.
In an exemplary embodiment, after performing service registration on the target structure by the target name to determine a plurality of service providers, the method further comprises: configuring a call request with a uniform parameter format for the plurality of service providers, wherein the parameter format at least comprises the following contents: target name, request parameters. It can be understood that, since the service forms of the plurality of service providers are unified, in order to facilitate quick searching of the service provider corresponding to the data service required during service invocation, and further to achieve determination of the target service provider among the plurality of service providers, the invocation request with unified parameter format is configured according to the target name and the request parameter of each service provider.
In an exemplary embodiment, after performing service registration on each of the plurality of target structures to determine a plurality of service providers, the method further comprises: obtaining a plurality of usage information of the plurality of service providers, wherein the usage information comprises at least one of: data properties of the service provider, usage scenarios of the service provider; and determining a target caching strategy of each service provider according to the use information.
For example, different foreign party data service data has different properties and usage scenarios, such as the identity information of the client changes less frequently and can be cached for a longer time. And the order information of the customer has high change frequency and can only be cached for a short time. Therefore, the structure of the cache strategy can uniformly manage foreign party data services with different cache characteristics, and the service access performance is optimized and improved on the whole.
In an exemplary embodiment, after performing service registration for each of the plurality of target structures to determine a plurality of service providers, the method further comprises: performing target processing on the request parameters of each service provider in the plurality of service providers, wherein the target processing comprises verifying the validity and standardization parameters of the parameters; determining a target function of the data service corresponding to the request parameter; and packaging the target function to obtain a target service executor of the service provider. I.e., a service executor (remoteinvoke) is the encapsulation of the calling function for an external data service. The service executor generally consists of 3 parts, and firstly processes request parameters, including verifying the validity of the parameters and standardizing the parameters. The second is to invoke a specific function of the external party data service. And finally, the returned result is processed and packaged, the service calling result is ensured to be returned in a uniform format, and the generated calling result and the service result can be returned to the data service management platform in the uniform format after the data service is carried out by the target service executor.
In an exemplary embodiment, after receiving a call request, searching a target service provider in the plurality of service providers according to service requirements in the call request, and calling the target service provider for a target service, the method further includes: acquiring a service result of the target service provider for performing target service; performing data analysis on the message corresponding to the service result to obtain an analysis result; determining the service execution condition of the target service provider according to the analysis result, wherein the service execution condition comprises at least one of the following conditions: the state code of the target service provider execution result, the state information of the target service provider execution result and the detailed information of the target service provider execution result.
That is to say, after the target service provider is successfully called to perform the data service, in order to determine the result of the data service, since the service result is the same uploaded message data after the target service executor corresponding to the target service provider performs the target data service, the service result needs to be analyzed, and further, by analyzing the message data corresponding to the service result, the service execution situation of the target service provider can be quickly known.
In order to better understand the technical solutions of the embodiments and the alternative embodiments of the present invention, the following explains the flow of the above-mentioned data service management method with reference to an example, but is not limited to the technical solutions of the embodiments of the present invention.
The optional embodiment of the present invention provides a method for implementing a data access agent platform, which constructs a data access agent platform by uniformly integrating external data services accessed by a wind control service, so as to achieve the effects of uniformly integrating and managing data of multiple different sources and providing data services with consistent form and stable performance to the outside, and specifically, the method mainly comprises the following steps:
step S302, providing an extensible foreign party data service access structure, and uniformly abstracting various foreign party data services into a structure of a service provider (ServiceProvider). Each service provider (ServiceProcvider) has 2 structures of a cache policy (cachestream) and a service executor (remoteexplorer), and the structural diagram of the service provider is shown in fig. 3.
The service provider 32 (ServiceProvider) shields the difference of the foreign party data services of different communication protocols so that the foreign party data services of different forms can be accessed in a uniform manner.
The structure of the caching policy 34 (cachestream) is used to cache the results of the invocation of the external data service. Because the nature and the use scenes of different foreign party data service data are different, for example, the identity information of the client is changed less frequently and can be cached for a longer time. The order information of the customer has high change frequency and can only be cached for a short time. Therefore, the structure of the cache strategy can uniformly manage foreign data services with different cache characteristics, and optimize and improve the service access performance on the whole.
The service executor 36 (remoteexplorer) is an encapsulation of the calling function for the external data service. The service executor generally consists of 3 parts, and firstly processes request parameters, including verifying the validity of the parameters and standardizing the parameters. The second is to invoke a specific function of the external party data service. And finally, processing and packaging the returned result to ensure that the service calling result is returned in a uniform format.
Step S304, a unified service calling process, where the calling requests of different foreign party data services are unified into a consistent parameter format, including a service name (ServiceName), an operation name (OperationName), and a request parameter (params).
Different foreign data services are distinguished by ServiceName and OperationName. When each foreign party data service is accessed, corresponding ServiceName and OperationName are assigned for the foreign party data service to register, and params is used for unifying request parameters of different foreign party data services.
After the data access agent platform registers, different foreign party data services are uniformly packaged by the platform as service providers (serviceproviders). When a service request is received, the platform searches for a registration service according to a service name (ServiceName) and an operation name (OperationName) in request parameters, then calls a specified service through a unified process, and finally packages a return result into a unified message for returning. The calling process of the foreign party data service after the data access proxy platform is registered is shown in fig. 4.
Optionally, different foreign data services are integrated into a consistent request and return format, a unified service name (ServiceName) and operation name (OperationName) are used to identify the specified operation of each service, and a params parameter is used to specify the request parameter. The returned result is also encapsulated in a unified form, including a status code (rtnCode), status information (message) and detailed information (result), as shown in fig. 5, which is a schematic diagram of a form sample of a part of data services according to an alternative embodiment of the present invention.
It should be noted that, the time consumption of the accessed foreign party data service P99 can be basically controlled within 200ms through mechanisms such as unified cache management and fusing mechanism, and the overall high efficiency and stability of the data access proxy platform are ensured. Fig. 6 is a diagram illustrating performance data of a part of a service in practical use.
Through the embodiment, the implementation scheme of the data access agent platform is provided, so that the data of various different sources can be uniformly integrated and managed, the effect of providing data services with consistent forms and stable performance is achieved, and the high-efficiency application and management of the data services are realized.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a management apparatus for data services is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of a structure of a management apparatus of a data service according to an embodiment of the present invention, as shown in fig. 7, the apparatus including:
an obtaining module 72, configured to obtain a plurality of data services, and perform data target structure conversion on each data service in the plurality of data services to obtain a plurality of target structures corresponding to the plurality of data services, where the target structures are used to indicate a cache policy corresponding to the data service and a service executor corresponding to the data service;
a registration module 74, configured to perform service registration on each of the plurality of target structures to determine a plurality of service providers;
and a calling module 76, configured to receive a calling request, search for a target service provider in the multiple service providers according to a service requirement in the calling request, and call the target service provider to perform a target service.
According to the technical scheme, a plurality of data services are obtained, and each data service in the plurality of data services is subjected to data target structure conversion to obtain a plurality of target structures corresponding to the plurality of data services, wherein the target structures are used for indicating a cache strategy corresponding to the data service and a service executor corresponding to the data service; performing service registration on each target structure in the plurality of target structures to determine a plurality of service providers; receiving a calling request, searching a target service provider in a plurality of service providers according to service requirements in the calling request, and calling the target service provider to perform target service, namely performing unified type target structure conversion and service registration through data service, so that the problems that different data services cannot be unified and integrated, multiple different sources cannot be managed and the like in the related technology are solved, the data service with consistent form and stable performance is provided to the outside, the integration and management efficiency of the data service is improved, and the performance quality of the data service is improved.
In an exemplary embodiment, the registration module is further configured to obtain a preset name list, where the name list is used to indicate a service name and an operation name corresponding to a data service; determining a target name for each target structure of the plurality of target structures that matches from the name list, wherein the target name comprises: a service name and an operation name; and performing service registration on the target structure through the target name to determine a plurality of service providers. For example, different foreign party data services (corresponding to data services in the embodiment) are distinguished by a service name ServiceName and an operation name OperationName. When each foreign data service is switched into a target structure from an access data service management platform, searching a service name and an operation name corresponding to the function type of a corresponding target structure of the foreign data service from a name list preset in the data service management platform according to the function type of the target structure, further appointing a target name containing the corresponding service name ServiceName and operation name for the target structure, performing service registration according to the determined target name, realizing unification of request parameters of different foreign data services by setting a parameter params, realizing service registration of the target structure through the target name, and determining a plurality of service providers in a unified service form.
In an exemplary embodiment, the registration module is further configured to configure a call request with a unified parameter format for the plurality of service providers, where the parameter format at least includes the following: target name, request parameters. It can be understood that, since the service forms of the plurality of service providers are unified, in order to facilitate quick searching of the service provider corresponding to the data service required during service invocation, and further to achieve determination of the target service provider among the plurality of service providers, the invocation request with unified parameter format is configured according to the target name and the request parameter of each service provider.
In one exemplary embodiment, the apparatus further comprises: a cache module, configured to obtain a plurality of usage information of the plurality of service providers, where the usage information includes at least one of: data properties of the service provider, usage scenarios of the service provider; and determining a target caching strategy of each service provider according to the use information. For example, different foreign party data service data has different properties and usage scenarios, such as the identity information of the client changes less frequently and can be cached for a longer time. And the order information of the customer has high change frequency and can only be cached for a short time. Therefore, the structure of the cache strategy can uniformly manage foreign party data services with different cache characteristics, and the service access performance is optimized and improved on the whole.
In one exemplary embodiment, the apparatus further comprises: the execution module is used for carrying out target processing on the request parameters of each service provider in the plurality of service providers, wherein the target processing comprises verification parameter legality and standardized parameters; determining a target function of the data service corresponding to the request parameter; and packaging the target function to obtain a target service executor of the service provider. I.e., a service executor (remoteinvoke) is the encapsulation of the calling function for an external data service. The service executor generally consists of 3 parts, and firstly processes request parameters, including verifying the validity of the parameters and standardizing the parameters. The second is to invoke a specific function of the external party data service. And finally, processing and packaging the returned result to ensure that the service calling result is returned in a uniform format, so that the generated calling result and the service result can be returned to the data service management platform in the uniform format after the data service is performed by the target service executor.
In one exemplary embodiment, the apparatus further comprises: the analysis module is used for acquiring a service result of the target service provider for performing the target service; performing data analysis on the message corresponding to the service result to obtain an analysis result; determining the service execution condition of the target service provider according to the analysis result, wherein the service execution condition comprises at least one of the following conditions: the state code of the target service provider execution result, the state information of the target service provider execution result and the detailed information of the target service provider execution result.
That is, after the target service provider is successfully called to perform the data service, in order to determine the result of the data service, since the service result is the same uploaded message data after the target service executor corresponding to the target service provider performs the target data service, the service result needs to be analyzed to be implemented, and further, by analyzing the message data corresponding to the service result, the service execution situation of the target service provider can be quickly known.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
the method comprises the steps of S1, obtaining a plurality of data services, and converting a target structure of data of each data service in the plurality of data services to obtain a plurality of target structures corresponding to the plurality of data services, wherein the target structures are used for indicating a cache strategy corresponding to the data services and a service executor corresponding to the data services;
s2, performing service registration on each target structure in the plurality of target structures to determine a plurality of service providers;
and S3, receiving a calling request, searching a target service provider in the plurality of service providers according to the service requirement in the calling request, and calling the target service provider to carry out target service.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to execute the following steps by a computer program:
the method comprises the steps of S1, obtaining a plurality of data services, and converting a target structure of data of each data service in the plurality of data services to obtain a plurality of target structures corresponding to the plurality of data services, wherein the target structures are used for indicating a cache strategy corresponding to the data services and a service executor corresponding to the data services;
s2, performing service registration on each target structure in the plurality of target structures to determine a plurality of service providers;
and S3, receiving a calling request, searching a target service provider in the plurality of service providers according to the service requirement in the calling request, and calling the target service provider to carry out target service.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented in a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and they may be implemented in program code that is executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed in an order different from that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps therein may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for managing data services, comprising:
the method comprises the steps of obtaining a plurality of data services, and converting a target structure of data of each data service in the plurality of data services to obtain a plurality of target structures corresponding to the plurality of data services, wherein the target structures are used for indicating a cache strategy corresponding to the data services and a service executor corresponding to the data services;
performing service registration on each target structure in the plurality of target structures to determine a plurality of service providers;
receiving a calling request, searching a target service provider in the plurality of service providers according to service requirements in the calling request, and calling the target service provider to carry out target service;
wherein registering the service for each of the plurality of target structures to determine a plurality of service providers comprises:
acquiring a preset name list, wherein the name list is used for indicating a service name and an operation name corresponding to a data service;
determining a target name for each of the plurality of target structures that matches from the name list, wherein the target name comprises: a service name and an operation name;
and performing service registration on the target structure through the target name to determine a plurality of service providers.
2. The method of claim 1, wherein after performing a service registration on the target structure by the target name to determine a plurality of service providers, the method further comprises:
configuring a uniform invocation request with a parameter format for the plurality of service providers, wherein the parameter format at least comprises the following contents: target name, request parameters.
3. The method of claim 1, wherein after performing a service registration for each of the plurality of target structures to determine a plurality of service providers, the method further comprises:
obtaining a plurality of usage information of the plurality of service providers, wherein the usage information comprises at least one of: data properties of the service provider, usage scenarios of the service provider;
and determining a target caching strategy of each service provider according to the use information.
4. The method of claim 1, wherein after performing a service registration for each of the plurality of target structures to determine a plurality of service providers, the method further comprises:
performing target processing on the request parameters of each service provider in the plurality of service providers, wherein the target processing comprises verifying the validity of the parameters and standardizing the parameters;
determining a target function of the data service corresponding to the request parameter;
and packaging the target function to obtain a target service executor of the service provider.
5. The method of claim 1, wherein after receiving a call request, searching for a target service provider among the plurality of service providers according to service requirements in the call request, and calling the target service provider for a target service, the method further comprises:
acquiring a service result of the target service provider for performing target service;
performing data analysis on the message corresponding to the service result to obtain an analysis result;
determining the service execution condition of the target service provider according to the analysis result, wherein the service execution condition comprises at least one of the following conditions: the state code of the target service provider execution result, the state information of the target service provider execution result and the detailed information of the target service provider execution result.
6. An apparatus for managing data services, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a plurality of data services and converting a target structure of data of each data service in the plurality of data services to obtain a plurality of target structures corresponding to the plurality of data services, and the target structures are used for indicating a cache strategy corresponding to the data services and a service executor corresponding to the data services;
a registration module, configured to perform service registration on each target structure of the multiple target structures to determine multiple service providers;
the calling module is used for receiving a calling request, searching a target service provider in the service providers according to the service requirement in the calling request, and calling the target service provider to carry out target service;
the registration module is further configured to obtain a preset name list, where the name list is used to indicate a service name and an operation name corresponding to the data service; determining a target name for each target structure of the plurality of target structures that matches from the name list, wherein the target name comprises: a service name and an operation name; and performing service registration on the target structure through the target name to determine a plurality of service providers.
7. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 5.
8. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 5 by means of the computer program.
CN202110179404.1A 2021-02-09 2021-02-09 Data service management method and device, storage medium and electronic device Active CN113014626B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110179404.1A CN113014626B (en) 2021-02-09 2021-02-09 Data service management method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110179404.1A CN113014626B (en) 2021-02-09 2021-02-09 Data service management method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113014626A CN113014626A (en) 2021-06-22
CN113014626B true CN113014626B (en) 2023-04-18

Family

ID=76384611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110179404.1A Active CN113014626B (en) 2021-02-09 2021-02-09 Data service management method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113014626B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115988087B (en) * 2023-03-17 2023-08-01 北京百度网讯科技有限公司 Service calling method and device based on bus, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188204A (en) * 2011-12-27 2013-07-03 腾讯科技(深圳)有限公司 Service control method and system in open platform
CN107608985A (en) * 2016-07-12 2018-01-19 深圳市远行科技股份有限公司 Big data service integration method, apparatus and system
WO2019132433A1 (en) * 2017-12-27 2019-07-04 주식회사팍스에스앤티 Terminal, service method and system for integrated identifier and user interface
CN110324423A (en) * 2019-07-08 2019-10-11 深圳市网心科技有限公司 A kind of service registration discovery method, system, equipment and medium
CN110990047A (en) * 2019-11-06 2020-04-10 北京云思畅想科技有限公司 Fusion method and device for multiple microservice architectures
CN112068850A (en) * 2020-09-08 2020-12-11 北京金山云网络技术有限公司 Method and device for creating service product instance and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW594510B (en) * 2003-11-05 2004-06-21 Ind Tech Res Inst Method and system of automatic service composition

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188204A (en) * 2011-12-27 2013-07-03 腾讯科技(深圳)有限公司 Service control method and system in open platform
CN107608985A (en) * 2016-07-12 2018-01-19 深圳市远行科技股份有限公司 Big data service integration method, apparatus and system
WO2019132433A1 (en) * 2017-12-27 2019-07-04 주식회사팍스에스앤티 Terminal, service method and system for integrated identifier and user interface
CN110324423A (en) * 2019-07-08 2019-10-11 深圳市网心科技有限公司 A kind of service registration discovery method, system, equipment and medium
CN110990047A (en) * 2019-11-06 2020-04-10 北京云思畅想科技有限公司 Fusion method and device for multiple microservice architectures
CN112068850A (en) * 2020-09-08 2020-12-11 北京金山云网络技术有限公司 Method and device for creating service product instance and electronic equipment

Also Published As

Publication number Publication date
CN113014626A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
US11064325B2 (en) Method of discovering services provided by a network repository function
CN108965381A (en) Implementation of load balancing, device, computer equipment and medium based on Nginx
CN110413418B (en) Cache synchronization device and method, cache synchronization system and electronic equipment
CN110661638B (en) Communication method and device
CN113010378B (en) Log processing method and device of microservice module, storage medium and electronic device
CN113746651B (en) Method for accessing network slice, electronic equipment and storage medium
CN113064685A (en) H5 page loading method and device
CN112491948A (en) Non-invasive monomer application micro-service method and device and computer equipment
CN113014626B (en) Data service management method and device, storage medium and electronic device
CN111367685B (en) Interface calling method and device, computer equipment and storage medium
CN115114044A (en) Message pushing method, device, equipment and medium
CN110457132B (en) Method and device for creating functional object and terminal equipment
CN112565334A (en) Access method and device of Internet of things equipment and MQTT gateway
CN112235352B (en) Service dependency carding method and device
CN111356182A (en) Resource scheduling and processing method and device
CN111385110B (en) Network management method and device
CN114090074A (en) Method and device for configuring operating environment, storage medium and electronic device
US11799982B2 (en) Message push method, apparatus, device and medium
US20090183172A1 (en) Middleware Bridge System And Method
CN114095502B (en) Service processing method, system, device and medium
CN114615057B (en) Gateway equipment for distributing access data based on alternative user identity module
CN112506580A (en) Data fusion method and device, storage medium and electronic device
CN116800848A (en) Service calling method, device and client
CN116887298A (en) Analytical data acquisition method, apparatus, device, storage medium, and program product
CN113434552A (en) Data request processing method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant