Task timing execution method and device of Stringboot micro-service framework, equipment and medium

An execution method and task execution technology, applied in the field of microservices, can solve problems such as bad experience

Inactive Publication Date: 2019-05-03
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF9 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the native springboot microservice, it provides a solution to implement timing tasks. By adding annotations, a method can be started at regular intervals or executed cyclically according to cron expressions, but this method is only suitable for the simplest scenarios. In a step-by-ste

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
  • Task timing execution method and device of Stringboot micro-service framework, equipment and medium
  • Task timing execution method and device of Stringboot micro-service framework, equipment and medium
  • Task timing execution method and device of Stringboot micro-service framework, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0038] see figure 1 As shown, the embodiment of the present application discloses a task timing execution method of the springboot micro-service framework, including:

[0039] Step S11: Create a registration center.

[0040] Step S12: registering each microservice node in the springboot microservice framework to the registration center, so as to establish a communication connection between each microservice node and the registration center.

[0041] Step S13: Timing trigger task e...

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 discloses a task timing execution method and device of a spergboot micro-service framework, equipment and a medium. The task timing execution method comprises: creating a registration center; Registering each micro-service node in the spergboot micro-service framework to the registration center so as to establish a communication connection between each micro-service node and the registration center; Regularly triggering a task execution command; And through the registration center, generating a target number corresponding to the task execution command, and sending the target number to one micro-service node in the spring micro-service framework, so as to execute a task uniquely corresponding to the target number in a task database through the micro-service node. According tothe technical scheme, one task is executed only by one micro-service node, and the same task is prevented from being repeatedly executed by multiple nodes.

Description

technical field [0001] The present application relates to the technical field of microservices, and in particular to a method, device, device and medium for regularly executing tasks of a springboot microservice framework. Background technique [0002] With the development of information technology, the system architecture scheme is also constantly developing and changing. From the initial single system architecture scheme to the later multi-module architecture scheme, the emergence of each scheme has improved the stability and stability of the system at the basic level. performance. In recent years, the concept of microservices has emerged. The concept of microservices is to divide a large system into different small services according to functional modules. Each service can run independently and provide services to the outside world. Communicate with services through REST or encapsulated protocols. The more popular microservice frameworks now include dubbo, springboot, e...

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): H04L29/08
Inventor 郭涛胡雷钧张东
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD
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