Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Service implementation method and device

An implementation method and business technology, applied in the field of Chain of Responsibility, which can solve the problems such as the inability to dynamically update and delete the nodes of the Chain of Responsibility and the inflexibility of the configuration of the Chain of Responsibility mode, so as to achieve the effect of decoupling

Pending Publication Date: 2021-08-20
POSBANK
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of this application is to provide a service implementation method, device, computer-readable storage medium and processor to solve the problems in the prior art that the configuration of the traditional chain of responsibility model is not flexible, and the nodes of the chain of responsibility cannot be dynamically updated and deleted

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
  • Service implementation method and device
  • Service implementation method and device
  • Service implementation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0078] This embodiment relates to a specific service realization method. Specifically, it involves a method of adding new logic on the original chain of responsibility. If you insert a new logical checkpoint into the existing monitoring logic, you only need to combine the configuration maintenance module and modify the relevant logic plug-in to rearrange the existing logic chain (that is, modify the logic processing module in the project plug-in directory), and the maintenance cost is very high. Small. If a new logical processing module is added, the business code does not need to be changed, and the operation of the chain of responsibility verification module is as follows: image 3 shown. The specific operation steps are as follows:

[0079] 1) Modify the original logic 2: the next event type points to the new logic, and put the logic processing module corresponding to the new logic into the project plug-in directory again.

[0080] 2) Write new logic n: the next event t...

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 provides a service implementation method and device, a computer readable storage medium and a processor. The method comprises the following steps: formulating a project plug-in directory, wherein the project plug-in directory comprises a plurality of logic processing modules; dynamically updating the logic processing module according to the service demand to obtain an updated logic processing module; and calling the updated logic processing module to realize a service function. According to the technical scheme, the service function can be realized by updating the logic processing module in the project plug-in directory, that is, when the demand of the service changes, the project code does not need to be modified, logic arrangement does not need to be carried out again and the project does not need to be restarted, the coupling between the service logic and the project code is relieved, and the service demand is quickly responded.

Description

technical field [0001] The present application relates to the technical field of chain of responsibility, in particular, to a service implementation method, device, computer-readable storage medium and processor. Background technique [0002] In the process of building a microservice project, when implementing a business module, it is inevitable to do some logical processing with strong correlation. For example, when a resource is deleted, the associated processing module needs to release the binding relationship with the deleted resource, and there may be other processing logic in the follow-up. Each processing module is equivalent to an atomic service, which is realized through combination orchestration overall functionality. At present, it is mainly realized by using interceptors and responsibility chains in business modules, and developers develop codes for business orchestration. If you add new logic or modify the original logic, you need to modify the project code, r...

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/65G06F8/30G06F9/445
CPCG06F8/65G06F8/31G06F9/44526
Inventor 朱礼华冯志强郝巍郭笑天彭庚
Owner POSBANK
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products