Skip to Content
Dismiss
創新
專為 AI 打造的平台

整合式、自動化、可將資料轉化為高效情報。

深入了解
Dismiss
拉斯維加斯,6 月 16-18 日
Pure//Accelerate® 2026

探索如何完整釋放資料價值。 

立即報名

什麼是微前端?

什麼是微前端?

大多數開發人員都聽說過微服務架構,但微前端是一個較不為人知的術語。顧名思義,微前端的概念與微服務相似。它試圖解決與單體式應用程式相同的許多問題。它們太大、難以合作,也難以改變。讓新人加入工作,可能會帶來痛苦。此外,如果多個團隊正在處理應用程式的不同部分,他們將需要互相協調所有變更。

微服務可協助您將後端拆分為更獨立的服務。相同的方法可以用來將單頁應用程式(SPAs)分割為較小的應用程式,另外還需要一個“orchestrator”,可以將不同的零件裝回,讓使用者仍然遇到 SPA 行為。

微前端架構有哪些替代方案?

當然,還有其他方法可以處理大型應用程式的一些不想要的方面,例如將部分程式碼分成自己的 npm 套件。這可以解決部分問題,例如 Repo 太大。例如,在 Angular 中,您也可以將程式碼分開到可延遲載入的模組中。這可以允許應用程式在某種程度上進行垂直分割。但它也有缺點,像是在更新其中一個相依性時,必須建立頂級專案。此外,開發人員體驗也不那麼好。使用任何類型的框架時,最好將所有內容升級到相同版本,但這是一項巨大的承諾,沒有人會興奮不已。您也可以選擇透過 iframe 將多個應用程式結合在一起。它使它們獨立,但我認為可能過於獨立,因為應用程式間通訊是一個問題,共享程式碼、風格等也是問題。 

微前端救援?

微前端是這兩種方法的組合。與 SPA 相比,每個微前端都是一個獨立的應用程式。它不是編譯至 index.html 與連結的指令碼和樣式檔案,而是編譯至 JavaScript 模組。代碼並非主要應用程式的 iframe,而是定義當 URL 與某些模式相符時,模組就會延遲載入並放置在特定位置。有鑑於此,我們在同一頁上可以有多個應用程式相互連結。

因此,微前端無需處理應用程式配置和基本 CSS 規則,這些規則只能在主應用程式中處理。同樣有益的一點是,如果我有多個微前端使用相同版本的 React,我可以讓他們分享 React 模組。不必為每個微前端分別下載。JS 模組有不同版本也沒問題。

微前端的主要擔憂是確保其風格不會溢流到應用程式的其他部分。幸運的是,最常用的 UI 框架有工具可以輕鬆處理。

微前端架構的模具

編寫自己的程式碼來載入微前端應用程式,將是一項相當大的任務。幸運的是,有多個架構可以處理調度,並提供工具將最常用架構寫入的應用程式轉換為微前端格式。

在 Pure,我們選用了 single-spa。我們發現的主要好處是容易理解、為 JS 框架提供廣泛的支援,並有詳細的文件記錄。此外,single-spa 提供多種類型的微前端,每種前端都適合稍有不同的工作。

目前,我們只使用“應用程式”類型,因為從 SPA 移至微前端最容易使用。其他類型也需要更詳細的微前端架構。此外,single-spa 作者建議將“應用程式”作為預設值。

應用程式

包裹

公用事業

路線規劃

一條或多條航線

API

宣告式 API

必備 API

匯出介面

UI

渲染使用者介面

渲染使用者介面

能呈現使用者介面

生命週期

single-spa

擁有

無生命週期的外部模組

使用時機

基本建置組塊

用於不同架構的元件

邏輯分享

Slide

使用 single-SPA 架構打造微前端

目前,我們正使用 single-SPA 來搭配一個更大的應用程式,這些應用程式目前大約包含五個微前端。有時,與主要應用程式開發團隊相比,不同的團隊正在努力開發這些微前端。幸運的是,從改用微端沿以來的六個月內,我們沒有報告任何問題。我們也非常高興,主要應用程式不像以前那樣誇張,可以更輕鬆地升級。此外,在增加新功能時,我們不必擔心副作用,因為通常使用微前端。在不久的將來,我們希望分割 Pure 開發的其他大型應用程式的前端,因為這些應用程式的優勢可能也相當重要。如果您面臨與我們相同的問題,我們建議您試試看微前端。

03/2026
The Past, Present and Future of the Telecom Cloud | Everpure
In this white paper, we briefly examine the history of the telecom cloud, as well as the current state of the technology and where it’s heading.
白皮書
8 頁

查看重要資訊與活動

商展
Pure//Accelerate® 2026
June 16-18, 2026 | Resorts World Las Vegas

準備好參加今年度為您帶來最大價值的活動了嗎?

立即報名
PURE360 示範
探索、認識、體驗 Everpure。

存取隨取隨用影片與示範,了解 Everpure 的強大功效。

觀賞示範影片
影片
觀看影片:企業級資料雲端的價值。

Charlie Giancarlo 討論管理為何管理資料才是未來趨勢,而非儲存設備。發掘整合式做法如何革新企業級 IT 作業。

立即觀看
資源
傳統儲存裝置無法驅動未來。

現代化工作負載需求必須達到 AI 級速度、安全性與規模。您的技術棧準備好了嗎?

進行評估
您的瀏覽器已不受支援!

較舊版的瀏覽器通常存在安全風險。為讓您使用我們網站時得到最佳體驗,請更新為這些最新瀏覽器其中一個。

Personalize for Me
Steps Complete!
1
2
3
Personalize your Everpure experience
Select a challenge, or skip and build your own use case.
迎向未來的虛擬化策略

因應所有需求的儲存方案

任意規模皆可實行 AI 專案

資料管道、訓練、推論專用的高效能儲存裝置

防護資料遺失問題

保衛資料的網路彈性解決方案

降低雲端作業成本

Azure、AWS 與私有雲專用的高成本效益儲存裝置

加速應用程式與資料庫效能

低延遲儲存裝置,達成應用程式高效能

降低資料中心耗能與空間使用

高效資源運用的儲存裝置,改善資料中心運用率

Confirm your outcome priorities
Your scenario prioritizes the selected outcomes. You can modify or choose next to confirm.
Primary
Reduce My Storage Costs
Lower hardware and operational spend.
Primary
Strengthen Cyber Resilience
Detect, protect against, and recover from ransomware.
Primary
Simplify Governance and Compliance
Easy-to-use policy rules, settings, and templates.
Primary
Deliver Workflow Automation
Eliminate error-prone manual tasks.
Primary
Use Less Power and Space
Smaller footprint, lower power consumption.
Primary
Boost Performance and Scale
Predictability and low latency at any size.
What’s your role and industry?
We've inferred your role based on your scenario. Modify or confirm and select your industry.
Select your industry
Financial services
Government
Healthcare
Education
Telecommunications
Automotive
Hyperscaler
Electronic design automation
Retail
Service provider
Transportation
Which team are you on?
Technical leadership team
Defines the strategy and the decision making process
Infrastructure and Ops team
Manages IT infrastructure operations and the technical evaluations
Business leadership team
Responsible for achieving business outcomes
Security team
Owns the policies for security, incident management, and recovery
Application team
Owns the business applications and application SLAs
Describe your ideal environment
Tell us about your infrastructure and workload needs. We chose a few based on your scenario.
Select your preferred deployment
Hosted
Dedicated off-prem
On-prem
Your data center + edge
Public cloud
Public cloud only
Hybrid
Mix of on-prem and cloud
Select the workloads you need
Databases
Oracle, SQL Server, SAP HANA, open-source

Key benefits:

  • Instant, space-efficient snapshots

  • Near-zero-RPO protection and rapid restore

  • Consistent, low-latency performance

 

AI/ML and analytics
Training, inference, data lakes, HPC

Key benefits:

  • Predictable throughput for faster training and ingest

  • One data layer for pipelines from ingest to serve

  • Optimized GPU utilization and scale
Data protection and recovery
Backups, disaster recovery, and ransomware-safe restore

Key benefits:

  • Immutable snapshots and isolated recovery points

  • Clean, rapid restore with SafeMode™

  • Detection and policy-driven response

 

Containers and Kubernetes
Kubernetes, containers, microservices

Key benefits:

  • Reliable, persistent volumes for stateful apps

  • Fast, space-efficient clones for CI/CD

  • Multi-cloud portability and consistent ops
Cloud
AWS, Azure

Key benefits:

  • Consistent data services across clouds

  • Simple mobility for apps and datasets

  • Flexible, pay-as-you-use economics

 

Virtualization
VMs, vSphere, VCF, vSAN replacement

Key benefits:

  • Higher VM density with predictable latency

  • Non-disruptive, always-on upgrades

  • Fast ransomware recovery with SafeMode™

 

Data storage
Block, file, and object

Key benefits:

  • Consolidate workloads on one platform

  • Unified services, policy, and governance

  • Eliminate silos and redundant copies

 

What other vendors are you considering or using?
Thinking...
Your personalized, guided path
Get started with resources based on your selections.