CN112650728A - Interface information storage method and device, server and distributed service system - Google Patents

Interface information storage method and device, server and distributed service system Download PDF

Info

Publication number
CN112650728A
CN112650728A CN202011481358.2A CN202011481358A CN112650728A CN 112650728 A CN112650728 A CN 112650728A CN 202011481358 A CN202011481358 A CN 202011481358A CN 112650728 A CN112650728 A CN 112650728A
Authority
CN
China
Prior art keywords
interface
interface information
log
server
acquiring
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.)
Pending
Application number
CN202011481358.2A
Other languages
Chinese (zh)
Inventor
牛春龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011481358.2A priority Critical patent/CN112650728A/en
Publication of CN112650728A publication Critical patent/CN112650728A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Abstract

The embodiment of the invention provides an interface information storage method, an interface information storage device, a server and a distributed service system, wherein the method comprises the following steps: acquiring a service request, and determining an interface monitoring type according to the service request; and executing service operation according to the service request, acquiring interface information according to the interface monitoring type, and sending the interface information to the storage server by newly adding a storage server for storing the interface information, so that the storage server stores the interface information, and the data storage pressure of the conventional database server is relieved.

Description

Interface information storage method and device, server and distributed service system
Technical Field
The embodiment of the invention relates to the technical field of information, in particular to an interface information storage method, an interface information storage device, a server and a distributed service system.
Background
With the continuous development of distributed systems and microservice technologies, the distributed and microservice architecture has become the mainstream direction of business processing systems. The distributed system is a system for executing tasks on a multiprocessor system interconnected by a communication network, and comprises a distributed operating system, a distributed programming language and compiling system thereof, a distributed file system distributed database system and the like. In a distributed system, the interface message data can be stored in the database server, so that the request parameters accessed by the interface can be conveniently positioned.
In the prior art, an interface message is manually acquired through a code and is stored in a database server, and a manager can inquire a request parameter for interface access by accessing the database server.
However, the database server stores not only the interface packet but also the service information. When the data volume of the interface message collected by the database server is large, the data storage pressure of the database server is too large, and the efficiency of the database server for processing the service information is affected.
Disclosure of Invention
The embodiment of the invention provides an interface information storage method, an interface information storage device, a server and a distributed service system, and aims to relieve the data storage pressure of a database server.
In a first aspect, an embodiment of the present invention provides an interface information storage method, where the method includes:
acquiring a service request, and determining an interface monitoring type according to the service request;
executing service operation according to the service request, and acquiring interface information according to the interface monitoring type;
and sending the interface information to a storage server so that the storage server stores the interface information in a database.
In a possible implementation manner, the obtaining interface information according to the interface monitoring type includes:
determining a target interface according to the interface monitoring type and acquiring an interface log of the target interface;
and determining interface information according to the data increment of the interface log.
In a possible implementation manner, the obtaining an interface log of the target interface includes:
and acquiring an interface processing log of the target interface according to the AOP module, and acquiring the interface log of the target interface according to the interface processing log.
In a possible implementation manner, the determining interface information according to the data increment of the interface log includes:
storing the interface log in a preset file according to a Logback log module;
and acquiring a data increment of the preset file according to the DTS, and determining interface information according to the data increment.
In a possible implementation manner, after the sending the interface information to the storage server, the method further includes:
acquiring a retrieval request, and sending the retrieval request to a storage server so that the storage server acquires target interface information corresponding to the retrieval request according to the database;
and receiving the target interface information returned by the storage server.
In a second aspect, an embodiment of the present invention provides an interface information storage apparatus, including:
the determining module is used for acquiring a service request and determining an interface monitoring type according to the service request;
the acquisition module is used for executing service operation according to the service request and acquiring interface information according to the interface monitoring type;
and the sending module is used for sending the interface information to a storage server so that the storage server stores the interface information in a database.
In a third aspect, a traffic server includes: at least one processor and memory; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored by the memory to cause the at least one processor to perform the interface information storage method as described above in the first aspect and various possible designs of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a distributed service system, including at least one service server according to the third aspect and a storage server.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the interface information storage method according to the first aspect and various possible designs of the first aspect are implemented.
In a sixth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the interface information storage method according to the first aspect and various possible designs of the first aspect.
According to the interface information storage method, the interface information storage device, the server and the distributed service system, the interface monitoring type is determined according to the service request, the service operation is executed according to the service request, the interface information is obtained according to the interface monitoring type, and the interface information is sent to the storage server, so that the storage server stores the interface information, and the data storage pressure of the existing database server is relieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a distributed service system according to an embodiment of the present invention;
fig. 2 is a first flowchart illustrating an interface information storage method according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating an interface information storage method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an interface information storage apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a service server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A distributed system is a software system that supports distributed processing, and is a system that executes tasks on a multiprocessor architecture interconnected by a communication network. The system comprises a distributed operating system, a distributed programming language and a compiling system thereof, a distributed file system and a distributed database system and the like; microservices are a distributed architecture of sustainable integrated deployment with loose coupling between services, high autonomy between each service, and communication using lightweight protocols. Most of the function points involved in the distributed service system need to access an external system for acquisition, and each service function in the distributed service system becomes a single service deployment. As each system provides more and more capabilities, system-to-system service calls are increasing. In the prior art, when the request parameter of the interface access is positioned, the interface message is manually acquired through a code, the interface message is stored in a database server, and a manager can inquire the request parameter of the interface access through accessing the database server.
However, the database server stores not only the interface packet but also the service information. When the data volume of the interface message collected by the database server is large, the data storage pressure of the database server is too large, and the efficiency of the database server for processing the service information is affected.
In order to solve the technical problem, an embodiment of the present invention provides a Springmvc frame based AOP cut-oriented principle, which uses an automatic interception request in conjunction with a Logback log function to output a log mode to a designated target path file, monitors incremental change data in the log file through a DTS, and synchronizes the incremental change data to a storage server in real time, so that the storage server stores interface information, and data storage pressure of an existing database server is relieved. The following examples are given for illustrative purposes.
Fig. 1 is a schematic structural diagram of a distributed service system according to an embodiment of the present invention. As shown in fig. 1, the distributed service system provided in the embodiment of the present invention includes a plurality of service servers 10 and a storage server 20, and a distributed system is formed by establishing connection between the plurality of service servers 10 and the storage server 20 through a bus. The service program is split according to the service modules, and each service server 10 is used as an independent service module, so that distributed deployment of the service program is realized. The storage server 20 is used for storing the interface information acquired by all the service servers 10.
Fig. 2 is a first flowchart illustrating an interface information storage method according to an embodiment of the present invention. The executing entity of the embodiment of the present invention may be the service server 10 shown in fig. 1. As shown in fig. 2, the interface information storage method provided in the embodiment of the present invention includes the following steps:
s201: and acquiring the service request, and determining the interface monitoring type according to the service request.
In the embodiment of the invention, the interface types called in the execution process of different service requests are different according to the service requests submitted by the client side of the service system receiving users, so the interface monitoring type can be determined according to the service requests. The interface monitoring types comprise http, restful, hsf, dubbo, webservice and the like.
S202: and executing the service operation according to the service request, and acquiring interface information according to the interface monitoring type.
In the embodiment of the invention, when the corresponding business operation is executed according to the business request submitted by the user, in order to subsequently inquire the specific operation content in the request submitted by the user, the interface information can be acquired according to the interface monitoring type in the process of executing the business request. Specifically, the target interface may be determined according to the interface monitoring type, an interface log of the target interface may be obtained, and the interface information may be determined according to a data increment of the interface log. The interface monitoring type corresponds to the service request, and in the process of acquiring the interface information, the processing information of all the interfaces does not need to be acquired, and only the processing information of the target interface corresponding to the interface monitoring type needs to be acquired.
S203: and sending the interface information to a storage server so that the storage server stores the interface information in a database.
In the embodiment of the invention, the service server can record all interface information corresponding to the service request by collecting the interface information in the process of executing the service according to the service request. And the business server sends the interface information to the storage server, so that the storage server stores the interface information in the database. Specifically, the storage server is a server with search engine and data storage functions, provides a full-text search engine with distributed multi-user capability, and realizes distributed real-time file storage.
As can be seen from the foregoing embodiment, the interface monitoring type is determined according to the service request by setting the service server, the service operation is executed according to the service request, and the interface information is obtained according to the interface monitoring type; and a storage server used for storing the interface information is newly added, and the interface information is sent to the storage server, so that the storage server stores the interface information, and the data storage pressure of the existing database server is relieved.
Fig. 3 is a schematic flowchart of a second interface information storage method according to an embodiment of the present invention. On the basis of the embodiment provided in fig. 2, after sending the interface information to the storage server in S203, as shown in fig. 3, the method further includes:
s301: and acquiring a retrieval request, and sending the retrieval request to a storage server so that the storage server acquires target interface information corresponding to the retrieval request according to the database.
In the embodiment of the invention, the service server provides a log management system for inquiring the interface information for the user, and the user can input the inquiry condition by logging in the log management system to inquire the interface information. The service server receives a retrieval request submitted by a user through the log management system, wherein the interface information stored in the storage server carries the identity of the user, and the retrieval request also carries the identity of the user, so that the storage server can obtain target interface information corresponding to the retrieval request by screening the identity of the user according to the database. In particular, the storage server supports the Elasticsearch engine. The method is a full-text retrieval tool acknowledged in the field of the Elasticissearch search engine, has the specific advantage of processing mass data, supports user-defined parameter query, and can quickly retrieve and return results.
S302: and receiving target interface information returned by the storage server.
In the embodiment of the invention, after receiving the target interface information returned by the storage server, the service server displays the inquired target interface information on the log management system.
According to the embodiment, the interface information in the process of executing the business by all the business servers is uniformly collected, uniformly stored and uniformly retrieved, so that the efficiency of retrieving the interface is greatly improved, and the influence of the interface information query on the host and the database server is reduced.
In a possible implementation manner, in the process of obtaining the interface log of the target interface, the interface processing log of the target interface may be obtained according to the AOP module, and the interface log of the target interface may be obtained according to the interface processing log; and storing the interface log in a preset file according to a Logback log module, acquiring a data increment of the preset file according to the DTS, and determining interface information according to the data increment.
Specifically, a Springmvc frame bottom layer AOP facing to a tangent plane is configured in a configuration file, an interface processing log is monitored through an AOP facing to the tangent plane principle in Springmvc, an interface log of a target interface is obtained through analysis in a reflection and serialization mode, the format and the specification of the log are configured through a Logback log module, the interface log is output to a preset file, and incremental change data of a corresponding log file is actively monitored through a DTS to determine interface information.
In the embodiment of the invention, the springMVC is a section-oriented programming paradigm, and the goal of crossing object points of interest is achieved by separating the points of interest of crosscutting, improving modularization. Aop, a typical application is spring's transaction mechanism, logging. By utilizing the AOP, all parts of the business logic can be isolated, so that the coupling degree between all parts of the business logic is reduced, the reusability of a program is improved, and the development efficiency is improved. Aop the main functions are: logging, performance statistics, security control, transactions, exception handling, and the like; the main intentions are: codes such as log records, performance statistics, security control, transaction processing, exception handling and the like are divided from business logic codes, and by separating the behaviors, the behaviors can be independent to a method of non-guidance business logic, so that the codes of the business logic are not influenced when the behaviors are changed. The Logback log module can flexibly set log levels, log paths and log sizes, and supports functions of log file name customization, backup deletion and the like. In the embodiment of the invention, the requested path is automatically acquired through the Springmvc bottom technical principle, and the interface method to be captured can be acquired in a user-defined mode; the Log back log module is used for setting the storage position of the appointed log host, and setting the size and the log retention time, so that the disk space is prevented from being occupied.
In the embodiment of the invention, the DTS real-time synchronization tool can realize the functions of data active monitoring and data transmission, and the DTS real-time synchronization tool has high performance, high reliability and high special expansion effect due to the self structure and can be in seamless connection with the Drds. And monitoring the preset file through a DTS synchronization tool, and synchronizing the data to a storage server in real time if newly added data exists.
It can be known from the above embodiments that, through the Springmvc bottom technical principle, the requested path is automatically obtained, and the interface method to be captured can be obtained in a custom manner; the Logback is used for setting the storage position of the appointed log host, setting the size and the log retention time, and avoiding occupying the disk space
Fig. 4 is a schematic structural diagram of an interface information storage device according to an embodiment of the present invention. As shown in fig. 4, the interface information storage apparatus includes: a determination module 41, an acquisition module 42 and a sending module 43.
The determining module 41 is configured to obtain a service request, and determine an interface monitoring type according to the service request.
And the obtaining module 42 is configured to execute a service operation according to the service request, and obtain interface information according to the interface monitoring type.
A sending module 43, configured to send the interface information to a storage server, so that the storage server stores the interface information in a database.
In a possible implementation manner, the obtaining module 42 is further specifically configured to determine a target interface according to the interface monitoring type, and obtain an interface log of the target interface; and determining interface information according to the data increment of the interface log.
In a possible implementation manner, the obtaining module 42 is further specifically configured to obtain an interface processing log of the target interface according to the AOP module, and obtain the interface log of the target interface according to the interface processing log.
In a possible implementation manner, the obtaining module 42 is further specifically configured to store the interface log in a preset file according to a Logback log module; and acquiring a data increment of the preset file according to the DTS, and determining interface information according to the data increment.
In a possible implementation manner, the interface information storage device further includes a receiving module, where the receiving module is configured to obtain a retrieval request and send the retrieval request to a storage server, so that the storage server obtains target interface information corresponding to the retrieval request according to the database; and receiving the target interface information returned by the storage server.
In this embodiment, the interface information storage apparatus may adopt the method of the embodiments shown in fig. 2 and fig. 3 and the method executed by all the service servers, and the technical solutions and the technical effects thereof are similar and are not described herein again. Reference may be made in particular to the description relating to the method embodiments described above.
Fig. 5 is a schematic structural diagram of a service server according to an embodiment of the present invention. As shown in fig. 5, the service server of this embodiment includes: at least one processor 501 and memory 502. Wherein: a memory 502 for storing computer-executable instructions; the processor 501, when executing the computer program, implements the following steps:
acquiring a service request, and determining an interface monitoring type according to the service request; executing service operation according to the service request, and acquiring interface information according to the interface monitoring type; and sending the interface information to a storage server so that the storage server stores the interface information in a database.
In one possible design, the processor 501, when executing the computer program, further performs the following steps:
determining a target interface according to the interface monitoring type and acquiring an interface log of the target interface; and determining interface information according to the data increment of the interface log.
In one possible design, the processor 501, when executing the computer program, further performs the following steps:
and acquiring an interface processing log of the target interface according to the AOP module, and acquiring the interface log of the target interface according to the interface processing log.
In one possible design, the processor 501, when executing the computer program, further performs the following steps:
storing the interface log in a preset file according to a Logback log module; and acquiring a data increment of the preset file according to the DTS, and determining interface information according to the data increment.
In one possible design, the processor 501, when executing the computer program, further performs the following steps:
acquiring a retrieval request, and sending the retrieval request to a storage server so that the storage server acquires target interface information corresponding to the retrieval request according to the database; and receiving the target interface information returned by the storage server.
In one possible design, memory 502 may be separate or integrated with processor 501.
When the memory 502 is separately provided, the service server further includes a bus 503 for connecting the memory 502 and the processor 501.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the interface information storage method executed by the service server is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the interface information storage method executed by the service server is implemented.
An embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the interface information storage method executed by the service server is implemented.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to implement the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute some steps of the methods described in the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, 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 or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. An interface information storage method, characterized in that the method comprises:
acquiring a service request, and determining an interface monitoring type according to the service request;
executing service operation according to the service request, and acquiring interface information according to the interface monitoring type;
and sending the interface information to a storage server so that the storage server stores the interface information in a database.
2. The method of claim 1, wherein the obtaining interface information according to the interface listening type comprises:
determining a target interface according to the interface monitoring type and acquiring an interface log of the target interface;
and determining interface information according to the data increment of the interface log.
3. The method of claim 2, wherein the obtaining the interface log of the target interface comprises:
and acquiring an interface processing log of the target interface according to the slice-oriented AOP module, and acquiring the interface log of the target interface according to the interface processing log.
4. The method of claim 2, wherein determining interface information from data increments of the interface log comprises:
storing the interface log in a preset file according to a Logback log module;
and acquiring a data increment of the preset file according to a real-time synchronization tool DTS, and determining interface information according to the data increment.
5. The method according to any one of claims 1 to 4, further comprising, after the sending the interface information to a storage server:
acquiring a retrieval request, and sending the retrieval request to a storage server so that the storage server acquires target interface information corresponding to the retrieval request according to the database;
and receiving the target interface information returned by the storage server.
6. An interface information storage device, comprising:
the determining module is used for acquiring a service request and determining an interface monitoring type according to the service request;
the acquisition module is used for executing service operation according to the service request and acquiring interface information according to the interface monitoring type;
and the sending module is used for sending the interface information to a storage server so that the storage server stores the interface information in a database.
7. A traffic server, comprising: at least one processor and memory; the memory stores computer-executable instructions; the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the interface information storage method of any one of claims 1 to 5.
8. A distributed service system comprising at least one service server according to claim 7 and a storage server.
9. A computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the interface information storage method according to any one of claims 1 to 5.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the interface information storage method of any one of claims 1 to 5 when executed by a processor.
CN202011481358.2A 2020-12-15 2020-12-15 Interface information storage method and device, server and distributed service system Pending CN112650728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011481358.2A CN112650728A (en) 2020-12-15 2020-12-15 Interface information storage method and device, server and distributed service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011481358.2A CN112650728A (en) 2020-12-15 2020-12-15 Interface information storage method and device, server and distributed service system

Publications (1)

Publication Number Publication Date
CN112650728A true CN112650728A (en) 2021-04-13

Family

ID=75354287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011481358.2A Pending CN112650728A (en) 2020-12-15 2020-12-15 Interface information storage method and device, server and distributed service system

Country Status (1)

Country Link
CN (1) CN112650728A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553376A (en) * 2021-07-19 2021-10-26 建信金融科技有限责任公司 Financial insurance product publishing and retrieving method, device and system based on distributed architecture
CN114419717A (en) * 2022-01-27 2022-04-29 睿云联(厦门)网络通讯技术有限公司 Face detection and recognition acceleration method and system for terminal equipment
CN115102972A (en) * 2022-07-15 2022-09-23 济南浪潮数据技术有限公司 Method, device, equipment and medium for storing NFS (network file system) file
CN115604333A (en) * 2022-10-12 2023-01-13 江苏赛融科技股份有限公司(Cn) Distributed big data analysis service scheduling method and system based on dubbo

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804644A (en) * 2018-06-05 2018-11-13 中国平安人寿保险股份有限公司 Interface log storing method, device, computer equipment and storage medium
CN109040316A (en) * 2018-09-19 2018-12-18 天津字节跳动科技有限公司 HTTP service treating method and apparatus
CN110134528A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Interface message storage call method, device and the terminal device of micro services frame
CN110795322A (en) * 2019-10-28 2020-02-14 深圳前海环融联易信息科技服务有限公司 Service monitoring method and device, computer equipment and storage medium
CN110837454A (en) * 2019-11-05 2020-02-25 青岛聚看云科技有限公司 Interface monitoring processing method and server
CN111708589A (en) * 2020-06-17 2020-09-25 中国银行股份有限公司 Information processing system, method, device and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804644A (en) * 2018-06-05 2018-11-13 中国平安人寿保险股份有限公司 Interface log storing method, device, computer equipment and storage medium
CN109040316A (en) * 2018-09-19 2018-12-18 天津字节跳动科技有限公司 HTTP service treating method and apparatus
CN110134528A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Interface message storage call method, device and the terminal device of micro services frame
CN110795322A (en) * 2019-10-28 2020-02-14 深圳前海环融联易信息科技服务有限公司 Service monitoring method and device, computer equipment and storage medium
CN110837454A (en) * 2019-11-05 2020-02-25 青岛聚看云科技有限公司 Interface monitoring processing method and server
CN111708589A (en) * 2020-06-17 2020-09-25 中国银行股份有限公司 Information processing system, method, device and readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553376A (en) * 2021-07-19 2021-10-26 建信金融科技有限责任公司 Financial insurance product publishing and retrieving method, device and system based on distributed architecture
CN114419717A (en) * 2022-01-27 2022-04-29 睿云联(厦门)网络通讯技术有限公司 Face detection and recognition acceleration method and system for terminal equipment
CN115102972A (en) * 2022-07-15 2022-09-23 济南浪潮数据技术有限公司 Method, device, equipment and medium for storing NFS (network file system) file
CN115604333A (en) * 2022-10-12 2023-01-13 江苏赛融科技股份有限公司(Cn) Distributed big data analysis service scheduling method and system based on dubbo
CN115604333B (en) * 2022-10-12 2023-09-12 江苏赛融科技股份有限公司 Distributed big data analysis service scheduling method and system based on dubbo

Similar Documents

Publication Publication Date Title
CN112650728A (en) Interface information storage method and device, server and distributed service system
US10776174B2 (en) Managing hosted resources across different virtualization platforms
US10831614B2 (en) Visualizing restoration operation granularity for a database
US20240086421A1 (en) Method and Apparatus for Monitoring an In-memory Computer System
US9971823B2 (en) Dynamic replica failure detection and healing
CN110046133B (en) Metadata management method, device and system for storage file system
US20170235645A1 (en) Chained replication techniques for large-scale data streams
US10970190B2 (en) Hybrid log viewer with thin memory usage
CN111143286A (en) Cloud platform log management method and system
WO2017095820A1 (en) Methods and devices for acquiring data using virtual machine and host machine
US11178197B2 (en) Idempotent processing of data streams
CN116467275A (en) Shared remote storage method, apparatus, system, electronic device and storage medium
CN113157487A (en) Data recovery method and apparatus thereof
CN113110918A (en) Read-write rate control method and device, node equipment and storage medium
US9852203B1 (en) Asynchronous data journaling model in hybrid cloud
CN110309206B (en) Order information acquisition method and system
CN112187509A (en) Multi-architecture cloud platform execution log management method, system, terminal and storage medium
WO2022206054A1 (en) Material incremental processing method and apparatus, electronic device, and computer storage medium
US11886439B1 (en) Asynchronous change data capture for direct external transmission
CN114218303A (en) Transaction data processing system, processing method, medium and equipment
CN114116790A (en) Data processing method and device
US11947568B1 (en) Working set ratio estimations of data items in a sliding time window for dynamically allocating computing resources for the data items
CN111782588A (en) File reading method, device, equipment and medium
Sasidharan Implementation of High Available and Scalable Syslog Server with NoSQL Cassandra Database and Message Queue
US11853319B1 (en) Caching updates appended to an immutable log for handling reads to the immutable log

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210413

RJ01 Rejection of invention patent application after publication