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

A micro-frontend architecture and its construction method based on qiankun and web Component

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

Active Publication Date: 2022-04-22
CHINA ELECTRONICS TECH CYBER SECURITY CO LTD +1
View PDF11 Cites 0 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-frontend architecture and its construction method based on qiankun and web Component
  • A micro-frontend architecture and its construction method based on qiankun and web Component
  • A micro-frontend architecture and its construction method based on qiankun and web Component

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; Application preloading; global state management and global error handling.

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

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 thereof. The construction method of the micro-front-end architecture includes building a micro-service architecture based on qiankun and building a general component library based on Web Component; the micro-service architecture includes a main application and several Sub-applications, each sub-application is registered in the main application, and the main application is configured as an entry point to realize access to each sub-application; the general component library is configured as a Web Component component library to provide reusable components for upper-level applications, and the component library does not Restricting the technology stack, web components have technology-stack-independent features, and at least support React components, Vue components, and Angular components. This micro-frontend model makes the functions of each sub-application more concise by decomposing complex applications. The dependencies of sub-applications are independent, and sub-applications can be assigned to different developers for maintenance. Compared with the entire development team maintaining a large and complex application. In other words, the code conflicts that may occur during development are reduced, and the difficulty of development and maintenance 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 Patents(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