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

A micro-front-end architecture based on qiankun and Web Component and a construction method of the micro-front-end architecture

A construction method and architecture technology, applied in the field of front-end development and application, can solve problems such as difficult to achieve component and system isolation, system integration, difficult maintenance, difficult maintenance and expansion, etc., to achieve simple and intuitive use, small size, and simple functions Effect

Active Publication Date: 2022-01-28
CHINA ELECTRONICS TECH CYBER SECURITY CO LTD +1
View PDF11 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] (1) The front-end technology is changing with each passing day, and the rapid change of technology has caused the coexistence of systems using different technologies and development frameworks in the front-end project, which makes it difficult for later system integration and maintenance
There are already solutions at the operation and maintenance level that use nginx to proxy to different applications, but switching applications in this way will trigger browser refresh and affect user experience;
[0005] (2) With the continuous increase of business volume, the front-end project has gradually evolved into a complex monolithic front-end project, which is prone to conflicts during collaborative development and difficult to maintain and expand
[0006] (3) There are many repetitive tasks in front-end development, and improving code reusability is a problem that is constantly being explored in the front-end field
To achieve componentization in large-scale projects, it is necessary to ensure that components and systems do not affect each other. The current componentization scheme relies on the framework, and it is difficult to achieve complete isolation between components and systems

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
  • A micro-front-end architecture based on qiankun and Web Component and a construction method of the micro-front-end architecture
  • A micro-front-end architecture based on qiankun and Web Component and a construction method of the micro-front-end architecture
  • A micro-front-end architecture based on qiankun and Web Component and a construction method of the micro-front-end architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] refer to figure 1 As shown, the present invention discloses a method for constructing a micro-frontend architecture based on qiankun and Web Component. The method for constructing a micro-frontend architecture includes constructing a microservice architecture based on qiankun and constructing a general component library based on WebComponent.

[0037] qiankun is an Alibaba UMI implementation of Micro Frontens based on single-spa, which is a micro front-end framework. It adds more features on top of single-spa. The following are the features provided by qiankun: realize the loading of sub-applications, and provide HTML Entry on the basis of the original single-spa JS Entry; style and JS isolation; more life cycles: beforeMount, afterMount, beforeUnmount, afterUnmount; App preloading; global state management and global error handling.

[0038]The microservice architecture includes a main application and several sub-applications, each sub-application is registered in the...

Embodiment 2

[0061] The invention also discloses a micro front-end architecture based on qiankun and Web Component. The micro-frontend architecture includes a micro-service architecture and a common component library. Wherein, the micro-service architecture and the common component library are constructed according to the method for constructing the micro-frontend architecture in Embodiment 1.

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 micro-front-end architecture based on qiankun and Web Component and a construction method of the micro-front-end architecture. The construction method of the micro-front-end architecture comprises the steps of constructing a micro-service architecture based on the qiankun and constructing a universal component library based on the Web Component. The micro-service architecture comprises a main application and a plurality of sub-applications, each sub-application is registered in the main application, and the main application is configured as an entrance to realize access to each sub-application; the universal component library is configured to be a Web component library, components capable of being reused are provided for upper-layer applications, the component library does not limit technical stacks, and web components have the characteristics of being irrelevant to the technical stacks and at least support React components, Vue components and Angular components. According to the micro-front-end mode, the complex application is decomposed, so that the function of each sub-application is more concise, the dependence of the sub-applications is independent, the sub-applications can be allocated to different developers for maintenance, and compared with the mode that a whole development team maintains a large complex application, code conflicts possibly generated during development are reduced, and the development and maintenance difficulty is reduced.

Description

technical field [0001] The invention belongs to the field of front-end development and application, and in particular relates to a micro front-end architecture based on qiankun and Web Component and a construction method thereof. Background technique [0002] Microservice is an architecture and organizational form for developing software, which can split an application into multiple small modules, and each module can be developed, built, and deployed independently. The microservice architecture enables loose coupling of functionally independent modules, reduces the difficulty of software development, and improves the maintainability and later scalability of the software. [0003] There are already mature solutions for the microservice architecture in the backend field, but the microservice architecture in the frontend field has only gradually emerged in recent years, and all major teams are in the exploration stage. Front-end development faces the following problems: [00...

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): G06F8/36G06F8/70G06F21/31
CPCG06F8/36G06F8/70G06F21/31
Inventor 胡瑞雪曾曦曾平陈天莹王效武魏刚
Owner CHINA ELECTRONICS TECH CYBER SECURITY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products