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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章