Skip to Content
Dapr学习手册
book

Dapr学习手册

by Haishi Bai, Yaron Schneider
November 2021
Beginner to intermediate
239 pages
4h 15m
Chinese
China Electric Power Press Ltd.
Content preview from Dapr学习手册
简介
11
0.1.3
不要重复造轮子!
许多框架提供了“全栈”式解决方案,尝试解决分布式编程领域方方面面的
问题。因为它们是一站式完整解决方案,他们极少考虑如何与他人集成,要
么用他们的,要么滚蛋。
Dapr
采取了不同的做法。
Dapr
的许多组件都是可插拔的,包括状态存储和
消息传递。这种设计为开发人员在选择使用哪些
Dapr
服务方面提供了极大的
灵活性。此外,由于
Dapr
允许动态绑定,开发人员或运维人员可以根据当前
开发上下文选择最适合的服务绑定。例如,当应用程序在离线模式下部署到
边缘(
edge
)时,可以将其绑定到在
Docker
容器中运行的本地
Redis
存储。
当同一应用程序部署在云上时,它的状态存储可以绑定到全局多副本的数据
存储中,例如
Azure Cosmos DB
Dapr
在可靠消息传递上运用了同样的原则。
Dapr
被设计成与经过验证的消
息总线协同工作,而不是尝试自己实现一个全新的消息传递系统。
Dapr
为消
息总线提供了一个基于
HTTP
的通用的门面,并且该门面让开发人员不用再
关心配置管理。这种设计使开发人员能够以最小的努力实现可靠的消息传递,
同时在选择、配置和操作消息传递系统方面为运维团队提供了极大的灵活性。
Dapr
把其他开源系统作为自己组成的一部分,并且可以与流行的开源解决
方案很好地协同使用。
Dapr
运行时建立在成熟的
Web
框架之上,即
Fast
HTTP
。当在
Kubernetes
上运行时,
Dapr
将自己作为边车容器注入。
Dapr ...
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版)

Luciano Ramalho
数据科学原理

数据科学原理

Posts & Telecom Press, Sinan Ozdemir
Python预测分析实战

Python预测分析实战

Posts & Telecom Press, Alvaro Fuentes
机器学习开发者指南

机器学习开发者指南

Posts & Telecom Press, Rodolfo Bonnin

Publisher Resources

ISBN: 9787519859367