CN113094233A - Service resource identification and processing method - Google Patents

Service resource identification and processing method Download PDF

Info

Publication number
CN113094233A
CN113094233A CN202110397380.7A CN202110397380A CN113094233A CN 113094233 A CN113094233 A CN 113094233A CN 202110397380 A CN202110397380 A CN 202110397380A CN 113094233 A CN113094233 A CN 113094233A
Authority
CN
China
Prior art keywords
api
metadata
service
application 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.)
Pending
Application number
CN202110397380.7A
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.)
Guangzhou Joiway Information Technology Co ltd
Original Assignee
Guangzhou Joiway Information 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 Guangzhou Joiway Information Technology Co ltd filed Critical Guangzhou Joiway Information Technology Co ltd
Priority to CN202110397380.7A priority Critical patent/CN113094233A/en
Publication of CN113094233A publication Critical patent/CN113094233A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a method for identifying and processing service resources, which comprises the following steps: step 1: adding different description information to the AP I which is unavailable or changed back and forth in the application service through a group of metadata; step 2: starting application service to analyze the AP I marked by the metadata; and 3, step 3: the application service reports the analyzed AP I and the corresponding metadata; and 4, step 4: storing the AP I and corresponding metadata into a memory database; and 5, step 5: the application service intercepts all requests AP I for the service and takes out the stored AP I and corresponding metadata; and 6, step 6: the method and the device solve the technical problem that the change of the AP I in the distributed system causes unavailable service, and enable the call between the services in the distributed system to have self-healing capability and monitoring capability.

Description

Service resource identification and processing method
Technical Field
The invention relates to a method for identifying and processing service resources, belonging to the field of data processing and service calling.
Background
In an internet distributed system, data is dispersed in respective systems, and for a certain request resource (API), cooperative work among a plurality of application services is often required to be completed, and in the process, calling among the application services is one of the most critical steps. However, in the process of continuous iteration of the application service, the existing API of the service is often changed or even deleted, and for the change or deletion, the calling party cannot get feedback or cannot change the version of the calling API in time, and the real-time performance of data and the security of data cannot be guaranteed.
Disclosure of Invention
The invention is improved aiming at the problems existing in the prior art, namely the technical problems to be solved by the invention are as follows:
1. in the distributed system, for the deleted or changed API in a certain service, the API can be self-healed when being called by other services, and the monitoring alarm capability is provided;
2. the problem that in a distributed system (such as micro-service), due to the change of the external API of some services, the service calling the API continuously reports errors or cannot timely monitor that the API is still called in large quantity can be solved well, and the monitoring capability, the self-healing capability and the availability of the service are greatly improved.
In order to solve the above technical problems, the technical solution adopted by the present invention is to provide a method for identifying and processing service resources, specifically comprising:
a method for identifying and processing service resources comprises the following steps:
step 1: adding different description information to the unavailable or changed API in the application service through a group of metadata;
step 2: starting application service to analyze API marked by metadata;
and 3, step 3: the application service reports the analyzed API and the corresponding metadata;
and 4, step 4: storing the API and corresponding metadata into a memory database;
and 5, step 5: the application service intercepts all request APIs for the service and takes out the stored APIs and corresponding metadata;
and 6, step 6: and comparing the intercepted request API with the stored metadata corresponding to the API, and identifying and processing the service resources according to the comparison condition.
Further, the application service accesses a monitoring system or a simple log file which can collect and receive data.
Further, the method of the step 6 comprises:
A. if the API of the request exists and is not changed, the request is released and the called result is returned to the calling party;
B. the API of the request exists and is changed, a returned data body is modified according to the metadata description information, and the called IP and the called port are recorded;
C. if the API of the request is not available, recording the calling IP and the port, and returning corresponding data according to the metadata description;
furthermore, the recorded calling IP, port, API and description information are synchronized to a monitoring alarm system or stored in a log file in time;
furthermore, the caller service is changed in time according to the monitoring alarm system or the log file.
Further, the memory database in step 4 is a memory or a redis, and is used for storing the API and corresponding metadata.
Further, the metadata is jar public package.
Drawings
FIG. 1 is a flow chart of a method for identifying and processing service resources
Detailed Description
The following detailed description of embodiments of the present invention is not intended to limit the scope of the invention.
Example 1
A method for identifying and processing service resources is characterized by comprising the following steps:
step 1: adding different description information to the unavailable or changed API in the application service through a group of metadata;
the application service accesses a monitoring system or a simple log file which can collect and receive data;
the metadata is jar public packet;
step 2: starting application service to analyze API marked by metadata;
and 3, step 3: the application service reports the analyzed API and the corresponding metadata;
and 4, step 4: storing the API and corresponding metadata into a memory database;
in this embodiment, the memory database is a memory or a redis, and is used for storing an API and corresponding metadata;
and 5, step 5: the application service intercepts all request APIs for the service and takes out the stored APIs and corresponding metadata;
and 6, step 6: the intercepted request API is compared with the stored metadata corresponding to the API, and service resources are identified and processed according to the comparison condition;
the comparison method comprises the following steps:
A. if the API of the request exists and is not changed, the request is released and the called result is returned to the calling party;
B. the API of the request exists and is changed, a returned data body is modified according to the metadata description information, and the called IP and the called port are recorded;
C. if the API of the request is not available, recording the calling IP and the port, and returning corresponding data according to the metadata description;
and 7, step 7: the recorded calling IP, port, API and description information are synchronized to a monitoring alarm system in time or stored in a log file;
and 8, step 8: and timely changing the caller service according to the monitoring alarm system or the log file.
The invention has the beneficial effects that: the technical problem that the services are unavailable due to API change in the distributed system is solved, and the calling among the services in the distributed system has self-healing capability and monitoring capability.

Claims (7)

1. A method for identifying and processing service resources is characterized by comprising the following steps:
step 1: adding different description information to the unavailable or changed API in the application service through a group of metadata;
step 2: starting application service to analyze API marked by metadata;
and 3, step 3: the application service reports the analyzed API and the corresponding metadata;
and 4, step 4: storing the API and corresponding metadata into a memory database;
and 5, step 5: the application service intercepts all request APIs for the service and takes out the stored APIs and corresponding metadata;
and 6, step 6: and comparing the intercepted request API with the stored metadata corresponding to the API, and identifying and processing the service resources according to the comparison condition.
2. The method as claimed in claim 1, wherein the application service accesses a monitoring system or a simple log file capable of collecting and receiving data.
3. The method of claim 2, wherein the step 6 comprises:
A. if the API of the request exists and is not changed, the request is released and the called result is returned to the calling party;
B. the API of the request exists and is changed, a returned data body is modified according to the metadata description information, and the called IP and the called port are recorded;
C. the API of the request is unavailable, the calling IP and the port are recorded, and corresponding data are returned according to the metadata description.
4. The method of claim 3, wherein the recorded calls to IP, port, API and description information are synchronized to a monitoring alarm system or stored in a log file.
5. The method of claim 4, wherein the caller service is modified in time based on a monitoring alarm system or a log file.
6. The method as claimed in claim 1, wherein the memory database in step 4 is a memory or a redis for storing an API and corresponding metadata.
7. The method of claim 1, wherein the metadata is jar public pack.
CN202110397380.7A 2021-04-14 2021-04-14 Service resource identification and processing method Pending CN113094233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110397380.7A CN113094233A (en) 2021-04-14 2021-04-14 Service resource identification and processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110397380.7A CN113094233A (en) 2021-04-14 2021-04-14 Service resource identification and processing method

Publications (1)

Publication Number Publication Date
CN113094233A true CN113094233A (en) 2021-07-09

Family

ID=76676984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110397380.7A Pending CN113094233A (en) 2021-04-14 2021-04-14 Service resource identification and processing method

Country Status (1)

Country Link
CN (1) CN113094233A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157709A (en) * 2021-11-05 2022-03-08 广州九尾信息科技有限公司 Method for encrypting and desensitizing distributed service data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664316A (en) * 2017-03-31 2018-10-16 华为技术有限公司 A kind of method and apparatus for the interface message obtaining API
CN109739573A (en) * 2018-12-27 2019-05-10 深圳市多度科技有限公司 Realize the processing method and processing device that api interface calls, the system for realizing api interface
CN110244952A (en) * 2019-05-09 2019-09-17 恩亿科(北京)数据科技有限公司 The management method and computer readable storage medium of application programming interface document
CN112217684A (en) * 2020-12-03 2021-01-12 长沙树根互联技术有限公司 API gateway monitoring method, device and system
CN112506587A (en) * 2020-11-26 2021-03-16 杭州朗澈科技有限公司 API deployment monitoring method, system, electronic device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664316A (en) * 2017-03-31 2018-10-16 华为技术有限公司 A kind of method and apparatus for the interface message obtaining API
CN109739573A (en) * 2018-12-27 2019-05-10 深圳市多度科技有限公司 Realize the processing method and processing device that api interface calls, the system for realizing api interface
CN110244952A (en) * 2019-05-09 2019-09-17 恩亿科(北京)数据科技有限公司 The management method and computer readable storage medium of application programming interface document
CN112506587A (en) * 2020-11-26 2021-03-16 杭州朗澈科技有限公司 API deployment monitoring method, system, electronic device and storage medium
CN112217684A (en) * 2020-12-03 2021-01-12 长沙树根互联技术有限公司 API gateway monitoring method, device and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157709A (en) * 2021-11-05 2022-03-08 广州九尾信息科技有限公司 Method for encrypting and desensitizing distributed service data
CN114157709B (en) * 2021-11-05 2024-03-15 广州九尾信息科技有限公司 Distributed service data encryption and desensitization method

Similar Documents

Publication Publication Date Title
US20110004917A1 (en) Integration Platform for Collecting Security Audit Trail
CN111935082B (en) Network threat information correlation analysis system and method
AU2016338689A1 (en) Call detail record analysis to identify fraudulent activity and fraud detection in interactive voice response systems
CN105119752A (en) Distributed log acquisition method, device and system
CN108038039B (en) Method for recording log and micro-service system
CN105516266B (en) A kind of business monitoring method, system and relevant device
CN110727560A (en) Cloud service alarm method and device
CN111241049B (en) Distributed operation log realization system based on micro-service architecture
CN109842621A (en) A kind of method and terminal reducing token storage quantity
CN113094233A (en) Service resource identification and processing method
CN108111328B (en) Exception handling method and device
US9112881B2 (en) Presence-based caller identification
CN113419924B (en) Database operation risk prompt processing method and device based on session maintenance
CN110865918A (en) Database monitoring method and device, computer equipment and storage medium
CN114756530B (en) Client information processing method based on bastion machine
US20220303360A1 (en) Reduction of data transmissions based on end-user context
CN115664992A (en) Network operation data processing method and device, electronic equipment and medium
CN114185681A (en) Automatic current-limiting processing method and device
CN109348053B (en) Telephone number mark processing method, server, terminal device and computer readable storage medium
CN113438250A (en) Abnormal event processing method and equipment
CN113014455A (en) Method for monitoring network request frequency
CN115174683B (en) Request method and system for calling query interface
CN111782428A (en) Data calling system and method
CN117093639B (en) Socket connection processing method and system based on audit service
CN114884807A (en) Link log generation method and device, Internet of things platform and storage medium

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210709