Implementation method of queue for processing declarative events

An implementation method and declarative technology, applied in the field of queue implementation, can solve problems such as overload processing and failure, and achieve the effects of improving robustness, increasing processing speed, and reducing repeated processing

Pending Publication Date: 2020-11-17
成都精灵云科技有限公司
View PDF8 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Based on the above problems, the present invention provides a method for implementing a queue for processing declarative events, which solves the problem of repeated processing, overload processing, and concurrency of normal events in failure events caused by the existing process returning the failure event to the queue as a normal event. Dealing with the problem

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 queue for processing declarative events

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The present invention will be further described below in conjunction with the accompanying drawings. Embodiments of the present invention include, but are not limited to, the following examples.

[0029] Such as figure 1 As shown, a method for implementing a queue for processing declarative events includes the following steps:

[0030] S1. Create a queue. When an event is added to the queue, it will be checked by the de-weighter. The de-weighter only allows non-existing events to be added to the queue;

[0031] When creating a queue, you need to specify the capacity of the queue, the speed limit rate, and the method for generating the unique key identifier of the event in each queue. Among them, the generation function is used to generate a unique key identifier for the event, and the deduplicator is a check before the event is added to the queue. Logic, which is used to judge whether the same event already exists in the queue according to the unique key identifier. I...

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 field of cloud platform event processing, in particular to an implementation method of a queue for processing declarative events, which comprises the following steps of: S1, creating a queue, checking by a de-weighting device before the events are added into the queue, and only allowing the events which do not exist to be added into the queue by the de-weighting device; S2, arranging a plurality of events in the queue in a stacking manner according to a priority sequence; S3, controlling a processor to obtain the frequency of the event from the queue through a speed governor; and S4, the processor carrying out state transition processing on the event, wherein if processing succeeds, references to the event in the de-weighting device are eliminated, state transition processing of the next event is carried out, and if processing fails, the event which fails to be processed by the processor is added into the de-weighting device again after failure times are recorded by the back-off device, the priority is lowered and the processing time is delayed. The problems of repeated processing, overload processing and concurrent processing of normal events of failure events due to the fact that failure event return queues serve as the normal events to be continuously processed in an existing process are solved.

Description

technical field [0001] The invention relates to the technical field of cloud platform event processing, in particular to a method for realizing a queue for processing declarative events. Background technique [0002] At present, the existing process for a cloud platform to realize the transfer of the current state of resources to the desired state is as follows: [0003] Step 1. Query to obtain the current state of the specified resource, and put it into the pending queue; Step 2, obtain the pending event from the queue, and compare the gap between the current state and the expected state; Step 3, process resource changes according to the gap; Fourth, if the processing is successful, the processing of the resource is ended; step five, if the processing fails, continue processing according to the state gap. [0004] There are following technical problems for above-mentioned existing flow process: [0005] 1. If there is already a status change event of a resource in the que...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F9/48
CPCG06F9/546G06F9/4806G06F9/4881
Inventor 晏东吴晓勇安露明范青松
Owner 成都精灵云科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products