Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for realizing hot upgrade of website version

A hot upgrade, website technology, applied in website content management, network data retrieval, program control design, etc., can solve the problems of inability to update, slow update of local cache and resource cache, reduce server pressure, improve user experience, Wide range of effects

Pending Publication Date: 2016-12-07
WUHAN DOUYU NETWORK TECH CO LTD
View PDF11 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the defects existing in the prior art, the purpose of the present invention is to provide a method and system for hot upgrading of the website version, which effectively solves the situation that the local cache and the resource cache are updated slowly or cannot be updated. Under the circumstances that the website completes the automatic upgrade, the pressure on the server is reduced

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
  • Method and system for realizing hot upgrade of website version
  • Method and system for realizing hot upgrade of website version

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0035] see figure 1 As shown, the embodiment of the present invention provides a method for realizing website version hot upgrade, including the following steps:

[0036] S1, when the website is loaded for the first time, the front-end or back-end creates a client-side cache, and the client-side cache includes cookie cache, static resource cache and session cache. The front end and the back end agree all the functions of the website into a functional status table in a unified format. The server sends the functional state table of the website to the front end, and stores it in the cookie cache of the client cache as a local state table. The local state table is parsed into an object array, and the object array includes the function code of the website and the version corresponding to the function code No.

[0037] S2, the client initiates a ...

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 method and a system for realizing the hot upgrade of a website version. The method comprises the following steps: S1: when a website is loaded for the first time, a front end or a rear end creates a client side cache, the front end and the rear end make an agreement on all functions of the website to obtain a function state table of a uniform format, a server sends the function state table to the front end, and the function state table is stored in the client side cache to serve as a local state table; S2: the client side initiates heartbeat to the server at certain time intervals, and requests to obtain the server state table of the server; S3: the client side compares the server state table with the local state table to judge whether the local state table is consistent with the server state table or not, S2 is started again if the local state table is consistent with the server state table, and otherwise, a performance function corresponding to the server state table is executed to update the corresponding function of the website; and S4: whether the function of the website succeeds in being updated or not is judged, if the function of the website succeeds in being updated, the local state table is updated to be consistent with the server state table and is stored in the client cache, and otherwise, S2 is started again.

Description

technical field [0001] The invention relates to the field of live website version update, in particular to a method and system for realizing hot upgrade of website version. Background technique [0002] The purpose of the website cache function is to improve website performance and reduce the pressure on the database caused by frequent data access. The client-side cache is mainly divided into three aspects, which are cookies, static resources and sessions. Cookies refer to the data stored on the user's local terminal by some websites in order to identify the user's identity and track the session, such as user nickname and function switch. Static resources are files sent directly to the client, such as pictures, scripts, and styles, etc. Sessions are used to maintain the association between users and different requests issued by the same user. [0003] There are the following problems in the prior art: 1. The website releases new functions, and website users cannot see the n...

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): G06F17/30G06F9/445
CPCG06F9/44573G06F16/986
Inventor 杜伟
Owner WUHAN DOUYU NETWORK TECH CO LTD