Dapr入門學(xué)習(xí) Day 10

構(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.

image
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容