Dapr入门学习 Day 12

构建块(二)

Building blocks

通过标准HTTP或gRPC api访问模块化最佳实践

Modular best practices accessible over standard HTTP or gRPC APIs

2. 状态管理 State management

Endpoint

/v1.0/state

说明

应用程序状态是应用程序希望在单个会话之外保留的任何内容。Dapr提供了一个基于键/值的状态API,其中包含用于持久性的可插拔状态存储。

Application state is anything an application wants to preserve beyond a single session. Dapr provides a key/value-based state API with pluggable state stores for persistence.

3. 发布和订阅 Publish and subscribe

Endpoint

/v1.0/publish
/v1.0/subscribe

说明

Pub/Sub是一种松散耦合的消息传递模式,发送者(或发布者)将消息发布到订阅者订阅的主题。Dapr支持应用程序之间的发布/订阅模式

Pub/Sub is a loosely coupled messaging pattern where senders (or publishers) publishes messages to a topic, to which subscribers subscribe. Dapr supports the pub/sub pattern between applications.

image.png

你可能感兴趣的:(Dapr入门学习 Day 12)