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学习手册
112
2
1.
首先,构建用于
Linux
的二进制文件:
make build-linux
2.
然后构建
Docker
镜像:
export DAPR_REGISTRY=docker.io/<your Docker account>
export DAPR_TAG=dev
make docker-build
make docker-push
3.
如果你之前使用
Helm
build
脚本部署了
Dapr
,请先使用
Helm
删除它。
helm delete dapr --purge
4.
最后,部署新的
Dapr
构建:
make docker-deploy-k8s
2.7
小结
Dapr
为应用程序提供了简单的基于
key/value
的状态
API
来存储状态。该
API
隐藏了底层数据存储的细节,从而使应用开发者从对这些操作的关注中
解脱出来。
Dapr
使用模块化架构,允许新的状态存储以
Dapr
组件的方式插入。
Dapr
Redis
作为默认的状态存储,但社区已经贡献了越来越多的数据存储列表,涵
盖了很多流行的开源选项和云平台。
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