構(gòu)建塊(一)
Building blocks
通過(guò)標(biāo)準(zhǔn)HTTP或gRPC api訪問(wèn)模塊化最佳實(shí)踐
Modular best practices accessible over standard HTTP or gRPC APIs
構(gòu)建塊是一個(gè)HTTP或gRPC API,它可以被代碼調(diào)用,可以使用一個(gè)或多個(gè)Dapr組件。
A building block is an HTTP or gRPC API that can be called from your code and uses one or more Dapr components.
構(gòu)建塊解決了構(gòu)建具有彈性的微服務(wù)應(yīng)用程序的常見(jiàn)挑戰(zhàn),并編制了最佳實(shí)踐和模式。Dapr由一組構(gòu)建塊組成,并支持新構(gòu)建塊的擴(kuò)展。
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.
下圖顯示了構(gòu)建塊如何公開(kāi)從代碼調(diào)用的公共API,使用組件實(shí)現(xiàn)構(gòu)建塊的功能。
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.
