CN111163096B - Method, device, electronic equipment and storage medium for providing data interface service - Google Patents

Method, device, electronic equipment and storage medium for providing data interface service Download PDF

Info

Publication number
CN111163096B
CN111163096B CN201911407241.7A CN201911407241A CN111163096B CN 111163096 B CN111163096 B CN 111163096B CN 201911407241 A CN201911407241 A CN 201911407241A CN 111163096 B CN111163096 B CN 111163096B
Authority
CN
China
Prior art keywords
data
interface
data interface
service
request
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
CN201911407241.7A
Other languages
Chinese (zh)
Other versions
CN111163096A (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.)
GUIYANG HUOCHEBANG TECHNOLOGY CO.,LTD.
Original Assignee
Guiyang Huochebang 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 Guiyang Huochebang Technology Co ltd filed Critical Guiyang Huochebang Technology Co ltd
Priority to CN201911407241.7A priority Critical patent/CN111163096B/en
Publication of CN111163096A publication Critical patent/CN111163096A/en
Application granted granted Critical
Publication of CN111163096B publication Critical patent/CN111163096B/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/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • 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/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method, a device, electronic equipment and a storage medium for providing data interface service, wherein the method for providing the data interface service comprises the following steps: receiving a service interface request; generating a service code and a key according to the service interface request; associating the service code with the data source information requested by the service interface request to configure a data interface associated with the service code; receiving a data interface calling request, wherein at least part of the data interface calling request adopts the secret key to carry out signature; utilizing the key to carry out signature verification on the data interface calling request; and after the signature verification is passed, calling the data interface associated with the service code according to the data interface calling request to inquire data from the data source information associated with the service code, wherein the inquired data is stored in a grading way based on the cold and hot degree of the data. The method and the device provided by the invention provide data interface service.

Description

Method, device, electronic equipment and storage medium for providing data interface service
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for providing a data interface service, an electronic device, and a storage medium.
Background
In recent years, with the rise of big data technology, in the management of databases, data is generally provided to the outside by: 1) providing data files directly to the outside; 2) writing data to a message queue; 3) and providing a data interface for the outside. The data transmission mode of directly providing data files externally and writing data into the message queue has large data transmission quantity and small service intrusiveness, but cannot be well controlled in the aspect of data safety, and the timeliness of the data cannot be guaranteed. For example, in the logistics management platform, information of drivers and owners of goods, etc. Desensitization and encryption of sensitive information is certainly required to prevent compromise. Therefore, the query quantity is not particularly large, and the data with high timeliness is provided by adopting an interface. With the rapid development of various online services, the requirements for data access of big data and the like can be rapidly expanded, a data interface needs to be developed again for each new service, and testing, joint debugging and online are carried out, so that the development period is long, the investment is large, and the efficiency is low.
Disclosure of Invention
The present invention is directed to a method, apparatus, electronic device, and storage medium for providing a data interface service that overcome the limitations and disadvantages of the related art, and thereby overcome one or more of the problems due to the limitations and disadvantages of the related art, at least to some extent.
According to an aspect of the present invention, there is provided a method of providing a data interface service, including:
receiving a service interface request;
generating a service code and a key according to the service interface request;
associating the service code with the data source information requested by the service interface request to configure a data interface associated with the service code;
receiving a data interface calling request, wherein at least part of the data interface calling request adopts the secret key to carry out signature;
utilizing the key to carry out signature verification on the data interface calling request; and
after the signature verification is passed, calling a data interface associated with the service code according to the data interface calling request to inquire data from data source information associated with the service code,
wherein, the inquired data is stored in a grading way based on the cold and hot degree of the data.
In some embodiments of the present invention, the generating a service code and a key according to the service interface request includes:
and generating a key pair according to the service interface request, and returning one key in the key pair to a sender of the service interface request so as to sign the data interface call request, wherein the other key in the key pair is used for signature verification of the data interface call request.
In some embodiments of the present invention, the queried data is stored in a plurality of different cache databases, the cache databases including at least a transactional database and an analytical database, the transactional database storing hot data and the analytical database storing cold data.
In some embodiments of the present invention, associating the service code with the data source information requested by the service interface request further comprises:
and initializing a connection pool associated with the service code by using an adapter of the cache database according to the data source information requested by the service interface request.
In some embodiments of the invention, further comprising:
the plurality of data interfaces are managed in a graphical display.
In some embodiments of the invention, managing the plurality of data interfaces in the graphical display comprises:
the method comprises the steps of displaying icons of all data interfaces, wherein each icon comprises an annular progress bar and a closed area surrounded by the annular progress bar, the annular progress bar displays the life cycle of the data interface corresponding to the icon, the closed area displays the interface capacity of the data interface corresponding to the icon, the closed area comprises a filling area, the filling area displays the real-time flow and/or data volume of the data interface corresponding to the icon, and the color of the filling area displays the cold and hot degree of the data interface.
In some embodiments of the invention, managing the plurality of data interfaces in the graphical display further comprises one or more of:
receiving a dragging operation of the progress in the annular progress bar, and delaying or shortening the remaining effective time of the data interface corresponding to the icon;
receiving zooming operation on the closed area, and adjusting the interface capability of the data interface corresponding to the icon;
and receiving a first operation on the icon, and extracting real-time parameters of a data interface corresponding to the icon.
According to still another aspect of the present invention, there is also provided an apparatus for providing a data interface service, including:
the first receiving module is used for receiving a service interface request;
the generating module is used for generating a service code and a key according to the service interface request;
the configuration module is used for enabling the service code to be associated with the data source information requested by the service interface request so as to configure a data interface associated with the service code;
the second receiving module is used for receiving a data interface calling request, and at least part of the data interface calling request is signed by adopting the secret key;
the signature verification module is used for performing signature verification on the data interface calling request by using the secret key; and
and the calling module is used for calling the data interface related to the service code according to the data interface calling request after the signature verification is passed so as to inquire data from the data source information related to the service code, wherein the inquired data is stored in a grading way based on the cold and hot degree of the data.
According to still another aspect of the present invention, there is also provided an electronic apparatus, including: a processor; a storage medium having stored thereon a computer program which, when executed by the processor, performs the steps as described above.
According to yet another aspect of the present invention, there is also provided a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps as described above.
Compared with the prior art, the invention has the advantages that:
on one hand, a universal and unified service for providing a data interface is constructed, so that when other business systems use data, the needed data can be inquired only by generating business codes and a data source without developing and accessing a new interface; on the other hand, in order to guarantee the data security and the control of service access, the interface needs to be signed and encrypted when being called, so that the security of the data and the interface is guaranteed; on the other hand, the data are stored in a grading mode according to the cold and hot degrees of the data, so that the data storage is reasonably planned while different business scenes are met.
Drawings
The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
Fig. 1 illustrates a flowchart of a method of providing a data interface service according to an embodiment of the present invention.
Fig. 2 shows an interface diagram of a data interface platform according to a specific embodiment of the present invention.
FIG. 3 illustrates a schematic diagram of an icon of a data interface in accordance with a specific embodiment of the present invention.
Fig. 4 is a block diagram illustrating an apparatus for providing a data interface service according to an embodiment of the present invention.
Fig. 5 schematically illustrates a computer-readable storage medium in an exemplary embodiment of the invention.
Fig. 6 schematically shows an electronic device in an exemplary embodiment of the invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 illustrates a flowchart of a method of providing a data interface service according to an embodiment of the present invention. The method for providing the data interface service includes the steps of:
step S110: receiving a service interface request;
step S120: generating a service code and a key according to the service interface request;
step S130: associating the service code with the data source information requested by the service interface request to configure a data interface associated with the service code;
step S140: receiving a data interface calling request, wherein at least part of the data interface calling request adopts the secret key to carry out signature;
step S150: utilizing the key to carry out signature verification on the data interface calling request; and
step S160: after the signature verification is passed, calling a data interface associated with the service code according to the data interface calling request to inquire data from data source information associated with the service code,
wherein, the inquired data is stored in a grading way based on the cold and hot degree of the data.
In the method for providing the data interface service, on one hand, a universal and unified service for providing the data interface is constructed to ensure that when other business systems use data, a new interface is not required to be developed and accessed, and the needed data can be inquired only by generating business codes and data sources; on the other hand, in order to guarantee the data security and the control of service access, the interface needs to be signed and encrypted when being called, so that the security of the data and the interface is guaranteed; on the other hand, the data are stored in a grading mode according to the cold and hot degrees of the data, so that the data storage is reasonably planned while different business scenes are met.
In various embodiments of the present invention, the cool-hot level of the data refers to the timeliness of the data, for example. The closer the data is to the current time, the hotter the data is. In the above-mentioned specific embodiment of performing hierarchical storage based on the cold and hot degrees of the data, the cold data (historical data) is mainly processed offline, and it is only necessary to store a hard disk or a magnetic disk for reasons of cost saving, etc. the temperature data (recent historical data) needs to be stored in a calculation engine database capable of being processed so as to quickly respond to the query of the user, and the real-time data (hot data) is generally stored in a memory so as to make a second-level response to the user. Further, the queried data is stored in a plurality of different cache databases, the cache databases including at least a transactional database and an analytical database, the transactional database storing hot data and the analytical database storing cold data. In particular, transactional databases are mainly real-time, application-oriented databases, have high requirements on response timeliness, and only pay attention to data in the recent period of time. The services built at ordinary times are called transaction type databases. The analytical database is mainly used for analyzing rules in a large amount of data, generally has long time span of stored data, large data volume and low requirement on real-time performance, and is used for product decision and the like by inquiring trends of the analysis rules.
In some embodiments of the present invention, the step S120 may further include the following steps: and generating a key pair according to the service interface request, and returning one key in the key pair to a sender of the service interface request so as to sign the data interface call request, wherein the other key in the key pair is used for signature verification of the data interface call request. Therefore, the safety of data can be guaranteed.
A specific implementation of the present invention is described below in conjunction with fig. 2. Fig. 2 shows an interface diagram of a data interface platform according to a specific embodiment of the present invention.
The data interface platform shown in fig. 2 is a platform that provides interface services to the outside uniformly. By using the platform, a user does not need to add a new interface or a new project when inquiring a certain part of data. After only a service interface request is sent, the system can automatically generate a service code and a key and configure data source information, so that access can be performed in subsequent interface calling, and the access efficiency of new services is greatly improved. In the embodiment, during modeling of the previous-period data warehouse, different types of data are stored in a grading manner according to the cold and hot degrees of the data, and are respectively stored on a disk-based or memory-based database, and then the query is called through an interface.
The data interface platform shown in fig. 2 includes an interface access layer 210, an interface service layer 220, a data service layer 230, a data cache layer 240, and a data access layer 250. The interface access layer 210 provides an API interface and a WB interface to the outside. The API interface can be called by external services, and the WEB interface can be used by data management personnel. Specifically, when an external service needs to query a certain part of data, a service interface request (which may include, for example, a reason for applying for querying the data, an approximate data amount, and a query rate per second of access) may be issued, and then the data interface platform automatically generates a service code and a public and private key pair, and configures data source information of the data query in the request, including a server address, a port, a user name, and the like. Further, the method can also include storing the data source information in a configuration database after encryption processing so as to perform encryption protection on the configuration of the data source. In addition, before the data interface platform automatically generates the service code and the public and private key pair, a step of auditing the service interface request by a data manager through a WEB page may also be included, which is not limited in the present invention. After the data source information is configured, the data interface platform can hand one of the public and private key pairs to the service party sending the service interface request. When the configured interface is called by the service party, the interface calling request can be signed by the key and then sent to the data interface platform, the data interface platform carries out signature verification by another key, after the signature verification is passed, different data can be inquired according to the data source configured by the service code, and the user can return the data.
For the management of the external interface, the interface service layer 220 includes modules such as metadata management, data management service, interface capability management (data volume limit, traffic limit, etc. of the data interface), data source management, third-party system management, and interface lifecycle (validity period of the data interface) management. Respectively managing and controlling metadata, data quality and the like of each data source, fully evaluating the conditions of interface access amount and the like of an access system, counting the life cycle of each interface, analyzing the heat degree of the interface and the like. Data security in the above layers is implemented by the system security service 260.
The data service layer 230 is mainly configured with different adapters for each data source of the data caching layer 240 of the platform, and initializes a corresponding connection pool when starting the project, so as to facilitate quick data query in the later period when querying data. Data sources may include GP (Greenplus) clusters, Redis clusters, ES (elastic search) clusters, Mysql, Mongo databases (distributed document storage databases), and Hbase (HBase is a distributed, column-oriented open database). Thus, the adapters provided by the data services layer 230 can include GP adapters, Redis adapters, ES adapters, Mysql adapters, Mongo adapters, Hbase adapters, and others. The invention is not so limited. The stored data can be divided into cold data, temperature data and hot data according to timeliness and the like, the platform uses different bottom layer storage for different data, and the different bottom layer storage is distributed and stored on storage media based on a magnetic disk, a memory and the like, so that the timeliness response of different service scenes to the data is met. Through the distributed storage of each storage cluster, the safety and the integrity of data are ensured.
The data caching layer 240 stores data (implemented by the data synchronization service 270) from the data access layer 250, the data access layer 250 may include data sources such as Hive (a data warehouse tool based on Hadoop), kafka (open source stream processing platform), message queues and the like, and accesses of other third-party systems, and the big data caching layer 240 consumes data of various data sources, performs offline or real-time calculation, stores the data in a hierarchical and independent manner, and then provides data queries to the outside.
In a specific implementation of the platform, java language can be adopted, frames such as springboot and mybatis are used for developing the system, drivers and adapters of all data sources are embedded, data such as Hive, Kafka, message queues and third-party systems are synchronized into clusters such as GP, Redis, ES and Hbase, service is provided for the outside through an interface layer, service datais converted into data, and timeliness and data security of a big data department when a new service is accessed can be greatly improved.
Further, the invention can manage a plurality of data interfaces in a graphical display. Referring now to fig. 3, fig. 3 illustrates a schematic diagram of an icon of a data interface in accordance with a specific embodiment of the present invention.
In particular, fig. 3 shows an icon 300 of the data interface 1, said icon 300 comprising an annular progress bar 310 and a closed area 320 surrounded by the annular progress bar 310. The annular progress bar 310 displays a life cycle of a data interface corresponding to the icon 300, the closed area 320 displays an interface capability of the data interface corresponding to the icon, the closed area 320 includes a filling area 322 therein, the filling area 322 displays a real-time flow and/or a data volume of the data interface corresponding to the icon 300, and a color of the filling area 322 displays a cold and hot degree of the data interface (e.g., the hotter the red, the colder the blue, and the colder the blue). Thus, different states of the data interface can be revealed by one icon 300.
In the above-described embodiment, the data interface may be managed by the operation of the icon 300. In one specific implementation, a dragging operation of the progress 311 in the circular progress bar 310 may be received, and the remaining effective time of the data interface corresponding to the icon may be delayed or shortened. For example, lengthening the progress 311 and shortening the remaining effective time of the data interface corresponding to the icon; dragging the progress 311 short will shorten the remaining effective time of the data interface corresponding to the icon. In one specific implementation, a zoom operation on the closed region 320 may be received, and the interface capability of the data interface corresponding to the icon may be adjusted. For example, by holding a click on the border of the closed area 320 and dragging to zoom in or out of the closed area 320 toward the direction of the drag. Enlarging the closed area 320 to increase the data volume and/or flow of the data interface; the closed area 320 is reduced to increase the amount of data and/or traffic of the data interface. In one specific implementation, a first operation (e.g., a long press, a right key, or a pressure touch) on the icon 300 may be received, and a real-time parameter (e.g., an expiration date, a remaining effective time, an interface capability, an interface real-time data amount and/or flow, etc.) of a data interface corresponding to the icon may be extracted. Therefore, a plurality of real-time parameters of the data interface can be acquired simultaneously through one operation, and the interface can be displayed and analyzed conveniently.
The above are merely one or more specific implementations provided by the present invention, and each of the specific implementations may be implemented alone or in combination, and the present invention is not limited thereto.
According to still another aspect of the present invention, there is also provided an apparatus for providing a data interface service, and fig. 4 is a block diagram illustrating the apparatus for providing the data interface service according to an embodiment of the present invention. The apparatus 400 for providing a data interface service includes a first receiving module 410, a generating module 420, a configuring module 430, a second receiving module 440, a signature verifying module 450, and a calling module 460.
The first receiving module 410 is configured to receive a service interface request;
the generating module 420 is configured to generate a service code and a key according to the service interface request;
the configuration module 430 is configured to associate the service code with the data source information requested by the service interface request, so as to configure a data interface associated with the service code;
the second receiving module 440 is configured to receive a data interface call request, where at least part of the data interface call request is signed by using the secret key;
the signature verification module 450 is configured to perform signature verification on the data interface call request by using the key; and
the invoking module 460 is configured to invoke the data interface associated with the service code according to the data interface invoking request after the signature verification is passed, to query data from the data source information associated with the service code,
wherein, the inquired data is stored in a grading way based on the cold and hot degree of the data.
In the device for providing the data interface service, on one hand, a universal and unified service for providing the data interface is constructed to ensure that when other business systems use data, a new interface is not required to be developed and accessed, and the needed data can be inquired only by generating business codes and a data source; on the other hand, in order to guarantee the data security and the control of service access, the interface needs to be signed and encrypted when being called, so that the security of the data and the interface is guaranteed; on the other hand, the data are stored in a grading mode according to the cold and hot degrees of the data, so that the data storage is reasonably planned while different business scenes are met.
Fig. 4 is a schematic diagram illustrating an apparatus 400 for providing a data interface service provided by the present invention, and the splitting, combining and adding of modules are within the scope of the present invention without departing from the spirit of the present invention. The apparatus 400 for providing data interface service provided by the present invention can be implemented by software, hardware, firmware, plug-in and any combination thereof, which is not limited by the present invention.
In an exemplary embodiment of the present invention, a computer readable storage medium is further provided, on which a computer program is stored, which when executed by, for example, a processor, may implement the steps of the method for providing a data interface service and the method for providing a data interface service described in any of the above embodiments. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the method for providing a data interface service and the method for providing a data interface service section of the present description above, when said program product is run on the terminal device.
Referring to fig. 5, a program product 700 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the tenant computing device, partly on the tenant device, as a stand-alone software package, partly on the tenant computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing devices may be connected to the tenant computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In an exemplary embodiment of the invention, there is also provided an electronic device that may include a processor and a memory for storing executable instructions of the processor. Wherein the processor is configured to perform the steps of the method for providing a data interface service and the method for providing a data interface service in any of the above embodiments by executing the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 500 according to this embodiment of the invention is described below with reference to fig. 6. The electronic device 500 shown in fig. 6 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the electronic device 500 is embodied in the form of a general purpose computing device. The components of the electronic device 500 may include, but are not limited to: at least one processing unit 510, at least one memory unit 520, a bus 530 that couples various system components including the memory unit 520 and the processing unit 510, a display unit 540, and the like.
Wherein the storage unit stores program code, which can be executed by the processing unit 510, to cause the processing unit 510 to perform the steps according to various exemplary embodiments of the present invention described in the method for providing a data interface service and the method for providing a data interface service section described above in this specification. For example, the processing unit 510 may perform the steps as shown in fig. 1.
The memory unit 520 may include a readable medium in the form of a volatile memory unit, such as a random access memory unit (RAM)5201 and/or a cache memory unit 5202, and may further include a read only memory unit (ROM) 5203.
The memory unit 520 may also include a program/utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 530 may be one or more of any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 500 may also communicate with one or more external devices 600 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a tenant to interact with the electronic device 500, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 500 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 550. Also, the electronic device 500 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 560. The network adapter 560 may communicate with other modules of the electronic device 500 via the bus 530. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the method for providing the data interface service and the method for providing the data interface service according to the embodiment of the present invention.
Compared with the prior art, the invention has the advantages that:
on one hand, a universal and unified service for providing a data interface is constructed, so that when other business systems use data, the needed data can be inquired only by generating business codes and a data source without developing and accessing a new interface; on the other hand, in order to guarantee the data security and the control of service access, the interface needs to be signed and encrypted when being called, so that the security of the data and the interface is guaranteed; on the other hand, the data are stored in a grading mode according to the cold and hot degrees of the data, so that the data storage is reasonably planned while different business scenes are met.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

Claims (8)

1. A method of providing data interface services, comprising:
receiving a service interface request;
generating a service code and a key according to the service interface request;
associating the service code with the data source information requested by the service interface request to configure a data interface associated with the service code;
receiving a data interface calling request, wherein at least part of the data interface calling request adopts the secret key to carry out signature;
utilizing the key to carry out signature verification on the data interface calling request; and
after the signature verification is passed, calling a data interface associated with the service code according to the data interface calling request to inquire data from data source information associated with the service code;
managing a plurality of data interfaces in a graphical display mode, wherein icons of the data interfaces are displayed, each icon comprises an annular progress bar and a closed area surrounded by the annular progress bar, the annular progress bar displays the life cycle of the data interface corresponding to the icon, the closed area displays the interface capacity of the data interface corresponding to the icon, the closed area comprises a filling area, the filling area displays the real-time flow and/or data volume of the data interface corresponding to the icon, and the color of the filling area displays the cold and hot degree of the data interface,
wherein, the inquired data is stored in a grading way based on the cold and hot degree of the data.
2. The method of providing data interface services according to claim 1, wherein said generating a traffic code and key according to said traffic interface request comprises:
and generating a key pair according to the service interface request, and returning one key in the key pair to a sender of the service interface request so as to sign the data interface call request, wherein the other key in the key pair is used for signature verification of the data interface call request.
3. The method of claim 1, wherein the queried data is stored in a plurality of different cache databases, the cache databases comprising at least a transactional database and an analytical database, the transactional database storing hot data and the analytical database storing cold data.
4. The method of providing data interface services of claim 3 wherein said associating said traffic encoding with data source information requested by said traffic interface request further comprises:
and initializing a connection pool associated with the service code by using an adapter of the cache database according to the data source information requested by the service interface request.
5. The method of providing data interface services of claim 1 wherein managing a plurality of data interfaces in a graphical display further comprises one or more of:
receiving a dragging operation of the progress in the annular progress bar, and delaying or shortening the remaining effective time of the data interface corresponding to the icon;
receiving zooming operation on the closed area, and adjusting the interface capability of the data interface corresponding to the icon;
and receiving a first operation on the icon, and extracting real-time parameters of a data interface corresponding to the icon.
6. An apparatus for providing data interface services, comprising:
the first receiving module is used for receiving a service interface request;
the generating module is used for generating a service code and a key according to the service interface request;
the configuration module is used for enabling the service code to be associated with the data source information requested by the service interface request so as to configure a data interface associated with the service code;
the second receiving module is used for receiving a data interface calling request, and at least part of the data interface calling request is signed by adopting the secret key;
the signature verification module is used for performing signature verification on the data interface calling request by using the secret key; and
the calling module is used for calling the data interface associated with the service code according to the data interface calling request after the signature verification is passed so as to inquire data from the data source information associated with the service code;
the means for providing data interface services is further for: managing a plurality of data interfaces in a graphical display mode, wherein icons of the data interfaces are displayed, each icon comprises an annular progress bar and a closed area surrounded by the annular progress bar, the annular progress bar displays the life cycle of the data interface corresponding to the icon, the closed area displays the interface capacity of the data interface corresponding to the icon, the closed area comprises a filling area, the filling area displays the real-time flow and/or data volume of the data interface corresponding to the icon, and the color of the filling area displays the cold and hot degree of the data interface,
wherein, the inquired data is stored in a grading way based on the cold and hot degree of the data.
7. An electronic device, characterized in that the electronic device comprises:
a processor;
memory having stored thereon a computer program which, when being executed by the processor, carries out the method of providing a data interface service according to any one of claims 1 to 5.
8. A storage medium having stored thereon a computer program for performing, when executed by a processor, a method of providing a data interface service according to any one of claims 1 to 5.
CN201911407241.7A 2019-12-31 2019-12-31 Method, device, electronic equipment and storage medium for providing data interface service Active CN111163096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911407241.7A CN111163096B (en) 2019-12-31 2019-12-31 Method, device, electronic equipment and storage medium for providing data interface service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911407241.7A CN111163096B (en) 2019-12-31 2019-12-31 Method, device, electronic equipment and storage medium for providing data interface service

Publications (2)

Publication Number Publication Date
CN111163096A CN111163096A (en) 2020-05-15
CN111163096B true CN111163096B (en) 2022-03-25

Family

ID=70559815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911407241.7A Active CN111163096B (en) 2019-12-31 2019-12-31 Method, device, electronic equipment and storage medium for providing data interface service

Country Status (1)

Country Link
CN (1) CN111163096B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984719A (en) * 2020-08-31 2020-11-24 平安医疗健康管理股份有限公司 Data calling method, device, equipment and storage medium based on data source
CN111931214A (en) * 2020-08-31 2020-11-13 平安国际智慧城市科技股份有限公司 Data processing method, device, server and storage medium
CN112187827A (en) * 2020-10-16 2021-01-05 厦门市云客网络科技有限公司 Method for uniformly outputting different communication protocols and data structures
CN112861188A (en) * 2021-02-01 2021-05-28 青岛易来智能科技股份有限公司 Data aggregation system and method for multiple clusters
CN113297598B (en) * 2021-06-11 2024-05-28 上海寻梦信息技术有限公司 Method, device, equipment and storage medium for embedding points at service end of express cabinet
CN114816505A (en) * 2022-04-18 2022-07-29 上海博般数据技术有限公司 Configuration method and system of data service interface and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107784068A (en) * 2017-09-01 2018-03-09 北京趣拿软件科技有限公司 Acquisition methods, device, storage medium, processor and the service end of data variation
CN108763530A (en) * 2018-05-31 2018-11-06 中国农业银行股份有限公司 A kind of data access method, device and electronic equipment
CN109922158A (en) * 2019-03-22 2019-06-21 泰康保险集团股份有限公司 Data processing method, device, medium and electronic equipment based on micro services

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2963619A1 (en) * 2014-06-30 2016-01-06 Airbus Operations GmbH Data collection apparatus, data collection system and method for data collection in vehicles

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107784068A (en) * 2017-09-01 2018-03-09 北京趣拿软件科技有限公司 Acquisition methods, device, storage medium, processor and the service end of data variation
CN108763530A (en) * 2018-05-31 2018-11-06 中国农业银行股份有限公司 A kind of data access method, device and electronic equipment
CN109922158A (en) * 2019-03-22 2019-06-21 泰康保险集团股份有限公司 Data processing method, device, medium and electronic equipment based on micro services

Also Published As

Publication number Publication date
CN111163096A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN111163096B (en) Method, device, electronic equipment and storage medium for providing data interface service
US9882834B2 (en) Capturing data parameters in templates in a networked computing environment
US9043445B2 (en) Linking instances within a cloud computing environment
US10223329B2 (en) Policy based data collection, processing, and negotiation for analytics
US20130103823A1 (en) Event prediction and preemptive action identification in a networked computing environment
US10929567B2 (en) Parallel access to running electronic design automation (EDA) application
CN109522751B (en) Access right control method and device, electronic equipment and computer readable medium
US20180196647A1 (en) Application Programming Interface Discovery Using Pattern Recognition
US9225662B2 (en) Command management in a networked computing environment
US20180276585A1 (en) Managing Assets
US11481508B2 (en) Data access monitoring and control
US10002181B2 (en) Real-time tagger
CN111586177B (en) Cluster session loss prevention method and system
US20190268435A1 (en) Resource pre-caching and tenant workflow recognition using cloud audit records
US10877805B2 (en) Optimization of memory usage by integration flows
US20190124107A1 (en) Security management for data systems
US20180307809A1 (en) Analysis of output files
JP7431490B2 (en) Data migration in hierarchical storage management systems
WO2021012554A1 (en) Method and apparatus for updating data field in block chain, medium, and electronic device
US20210058484A1 (en) Optimizing large parameter passing in a service mesh
US9189299B2 (en) Framework for system communication for handling data
US11768801B2 (en) Dynamic identification of cloud storage destination for multi-user files
US10643228B2 (en) Standardizing customer and test data and information collection for run time and historical profiling environments and workload comparisons
US11893132B2 (en) Discovery of personal data in machine learning models
US20200073916A1 (en) Collaborative documentation

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220301

Address after: No.123, Kaifa Avenue, Guiyang Economic and Technological Development Zone, 550000, Guizhou Province

Applicant after: GUIYANG HUOCHEBANG TECHNOLOGY CO.,LTD.

Address before: 210012 3-5 / F, building 4, 170-1 software Avenue, Yuhuatai District, Nanjing City, Jiangsu Province

Applicant before: JIANGSU MANYUN SOFTWARE TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant