Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method for accelerating front-end isomorphic application program

A technology of application program and main thread, applied in the field of communication, can solve the problems of blocking nodejs event loop, increasing the overall development cost, reducing system throughput, etc., to achieve the effect of reducing development cost, improving concurrent processing capability, and improving efficiency

Pending Publication Date: 2019-10-15
车轮互联科技(上海)股份有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The asynchronous single-threaded nature of nodejs determines that it cannot handle CPU-intensive tasks
At present, mainstream front-end and back-end isomorphic applications render component templates based on a single-thread synchronous rendering mode, and complex component template rendering is a CPU-intensive task. In high-concurrency scenarios, it will seriously block the nodejs event loop and reduce system throughput. quantity
In some large business scenarios, in order to increase the concurrent processing capabilities of such applications, hardware load balancing devices have to be added, which increases the overall development cost

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 for accelerating front-end isomorphic application program
  • Method for accelerating front-end isomorphic application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0026] It should be noted that the terms "first" and "second" in the specification and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific order or sequence. It should be understood that the data so used may be interchanged under appropriate circumstances for ...

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 for accelerating a front-end isomorphic application program, being characterized by comprising the following steps: 1) extracting an HTML framework and an HTML component of an HTML page; 2) receiving the HTML page request by the nodejs, rendering an HTML skeleton in a main thread, and rendering the HTML component in a working thread; and 3) assembling and outputting the HTML skeleton and the HTML component rendered in the step 2) to a client. The method has the advantages that through brand-new thread processing of nodejs, the concurrent processing capability of the nodejs in the front-end and rear-end isomorphic rendering model is improved, and the efficiency is improved, and the overall development cost is reduced.

Description

technical field [0001] This application relates to the communication field, and in particular, relates to a method for accelerating front-end isomorphic application programs. Background technique [0002] At present, isomorphic (isomorphic) applications based on MVVC class development frameworks (such as react, vue, etc.) at the front end rely heavily on nodejs. The asynchronous single-threaded nature of nodejs determines that it cannot handle CPU-intensive tasks. At present, mainstream front-end and back-end isomorphic applications are based on single-thread synchronous rendering mode for component template rendering, and complex component template rendering is a CPU-intensive task. In high-concurrency scenarios, it will seriously block the nodejs event loop and reduce system throughput. quantity. In some large business scenarios, in order to increase the concurrent processing capabilities of such applications, hardware load balancing devices have to be added, thereby inc...

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/20G06F9/52
CPCG06F8/20G06F9/52
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
Eureka Blog
Learn More
PatSnap group products