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学习手册
消息
135
路由清单模式(
routing slip pattern
)的主要优点是能够动态的配置每个消息
的消息路由。该模式支持分布式、异步、并行的消息处理,同时可以保证精
确执行预定义的流程,而不需要中央消息协调器。
3.4.4
智能代理
如前所述,
Dapr
使用
Sidecar
架构来提供通用功能,如状态管理和向应用程
序投递消息。如果我们扩展
Dapr
并允许它为应用程序提供任意功能(例如人
脸检测)会怎么样?
换句话说,如果应用程序可以通过
Dapr
动态地获取和
消费任何所需的功能呢?
这确实是一个有趣的想法。
但是,要使其成为现实,还需要做大量的工作。
应用程序如何描述其意图?
意图如何转化为匹配能力的搜索标准?
如何消费
能力?
所有这些问题都必须得到回答。我们认为需要一种新的架构范例,称
为面向能力架构(
Capability Oriented Architecture
COA
),以系统地解决这
些问题。
COA
的详细讨论超出了本书的范围。
相反,我们将讨论一个更
简单但也很实用的模式:智能代理模式。
智能代理公开了一个本地端点供客户端调用,然后使用各种技术的组合来引
入所需的功能。
例如,它可以直接调用远程服务,或者可以将消息发送到
下游处理程序并等待响应。
它甚至可以调用复杂的工作流,该工作流下载
Docker
镜像,启动它,然后调用
Docker
容器暴露的端点。无论代理后面发
生了什么,调用代理的客户端只需通过
local host
进行简单直接的服务调用。
3-9
显示了用作智能代理的 ...
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