Dapr入门学习 Day 10

构建块(一)

Building blocks

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

Modular best practices accessible over standard HTTP or gRPC APIs

构建块是一个HTTP或gRPC API,它可以被代码调用,可以使用一个或多个Dapr组件。

A building block is an HTTP or gRPC API that can be called from your code and uses one or more Dapr components.

构建块解决了构建具有弹性的微服务应用程序的常见挑战,并编制了最佳实践和模式。Dapr由一组构建块组成,并支持新构建块的扩展。

Building blocks address common challenges in building resilient, microservices applications and codify best practices and patterns. Dapr consists of a set of building blocks, with extensibility to add new building blocks.

下图显示了构建块如何公开从代码调用的公共API,使用组件实现构建块的功能。

The diagram below shows how building blocks expose a public API that is called from your code, using components to implement the building blocks’ capability.

image

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