Skip to Content
微前端设计与实现
book

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
118
6
6.1
 自动化原理
使用微前端时,我们需要持续优化自动化流水线,否则可能会影响项目交付,特别是项目
一旦失败,会打击开发人员的信心,也会影响企业发展。如果你对持续集成、持续交付或
者持续部署的最佳实践有清晰的认知,那么你一定知道自动化的重要性。
持续集成
持续交付
持续部署
本书不会深入探讨持续集成、持续交付和持续部署,但我们需要了解这三种策略之间
的区别。持续集成定义了一种策略:每当代码合入分支时,自动化流水线开始执行,
在代码合入发布分支前进行自动化测试。持续交付是在持续集成的基础上,只需在部
署平台上点击按钮即可生成可部署的产出。持续部署则更进一步,直接把版本控制系
统中提交的代码部署到生产环境中。如果你有兴趣了解更多信息,我推荐阅读 David
Farley Jez Humble 的《持续交付:发布可靠软件的系统方法》。
为了提升自动化的速度和可靠性,我们需要遵循以下几个原则。
尽可能缩短反馈周期。
持续迭代。
让团队能够为他们所负责的微前端做出正确的决策。
确定边界(也称为围栏),让团队在边界之内维持工具标准化,同时持续运作、做出决策。
确定可靠的测试策略。
接下来,让我们详细讨论一下,以便更好地理解如何利用这些原则。
6.1.1
 反馈周期尽可能短
优秀的自动化流水线的关键特征之一是执行速度快。每条自动化流水线都应该有一个快速
反馈机制,能够快速为开发人员提供代码准入反馈。良好的自动化流水线应该在几秒钟内
(最多几分钟内)提供反馈。对开发人员来说,持续收到反馈能够鼓励他们更频繁地使用 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python语言及其应用(第2版)

Python语言及其应用(第2版)

Bill Lubanovic

Publisher Resources

ISBN: 9787115595089