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学习手册
消息
137
基于回合制度的并发确保对
actor
的并发调用是连续的,因此在增加计数器
时不会出现冲突。
有关
actor
的更多信息,请参见第
5
章。
当数据量巨大时,可以选择将数据保存到外部存储中,并且仅将数据索引发
送到任务处理器。
类似地,数据处理器可以将结果写回到外部数据库。当所
有任务完成时,
actor
可以从数据库中组合结果。
我们对消息传递模式的讨论到此结束。
同样,我们仅从数十种有用的消息
投递模式中选择了一小部分,对于有兴趣了解更多信息的读者,我们建议阅
Gregor Hohpe
Bobby Woolf
撰写的《
Enterprise Integration Patterns
Addison-Wesley Professional
)一书。
3.5
小结
在设计松耦合的微服务系统时,消息传递是一个非常强大的工具。
Dapr
提供
了常见的消息传递结构,如
pub/sub
和绑定,但它并没有创建自己的消息传
递骨干。相反,它与流行的消息传递骨干集成来提供这些功能。
Dapr pub/sub
允许消息发布者将消息发布到某个主题,而该主题的所有订阅
者都可以获取消息的副本。
Dapr
确保消息至少被处理一次。
Dapr input bindings
可用于通过来自任何受支持事件源的事件来触发应用程
序。
Dapr output bindings
允许应用程序连接到流行的外部系统以交换数据。
Bindings
使你能够定义通用的处理管道,该管道可以动态地连接到不同的外
部系统。
在下一章中,我们将讨论另一个基本话题:安全。 ...
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