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

微服务与事件驱动架构

by Adam Bellemare
October 2021
Beginner to intermediate
250 pages
7h 11m
Chinese
Posts & Telecom Press
Content preview from 微服务与事件驱动架构
216
16
部署事件驱动型微服务
部署事件驱动型微服务富有挑战性。随着组织内微服务数量的增加,标准化部署流程的
重要性也随之增加。一个只管理几十个服务的组织可以通过一些定制的部署流程摆脱困
境,但任何一个认真投入于事件驱动或其他微服务的组织都必须致力于标准化和优化其
部署流程。
16.1
 微服务部署的原则
部署流程应遵循的原则如下。
给予团队部署自主权
团队应该控制自己的测试和部署流程,并有权自行部署微服务。
实现标准化的部署流程
服务之间的部署流程应该是一致的。应该用已有的可用的部署流程来创建新的微服务。
这通常是通过一个
持续集成
框架来实现的,稍后将讨论。
提供必要的支持性工具
部署可能需要团队重置消费者组偏移量、清除状态存储、检查且更新
schema
演化以及
删除内部事件流。支持性工具提供了这些功能,以实现部署的进一步自动化并支持团队
自治。
考虑事件流再处理的影响
重新消费输入事件流非常耗时,会导致下游消费到过时的事件。此外,该微服务可能会
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