Skip to Content
微服务与事件驱动架构
book

微服务与事件驱动架构

by Adam Bellemare
October 2021
Beginner to intermediate
250 pages
7h 11m
Chinese
Posts & Telecom Press
Content preview from 微服务与事件驱动架构
集成事件驱动型和
请求
响应
型微服务
185
13.7.2
 容易与业务需求对齐
通过将微前端严格地与业务界限上下文对齐(就像处理在后端运行的其他微服务一样),
可以直接跟踪特定的业务需求到它们的实现。通过这种方式,可以轻松地将实验产品注入
应用程序中,而不会对现有核心服务的代码库产生不利影响。如果它们的表现或用户使用
情况不符合预期,也可以轻松地删除它们。这种对齐和隔离确保了来自不同工作流的产品
需求不会相互渗透。
13.8
 微前端的缺点
虽然微前端支持业务关注点的分离,但你必须考虑到微前端可能难以提供在单体前端中被
认为是理所当然的特性,比如一致的
UI
元素和对每个元素布局的完全控制
。微前端还继
承了所有微服务所共有的一些问题,比如可能出现重复代码以及管理和部署微服务的操作
问题。本节会介绍一些微前端特有的注意事项。
13.8.1
 可能不一致的
UI
元素和样式
让应用程序的可见样式保持一致是很重要的,但是当前端体验是由许多独立的微前端组合
而成时,这一点会受到挑战。每个微前端都是一个潜在的故障点,即
UI
设计可能
与所需
的用户体验不一致。解决这一问题的一种方法是提供一个强大的样式指南,同时让每个微
前端使用通用的
UI
元素库。
这种方法的缺点是,它需要密切维护样式指南和
UI
元素的所有权
。添加新元素和修改现
有元素时,要协调在产品中使用元素库的多个团队是比较困难的。使用与流行的开源项目
类似的管理模式来管理这些
UI
元素资产
,有助于确保以一种可衡量且慎重的方式完成每
一次
UI
元素的更改。这需要资产使用者之间的参与和对话,因此会产生间接成本。 ...
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

监控运维实践:原则与策略

监控运维实践:原则与策略

Mike Julian
Kafka权威指南

Kafka权威指南

Neha Narkhede, Gwen Shapira, Todd Palino
Web容量规划之美

Web容量规划之美

Arun Kejariwal, John Allspaw

Publisher Resources

ISBN: 9787115571106