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

Spring boot instance concurrent processing method and device

A processing method and processor technology, applied in the computer field, can solve problems such as system crashes, increased code volume, and low system operating efficiency, and achieve effective lifecycle management, reduce code usage, and improve concurrency performance

Pending Publication Date: 2020-12-22
POTEVIO INFORMATION TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, in a large-scale concurrent scenario, each class needs to be declared separately, which increases the amount of code, is very cumbersome in actual use, and the system operation efficiency is low
Moreover, when the instances are concurrent without limit, it is easy to cause the system to crash, and it is impossible to effectively manage the life cycle of concurrent instances

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
  • Spring boot instance concurrent processing method and device
  • Spring boot instance concurrent processing method and device
  • Spring boot instance concurrent processing method and device

Examples

Experimental program
Comparison scheme
Effect test

example

[0131] The instance creation unit is used to create a new instance according to the current memory information and class priority if it is determined that there is no idle instance in the instance pool, wherein the configuration file also includes several pre-configured class priority class.

[0132] Based on any of the above embodiments, further, the instance creation unit is specifically used for:

[0133] If it is judged that the current memory is sufficient, create a new instance for each class that can be executed concurrently;

[0134] If it is judged that the current memory is insufficient to create a new instance for each class that can be executed concurrently, a new instance is created for a class that can be executed concurrently with a higher priority.

[0135] Based on any of the above embodiments, further, the performance management module includes a thread multiplexing unit and a thread creation unit, wherein:

[0136] The thread multiplexing unit is used to m...

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 embodiment of the invention provides a spring boot instance concurrent processing method and device, and the method comprises the steps: obtaining instance concurrent request information of a spring boot, wherein the instance concurrent request information comprises a stack of a to-be-executed class; obtaining a declaration which is input by a user and is carried out on the class of the stacktop of the stack; determining classes which can be concurrently executed in the stack according to a configuration file pre-configured by a user; and concurrently processing the classes which can be concurrently executed to generate corresponding examples. According to the spring boot instance concurrent processing method and device provided by the embodiment of the invention, by taking over the instance concurrent processing task of the spring boot, the user only needs to declare the class at the stack top of the stack of the to-be-executed class without declaring each required class, so thatthe code usage amount is reduced, the steps in actual use are simplified, and the concurrent performance of the spring boot instance is improved. Effective life cycle management on the instance is realized through the configuration file.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for concurrent processing of spring boot instances. Background technique [0002] Spring boot is a new framework provided by the Pivotal team, which is designed to simplify the initial construction and development process of new spring applications. The framework uses a specific approach to configuration, so that developers no longer need to define boilerplate configuration. Due to the convenience and speed of spring boot, it is widely used in web projects at this stage. [0003] In large-scale concurrent scenarios, the single-instance mode will inevitably cause performance processing bottlenecks, and it is necessary to generate multiple instances to process business concurrently to ensure efficiency. To this end, spring boot provides annotations to indicate that a class can generate any number of memory instances. [0004] In order to ensure the stabilit...

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/71
CPCG06F8/71Y02D10/00
Inventor 马明
Owner POTEVIO INFORMATION TECH
Features
  • Generate Ideas
  • 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