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

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
构建和部署微前端
123
6.2.3
 环境策略
开发体验的另一个需要考虑的问题是使团队能够根据公司的环境策略开展工作。中型组织
和大型组织最常用的策略是测试环境、预发布环境和生产环境的组合。测试环境通常是三
个环境中最不稳定的,它主要用于开发人员的快速尝试。预发布环境应该尽可能地与生产
环境保持一致,而生产环境应只允许部分人访问。开发体验团队应该建立严格的控制方案
以避免人工访问该环境,同时为生产环境提供快速部署的解决方案。
可以对经典的环境策略做一个改造:用系统的子集来创建环境并进行各种类型的测试(比
如端到端测试或视觉走查),然后在测试完成后销毁环境。这种按需创建的环境对公司来
说是一个很好的补充,因为它不仅有助于微前端,也有助于微服务的端到端隔离测试。通
过这种方式,我们还可以考虑隔离整个业务子域的端到端测试,仅部署所需的微服务并提
供若干按需环境,从而节约大量成本。
按需环境的另一个特性是可以为管理者或产品负责人提供实验功能或者包含新功能分支的
预览。现在,许多像
AW
S
的云提供商使用
Spot
实例的方式来节省大量成本。由于在这种
方式下基础设施可以按需使用,用户可以临时租用空闲资源,因此基础设施成本远远低于
普通产品。
Spot
实例非常适合按需环境。
6.3
 版本控制
当我们开始设计自动化策略时,决定使用哪种版本控制系统和分支策略是必不可少的一
步。尽管版本控制系统还有很多类似
Mercurial
这样的替代方案
,但是
Git
确实是最受欢迎
的版本控制系统。接下来的例子将采用
Git
当然在
Git
中所有使用到的方法也同样适用于 ...
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