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学习手册
简介
9
Dapr
边车通过标准
HTTP/gRPC
协议交付分布式构件,从而与应用程序代码
协同工作。
0.1.1
异构环境的编程模型
根据定义,编程模型是一系列描述模型设计者认为特定类型的程序应该如何
被编写的观点。
编程模型的倾向性越大,它对开发人员提供的指导性就越强。
但是,它也加强了对特定框架或实现的依赖,这可能会带来问题。
现代微服
务应用通常包含由不同团队或外部供应商编写的服务,并且现代的计算机从
业人员具有前所未有的流动性
,
这就导致了让每个人都认同一个特定的语言或
框架通常会很困难。
我们承认,在当今的软件世界中,我们需要拥抱多样性,并为具有不同技能、
工作风格和偏好的开发人员寻找一种和谐合作的方式。我们希望开发人员能
够在不用担心被厂商锁定的前提下,表达他们的业务逻辑。在为所有开发者
社区寻求坚实的共同基础时,我们注意到,如果很抽象的来看待微服务,它
其实是一个暴露了某些访问端点(
Endpoint
)的处理单元,而这些端点通常使
HTTP
协议。因此对于大部分服务开发人员来说,采用
HTTP
似乎是一个
合理的选择。例如,要使用
Dapr
保存状态,应用程序代码所需要做的就是通
POST
请求把键
/
值对作为
JSON
格式发送给
Dapr
边车提供的状态
API
REST API
发送
POST
请求的做法如此常见,以至于在我们和不同技能水平
的开发人员进行的多次访谈中,还没有遇到过认为这种方式麻烦的开发者
1
通过基于
HTTP
的标准化,可以最大限度地实现不同语言开发的服务之间的
互操作性。在整本书中, ...
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