Data service calling method, system and equipment and storage medium

By calling the API interface in a unified manner to obtain the number of times the data service has been used, determine the user's calling qualifications and call the data service, it solves the problem of complicated data calling methods and inability to monitor in real time in the existing technology, and realizes real-time monitoring and unified management of data services. Improved user experience.

CN118568758APending Publication Date: 2024-08-30CAOS IOT TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311147969.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-06
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Due to the complicated calling methods, the existing data calling methods cannot monitor the calling of data services in real time, and cannot conduct unified management based on the call volume of data services, which affects the user experience.

Method used

Obtain the usage number of data services called by users through a unified API interface, determine the user's calling qualifications based on the number of calls, and call the corresponding data services by calling APIs to achieve real-time monitoring and unified management of data services.

Benefits of technology

It enables the business system to call required data services through the same calling method, and at the same time, it can conduct real-time monitoring and unified management of the calls to data services, improving user experience and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568758A
    Figure CN118568758A
Patent Text Reader

Abstract

The invention provides a data service calling method, system and device and a storage medium, and relates to the technical field of data synchronization. According to the data service calling method, the use frequency of the data service called by a user is obtained according to a unified calling API interface, and when it is determined that the user has calling qualification according to the calling frequency, the corresponding data service is called by calling the API. By means of the mode, the business system calls the needed data service through the same calling mode, meanwhile, calling of the data service can be monitored in real time, the method and device can be applied to industrial internet data service calling, the needed data service is called through the same calling mode, and calling of the data service is monitored in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data synchronization technology, and specifically relates to a data service calling method, system, device and storage medium. Background Art

[0002] With the development of society, the business systems of enterprises continue to increase, resulting in a gradual increase in data calls.

[0003] The existing data calling method is: different calling methods are used according to different data services that the business system needs to call.

[0004] However, as time goes by and business increases, the number of ways to call data increases. Due to the complexity of the calling methods, it is impossible to monitor the calling of data services in real time, nor is it possible to manage them uniformly based on the calling volume of data services. Summary of the invention

[0005] In order to solve the above problems in the prior art, the present application provides a data service calling method, system, device and storage medium.

[0006] In a first aspect, the present application provides a data service calling method, the method comprising:

[0007] When receiving a call application from a user, obtaining a call key according to the call application, wherein the call key has a one-to-one correspondence with the data service available for call;

[0008] According to the calling API, the cumulative number of calls to the data service corresponding to the calling key within a preset time period is obtained, wherein the calling API is a calling interface shared by different data services;

[0009] Determine whether the user is qualified to call based on the accumulated number of calls, and if so, call the data service corresponding to the call key through the call API.

[0010] In a possible implementation, calling the data service associated with the calling key by calling the API includes:

[0011] Parse the calling key to obtain a header key and a tail key; wherein the header key is a key of a preset number of digits, and the tail key is a key after the header key;

[0012] Processing the header key by a first algorithm to obtain a first key value, wherein the first key value is used to indicate the data type to which the data service to be called belongs;

[0013] Processing the tail key by a second algorithm to obtain a second key value, where the second key value is used to indicate a processing module of the data service to be called under the corresponding data type;

[0014] According to the first key value and the second key value, a processing module corresponding to the data service is called through the calling API, wherein the processing module is used to obtain query results in the database.

[0015] In a possible implementation manner, determining whether the user is eligible to make a call according to the accumulated number of calls includes:

[0016] Obtaining user information according to the calling application;

[0017] Obtaining an accessible list according to the data service corresponding to the calling key;

[0018] If the cumulative number of calls is less than the preset number, and the accessible list contains the user information, it is determined that the user is eligible for the call.

[0019] In a possible implementation manner, the call application further includes a query statement, and before calling the data service corresponding to the call key through the call API, the method further includes:

[0020] Determine whether the query result corresponding to the query statement is stored in the data layer, wherein the query result in the data layer is pre-acquired and stored by the processing module;

[0021] If not, it is determined to call the processing module corresponding to the data service through the calling API.

[0022] In a possible implementation manner, before receiving the calling application from the user, the method further includes:

[0023] Generate a call key according to the data type to which each data service belongs and the processing module corresponding to the data service under the data type, wherein the call key includes the head key and the tail key;

[0024] Obtaining a correspondence between the data service and the calling key and storing the correspondence, wherein the stored correspondence is used to obtain the data service corresponding to the calling key;

[0025] An access list of each of the data services is obtained, and a call key corresponding to each of the data services is issued according to the access list.

[0026] In a possible implementation, the method further includes:

[0027] Acquire call information of the calling API according to a preset period, wherein the call information includes at least one of call volume, traffic, and access latency;

[0028] When it is determined according to the calling information of the calling API that the calling API is in a calling overload state, a new calling API is added, wherein the new calling API is a calling interface shared by different data services;

[0029] According to the load balancing algorithm, the calling API and the new calling API are controlled to call the data service.

[0030] In a second aspect, the present application further provides a data service sharing system, the system comprising:

[0031] A query module, used to execute the data service calling method as described in any one of the first aspects;

[0032] A processing layer, the processing layer includes processing modules under different data types, the processing modules are used to process the data in the database according to the call of the API, and output the data processing results to the data layer;

[0033] The data layer is used to store the data processing results and provide query results for the query module.

[0034] In a possible implementation, the different data types include: data development type, data modeling type, and data governance type:

[0035] A data development type processing module is used to analyze and process the data according to the attribute characteristics of the data, and output the data processing results in the form of charts and / or text according to the data analysis results;

[0036] A data modeling type processing module is used to organize and store data according to the hierarchical rules of the pre-stored data warehouse and output the corresponding data processing results;

[0037] The data governance type processing module is used to protect data security, manage data quality issues caused by the work of the data development type processing module and the data modeling type processing module, and output corresponding data processing results.

[0038] In a third aspect, the present application also includes an electronic device, including: at least one processor and a memory, wherein:

[0039] The memory is used to store computer-executable instructions;

[0040] The at least one processor is used to execute the computer-executable instructions stored in the memory, so that the at least one processor executes the data service calling method as described in any one of the first aspects.

[0041] In a fourth aspect, the present application further provides a computer storage medium, wherein the computer storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the data service calling method as described in any of the above items.

[0042] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, can implement the steps of the data service calling method as described in any of the above items.

[0043] The present application provides a data service calling method, system, device and storage medium, which obtains the usage count of the data service called by the user according to a unified calling API interface, and when the user is determined to be eligible for calling according to the calling count, calls the corresponding data service by calling the API. In the above manner, the business system calls the required data service through the same calling method, and can monitor the calling of the data service in real time. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0045] Figure 1 A schematic diagram of a data service calling method provided in an embodiment of the present application Figure 1 ;

[0046] Figure 2 A schematic diagram of a data service calling method provided in an embodiment of the present application Figure 2 ;

[0047] Figure 3 A schematic diagram of a data service calling method provided in an embodiment of the present application Figure 3 ;

[0048] Figure 4 A schematic diagram of the structure of a data service sharing system provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0050] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0052] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention 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 invention described herein can be implemented in sequences other than those illustrated or described herein, for example.

[0053] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0054] As enterprises continue to develop and their business systems continue to increase, the number of data service calls within the enterprise and between the enterprise and the outside world continues to increase. The existing calling method is to call the required data service through different calling methods when users call different data services.

[0055] However, as the enterprise business system develops, data services continue to increase, and the corresponding calling methods also increase. Due to the complexity of the calling methods, it is impossible to monitor the calling of data services in real time, nor is it possible to manage them uniformly based on the calling volume of data services.

[0056] This application provides a data service calling method, which obtains the usage count of the data service called by the user according to a unified calling API interface, and when the user is determined to be eligible for calling according to the calling count, calls the corresponding data service by calling the API. Through the above method, the business system calls the required data service through the same calling method, and can monitor the calling of the data service in real time.

[0057] Next, the technical solution shown in the present application is described in detail through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.

[0058] Figure 1 A schematic diagram of a data service calling method provided in an embodiment of the present application Figure 1 .like Figure 1 As shown, the method includes:

[0059] S101. When receiving a call application from a user, obtaining a call key according to the call application, wherein the call key has a one-to-one correspondence with a data service available for call.

[0060] In this step, the call key is used to determine the data service that the user needs to apply for. The call key and the data service correspond one to one, that is, the data service to be called can be determined according to the call key.

[0061] Specifically, when a user's call application is received, in order to determine the data service that the user needs to call, a call key contained in the call application is obtained from the user's call application, and then the associated data service is called by calling the API according to the call key.

[0062] S102. Obtain, according to a calling API, the cumulative number of calls to the data service corresponding to the calling key within a preset time period, wherein the calling API is a calling interface shared by different data services.

[0063] In this step, when multiple users call the same or multiple data services by calling the API at the same time, the access volume to the data service is too large, resulting in failure to call the data service by calling the API, thereby reducing the user experience.

[0064] Therefore, in order to protect the user experience, the number of access times in a preset time period is set according to the actual business situation. When a user's access application is received, it is determined whether the call can continue based on the number of calls to the called data service.

[0065] Specifically, after the calling key is obtained according to the received user application, the cumulative number of visits to the data service corresponding to the calling key within the preset time period is obtained according to the calling API, and then it is determined whether the user can continue to call the data service associated with the key by calling the API based on the obtained cumulative number of visits.

[0066] Exemplarily, the preset time period may be 1 day, or may be determined according to business conditions.

[0067] S103: Determine whether the user has calling qualifications according to the accumulated number of calls, and if so, call the data service corresponding to the calling key through the calling API.

[0068] In this step, when the cumulative number of calls to the data service associated with the call key is obtained, it is determined whether the user is eligible for the call based on the cumulative number of calls, that is, whether the user can continue to call the data service associated with the call key by calling the API.

[0069] Specifically, when the cumulative number of calls is less than a preset number, it is determined that the user is eligible for the call and can call the data service corresponding to the call key by calling the API.

[0070] Exemplarily, the cumulative number of calls to the data service corresponding to the call key within the preset time period is 500, and the preset number is 1000. The cumulative number of calls 500 is less than the preset number 1000, and it is determined that the user is eligible for the call.

[0071] It should be noted that, since there is a one-to-one correspondence between the call key and the data service, a mapping table of the call key and the identifier of the data service can be established based on the one-to-one correspondence between the call key and the data service. When it is determined that the user has the call qualification, the key identifier of the call key is obtained, and the corresponding data service identifier is obtained from the mapping table according to the key identifier, and finally the data service associated with the call key is obtained according to the data service identifier.

[0072] Furthermore, for security reasons, the enterprise will give employees device call permissions, that is, according to the employee's rank and the department's business, determine the callable data services, and store the employee's user information in the accessible list of the data service. Therefore, this embodiment also introduces user information to determine whether the user is eligible to call. The specific process is as follows:

[0073] Obtaining user information according to the calling application;

[0074] Obtaining an accessible list according to the data service corresponding to the calling key;

[0075] If the cumulative number of calls is less than the preset number, and the accessible list contains the user information, it is determined that the user is eligible for the call.

[0076] This example does not impose any limitation on user information. For example, the user information may be the IP information in the call application.

[0077] It should be noted that after calling the data service corresponding to the call key through the API call, in order to simplify the subsequent call process, the query results contained in the data service will be stored in the data layer, so that when the subsequent call application contains the same call content, the query results can be directly obtained from the data layer. The specific process is:

[0078] Determine whether the query result corresponding to the query statement is stored in the data layer, wherein the query result in the data layer is pre-acquired and stored by the processing module;

[0079] If not, it is determined to call the processing module corresponding to the data service through the calling API.

[0080] This application provides a data service calling method, which obtains the usage count of the data service called by the user according to a unified calling API interface, and when the user is determined to be eligible for calling according to the calling count, calls the corresponding data service by calling the API. Through the above method, the business system calls the required data service through the same calling method, and can monitor the calling of the data service in real time.

[0081] Figure 2 A schematic diagram of a data service calling method provided in an embodiment of the present application Figure 2 The present application embodiment provides a detailed description of how to generate a call key for a data service and the operation steps associated with calling an API. Figure 2 As shown, the method includes:

[0082] S201. Generate a call key according to a data type to which each data service belongs and a processing module corresponding to the data service under the data type, wherein the call key includes the header key and the tail key.

[0083] In this step, when the enterprise business system is too large, the number of data services that need to be called is large. Therefore, the required data services are classified according to the business system. When different types of data services are called, the query results required by the user are obtained through processing modules of different data types. Therefore, this embodiment also generates a call key corresponding to each data service according to the data type to which the data service belongs.

[0084] Specifically, according to the data type to which each data service belongs and the processing module corresponding to each data service under the data type, the calling key corresponding to the data service is obtained according to the data type and the processing module.

[0085] Furthermore, a header key of the calling key is generated according to the data type to which each data service belongs, and then a tail key of the calling key is generated according to the processing module corresponding to each data service under the data type to which it belongs, and the calling key is composed of the header key and the tail key.

[0086] S202: Obtain and store the correspondence between the data service and the calling key, wherein the stored correspondence is used to obtain the data service corresponding to the calling key.

[0087] In this step, in order to enable the calling API to match the calling key of the calling application to the data service associated with the calling key, the association relationship between the calling key and the data service needs to be stored in the calling API.

[0088] Specifically, after generating the call key corresponding to each data service, the correspondence between the data service and the call key is obtained, and then the correspondence between the data service and the call key is stored in the call API, so that after receiving a call application in the future, the data service associated with the call key can be called through the call API according to the call key in the call application.

[0089] S203: Obtain an access list for each of the data services, and issue a call key corresponding to each of the data services according to the access list.

[0090] In this step, in addition to obtaining and maintaining the correspondence between the data service and the call key, the call key associated with the data service needs to be sent to the corresponding user.

[0091] Specifically, due to the different business scopes of various departments of an enterprise, different business systems can call different data services due to data protection. Therefore, before issuing the call key, it is necessary to obtain the access list of each data service, and then issue the call key associated with the data service according to the access list.

[0092] Furthermore, the call key is generated according to the data type corresponding to the data service and the corresponding processing module under the data type. When calling the data service corresponding to the call key by calling the API, the call key also needs to be decomposed to obtain the data type to which the data service belongs and the processing module of the data service under the data type. The specific process is:

[0093] Parse the calling key to obtain a header key and a tail key; wherein the header key is a key of a preset number of digits, and the tail key is a key after the header key;

[0094] Processing the header key by a first algorithm to obtain a first key value, wherein the first key value is used to indicate the data type to which the data service to be called belongs;

[0095] Processing the tail key by a second algorithm to obtain a second key value, where the second key value is used to indicate a processing module of the data service to be called under the corresponding data type;

[0096] According to the first key value and the second key value, a processing module corresponding to the data service is called through the calling API, wherein the processing module is used to obtain query results in the database.

[0097] It should be noted that this embodiment does not impose any limitation on the first algorithm and the second algorithm, and they can be selected according to actual conditions. Exemplarily, the first algorithm and the second algorithm can be a hash algorithm or a modulo algorithm.

[0098] Exemplarily, the first algorithm and the second algorithm are modulo algorithms, and the calling key is: 12567813, where the head key is 1256, the tail key is 7813, and the number of data types is 10. The first key value obtained by the modulo algorithm according to the head key 1256 is 6, that is, the data service corresponding to the calling key belongs to the sixth type of data type. The number of processing modules under the sixth type of data type is 6, and the second key value obtained by the modulo algorithm according to the tail key 7813 is 1, which means that the data service corresponds to the first processing module under the sixth type of data type.

[0099] The present application provides a data service calling method, which generates a calling key according to the data type to which each data service belongs and the processing module under the data type, and sends the association between the data service and the calling key to the calling API. At the same time, the calling key is sent to the access list of the data service. Through the above method, the calling key associated with the data service can be infinitely expanded, which improves the applicability.

[0100] Figure 3 A schematic diagram of a data service calling method provided in an embodiment of the present application Figure 3 The present application embodiment provides a detailed description of the steps for handling when the number of visits to the API is overloaded. Figure 3 As shown, the method includes:

[0101] S301. Obtain call information of the calling API according to a preset period, wherein the call information includes at least one of call volume, traffic, and access delay.

[0102] In this step, since multiple different data services share the calling API, if the API is accessed too much, it will affect the user's calling experience. Therefore, it is necessary to determine the calling status of the API by calling the API, that is, to determine whether the calling API is overloaded.

[0103] Furthermore, if the API is in an overloaded state at this time, the processing will be reflected in the call volume, traffic and access delay of the API. Therefore, in order to determine whether the data service can continue to be called by calling the API, it can be judged by at least one parameter among the call volume, traffic and access delay.

[0104] Specifically, when a user's call application is received, at least one of the call volume, traffic, and access delay of the API call is obtained, and then the API call status is determined based on the obtained judgment parameters.

[0105] S302: When it is determined, based on the calling information of the calling API, that the calling API is in a calling overload state, a new calling API is added.

[0106] The new calling API is a calling interface shared by different data services.

[0107] In this step, after the API call information is obtained, it is determined whether the API call is in an overload state based on the call information and the parameter threshold corresponding to the call information.

[0108] Exemplarily, the acquired call information is the call volume, the call volume is 5000, and the call volume threshold is 3000. The call volume 5000 is greater than the call volume threshold 3000, and it is determined that the call API is in an overloaded state, and a new call API needs to be added.

[0109] S303: Control the calling API and the new calling API to call data services according to a load balancing algorithm.

[0110] In this step, the new calling API is added to reduce the traffic of other calling APIs. Therefore, after adding the new calling API, it is necessary to first use a load balancing algorithm to balance the traffic of the new calling API and the calling API, so as to maintain the stable state of the calling API.

[0111] Furthermore, in order for the newly created calling API to normally complete the operation of calling the data service, it needs to have the same setting parameters as the calling API, for example, maintaining the correspondence between the data service and the calling key in the new calling API.

[0112] The present application provides a data service calling method. When the calling API is determined to be in a calling overload state according to the calling information of the calling API, a new calling API is added and a load balancing algorithm is used to make the calling API and the new calling API call the data service corresponding to the calling key. In this way, it is avoided that the calling API is overloaded due to the common calling API of multiple data services, thereby affecting the calling experience of the user.

[0113] Figure 4 This is a schematic diagram of the structure of a data service sharing system provided in an embodiment of the present application. Figure 4 As shown, the data service sharing system includes: a query module, a data layer and a processing layer composed of processing modules of different data types, wherein:

[0114] The query module is used to provide a window for the user to input a call application, that is, the user can input a call application in the query module and call the data service associated with the call key by calling the API;

[0115] The processing layer is used to process the data in the required database according to the call of the API and output the required data processing results, that is, the query results of the data service associated with the call key.

[0116] Furthermore, the processing layer includes multiple processing modules of different data types. When a user's call request is received, the processing module under the corresponding data type of the processing layer is controlled to obtain the data required by the user from the database according to the parsing result of the call key, and the obtained data is processed to output the final data processing result.

[0117] The data layer is used to store the data processing results output by the processing layer each time, and provide the query module with directly accessible query results.

[0118] Furthermore, when receiving a user's call application, the query statement in the call application is obtained first, and whether there is a corresponding query result in the data layer is determined according to the query statement. If there is, the corresponding query result can be directly obtained from the data layer through the query module.

[0119] For example, the query statement of the call application is the sales volume of type A air conditioners yesterday, and the data layer contains: the sales volume of type B air conditioners on the day, the sales volume of type A air conditioners yesterday, and the sales volume of type A air conditioners the day before yesterday. The data layer does not contain the query results required in the query statement, so it is necessary to obtain the call key of the call application, and call the associated data service by calling the API based on the call key.

[0120] In a possible implementation, the different data types include: data development type, data modeling type, and data governance type:

[0121] The data development type processing module is used to analyze and process the data according to the attribute characteristics of the data, and output the data processing results in the form of charts and / or text according to the data analysis results. Among them, the attribute characteristics of the data can be determined according to the business system.

[0122] For example, when the enterprise is a retail enterprise, the attribute characteristics of the data may be product type, sales volume, and sales revenue. The data in the database may be processed through a data development type processing module to output sales indicator analysis results, etc.

[0123] The data modeling type processing module is used to organize and store data according to the hierarchical rules of the pre-stored data warehouse and output the corresponding data processing results.

[0124] As time and business systems continue to increase, the amount of data in the database is also increasing. In order to ensure that the data in the database can be used with high performance, high efficiency and high quality, it is a priority to organize and store the data in an orderly manner.

[0125] Specifically, according to the business system, some common middle-layer data can be developed based on the data in the data introduction layer ODS through layer rules, and the middle-layer data can be stored in the detailed data layer DWD, the summary data layer DWS and the application layer ADS. The lower layer contains all the data required for the upper layer data processing.

[0126] The data governance type processing module is used to protect data security, manage data quality issues caused by the work of the data development type processing module and the data modeling type processing module, and output corresponding data processing results.

[0127] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 50 includes: at least one processor 501 and a memory 502, wherein:

[0128] The memory 502 is used to store computer-executable instructions;

[0129] The at least one processor 501 is used to execute the computer-executable instructions stored in the memory 502, so that the at least one processor 501 executes the data service calling method as described in any one of the above items.

[0130] Among them, at least one processor 501 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0131] Optionally, in a specific implementation, the processor 501 and the memory 502 are implemented independently, and the processor 501 and the memory 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.

[0132] Optionally, in a specific implementation, if the processor 501 and the memory 502 are integrated on a chip, the processor 501 and the memory 502 can communicate through an internal interface.

[0133] The present application also provides a computer storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the technical solution of the aforementioned data service calling method is implemented.

[0134] The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The computer-readable storage medium may be any available medium that can be accessed by a general or special purpose computer.

[0135] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in the control device of the clothing processing device.

[0136] The division of the units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.

[0137] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0138] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0139] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0140] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0141] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A data service calling method, characterized in that: The method comprises: When receiving a call application from a user, obtaining a call key according to the call application, wherein the call key has a one-to-one correspondence with the data service available for call; According to the calling API, the cumulative number of calls to the data service corresponding to the calling key within a preset time period is obtained, wherein the calling API is a calling interface shared by different data services; Determine whether the user is qualified to call based on the accumulated number of calls, and if so, call the data service corresponding to the call key through the call API.

2. The method according to claim 1, characterized in that The calling of the data service associated with the calling key by the calling API includes: Parse the calling key to obtain a header key and a tail key; wherein the header key is a key of a preset number of digits, and the tail key is a key after the header key; Processing the header key by a first algorithm to obtain a first key value, wherein the first key value is used to indicate the data type to which the data service to be called belongs; Processing the tail key by a second algorithm to obtain a second key value, where the second key value is used to indicate a processing module of the data service to be called under the corresponding data type; According to the first key value and the second key value, a processing module corresponding to the data service is called through the calling API, wherein the processing module is used to obtain query results in the database.

3. The method according to claim 2, characterized in that The determining whether the user is eligible for calling according to the accumulated number of calls includes: Obtaining user information according to the calling application; Obtaining an accessible list according to the data service corresponding to the calling key; If the cumulative number of calls is less than the preset number, and the accessible list contains the user information, it is determined that the user is eligible for the call.

4. The method according to claim 3, characterized in that The calling application also includes a query statement. Before calling the data service corresponding to the calling key through the calling API, the method also includes: Determine whether the query result corresponding to the query statement is stored in the data layer, wherein the query result in the data layer is pre-acquired and stored by the processing module; If not, it is determined to call the processing module corresponding to the data service through the calling API.

5. The method according to claim 4, characterized in that Before receiving the calling application from the user, the method further includes: Generate a call key according to the data type to which each data service belongs and the processing module corresponding to the data service under the data type, wherein the call key includes the head key and the tail key; Obtaining a correspondence between the data service and the calling key and storing the correspondence, wherein the stored correspondence is used to obtain the data service corresponding to the calling key; An access list of each of the data services is obtained, and a call key corresponding to each of the data services is issued according to the access list.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Acquire call information of the calling API according to a preset period, wherein the call information includes at least one of call volume, traffic, and access latency; When it is determined according to the calling information of the calling API that the calling API is in a calling overload state, a new calling API is added, wherein the new calling API is a calling interface shared by different data services; According to the load balancing algorithm, the calling API and the new calling API are controlled to call the data service.

7. A data service sharing system, characterized in that: The system comprises: A query module, used to execute the method according to any one of claims 1 to 6; A processing layer, the processing layer includes processing modules under different data types, the processing modules are used to process the data in the database according to the call of the API, and output the data processing results to the data layer; The data layer is used to store the data processing results and provide query results for the query module.

8. The system according to claim 7, characterized in that The different data types include: data development type, data modeling type and data governance type; A data development type processing module is used to analyze and process the data according to the attribute characteristics of the data, and output the data processing results in the form of charts and / or text according to the data analysis results; A data modeling type processing module is used to organize and store data according to the hierarchical rules of the pre-stored data warehouse and output the corresponding data processing results; The data governance type processing module is used to protect data security, manage data quality issues caused by the work of the data development type processing module and the data modeling type processing module, and output corresponding data processing results.

9. An electronic device, characterized in that: include: at least one processor and memory, wherein: The memory is used to store computer-executable instructions; The at least one processor is configured to execute the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 6.

10. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.