Supercharge Your Innovation With Domain-Expert AI Agents!

Implementation method of fuse

An implementation method and fuse technology, applied in the field of JAVA development, can solve problems such as multiple repeated codes, reduce efficiency, increase development workload, etc., and achieve the effect of improving work efficiency, reducing complexity, and improving development and adjustment work

Pending Publication Date: 2020-01-24
G CLOUD TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, the system will add a lot of repetitive code, increase the development workload, and reduce efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Implementation method of fuse
  • Implementation method of fuse

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] See figure 1 Shown is the specific implementation flow chart of the fuse of the present invention; its implementation method basically includes the following steps:

[0026] S10: Define the basic implementation class of the fuse.

[0027] The basic implementation class of the fuse is BaseHystrix, which implements the commonMethod of the system's general fuse processing method, such as recording exception logs, email notifications, SMS queues, etc. The main function of this class is to enable other fuses in the system to implement dynamic calling methods; parameters such as daily information can be passed in the method body.

[0028] S20: Define the interface UserClient for remote calling of the business module.

[0029] The methods of this interface are defined according to different business functions; for example, if there are add, delete, modify, and query functions in the user module, methods such as addUser, delUser, updateUser, and listUser can be added to this ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of JAVA development, in particular to an implementation method of a fuse on the basis of a spring cloud and a micro-service framework. The implementation method comprises the following steps: distinguishing a quick isolation method required to be realized by the fuse into a parent class and a child class, wherein the universal processing method is classified into a parent class, and the dynamic method is classified into a child class, and the parent class method is basically unchanged, and the child class processing method realizes dynamic creationas required. According to the implementation method, the development workload of the fuse is reduced, and the working efficiency is improved, and dynamic implementation fuse.

Description

technical field [0001] The invention relates to the technical field of JAVA development, in particular to a method for realizing a fuse. Background technique [0002] At present, in the microservice architecture, in order to facilitate the early development of the system and the later upgrade, maintenance, and submit work efficiency, the system is generally divided into multiple service units. Each service unit depends on each other through service registration and subscription. At the same time, in each service unit, there will be situations where services call each other. This may cause the call to fail due to network problems or the failure of the dependent service unit itself. If the system calls a large number of service units that have failed at this time, it will eventually cause a backlog of requests due to waiting for the response of the unit, and eventually lead to the paralysis of the entire system. [0003] In order to solve this problem, the fuse technology i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/30
CPCG06F8/315
Inventor 关班记季统凯
Owner G CLOUD TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More