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

微服务与事件驱动架构

by Adam Bellemare
October 2021
Beginner to intermediate
250 pages
7h 11m
Chinese
Posts & Telecom Press
Content preview from 微服务与事件驱动架构
集成事件驱动型和
请求
响应
型微服务
183
服务,编辑审批服务没有办法知道哪些广告客户已收到进行广告审批的指示。尽管可以将
结果摘要传达给编辑,但这些信息属于严格的广告审批系统的领域。广告审批汇总事件的
格式如下。
//广告审批汇总事件
Key: String pn_key
Value: {
int version //已填充报纸的版本
AdApprovalStatus[] ad_app_status
- Enum status //等待、批准、驳回、超时
- int page_number
- String advertisement_id
- String advertiser_id
- String advertiser_comments
}
此广告审批汇总事件的定义演示了如何将广告客户审批状态封装到广告客户审批服务中。
编辑可以根据广告审批汇总事件的状态来决定报纸的审批,而无须管理或处理获得这些结
果的任何工作。
13.6
 
请求
响应
应用程序中的微前端
目前,前端服务和后端服务有
3
种主要的协作方法。单体后端方法在规模各异的许多组织
内被广泛采用。随着同步微服务和事件驱动型微服务的流行,微服务后端方法也变得越来
越流行。在这两种方法中,前端服务和后端服务由不同的团队负责,因此端到端的业务功
能跨越了团队边界。相反,微前端方法将从后端到前端的实现完全与业务领域对齐。这
3
种方法如图
13-14
所示。
前端
后端
数据存储
前端团队
前端团队
聚合层
微服务A
微服务B
微服务C
微服务A
前端 ...
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