Application server constant value dynamic update method and system

An application server and dynamic update technology, applied in the direction of program loading/starting, program control devices, etc., can solve the problem that the constant value of the application server cannot be updated in real time, so as to save bandwidth and server resources, reduce I/O operations, and reduce read The effect of taking the number of operations

Active Publication Date: 2016-12-14
ALIBABA GRP HLDG LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] This application provides a method and system for dynamically updating application server constant values ​​to solve the problem that application server constant values ​​cannot be updated in real time

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
  • Application server constant value dynamic update method and system
  • Application server constant value dynamic update method and system
  • Application server constant value dynamic update method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] refer to figure 1 , which shows Embodiment 1 of a method for dynamically updating an application server constant value of the present application, including the following steps:

[0045] Step 101, read and parse the constant file in the hard disk, and store the data in the constant file in the memory in the form of key-value pairs (key-value), where key represents a constant object, and value represents a constant value.

[0046] The constant file is placed in the publishing directory of the application server. The application server will perform initialization operations when it starts, automatically read and parse the constant file, and then store all the parsed constant data in the form of key-value pairs, that is, key-value in the application server's memory (singleton static instance). All module programs in the application server get the constant value from the memory (singleton static instance) according to the constant object key.

[0047] Step 102, scanning 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 method for dynamically updating the constant values of an application server. The method comprises the steps of: reading and analyzing constant files in a hard disk, and storing data in the constant files into a memory in a key-value mode, wherein the key represents a constant object, and the value represents a constant value; scanning the constant files in the hard disk, judging whether the constant files are changed or not, and if changed, reading the changed constant files; analyzing according to the key-value mode so as to obtain the changed constant objects and constant values; searching all the original constant values, which correspond to the changed constant objects, from the memory according to the changed constant objects; and clearing all the researched original constant values which correspond to the changed constant objects from the memory, and loading the changed constant values into the memory to replace the original constant values. The invention further provides a system for dynamically updating the constant values of the application server. By utilizing the method and the system for dynamically updating the constant values of the application server, the constant values of the application server can be updated in real time.

Description

technical field [0001] The present application relates to the technical field of computer data processing, in particular to a method and system for dynamically updating constant values ​​of application servers. Background technique [0002] In the traditional method, when the application server is running, the constant value in the system is fixed. Only when the application server is interrupted or restarted, the configuration or database data is artificially modified and the memory is refreshed, and the data read is called. The latest constant value can only be obtained by fetching the interface. This method of updating the constant value must be restarted or interrupted by the application server when the constant value changes, which will affect the normal operation of the application server, and if it does not affect the normal operation of the application server, it cannot be obtained in real time. New constant value, which will affect the module program using the corre...

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 Patents(China)
IPC IPC(8): G06F9/445
Inventor 李庆丰
Owner ALIBABA GRP HLDG 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