sidecar架構
Sidecar architecture
- Dapr將其api公開為一個sidecar架構,可以是容器苇经,也可以是進程,不需要應用程序代碼包含任何Dapr運行時代碼。這使得與Dapr的集成與其他運行時更加容易芜果,并且提供了應用程序邏輯的分離,以提高可支持性融师。
Dapr exposes its APIs as a sidecar architecture, either as a container or as a process, not requiring the application code to include any Dapr runtime code. This makes integration with Dapr easy from other runtimes, as well as providing separation of the application logic for improved supportability.
托管環(huán)境
Hosting Environments
- Dapr可以托管在多個環(huán)境中右钾,包括用于本地開發(fā)的自托管或部署到vm、Kubernetes和邊緣環(huán)境(如azureiot edge)的集群诬滩。
Dapr can be hosted in multiple environments, including self hosted for local development or to deploy to a group of VMs, Kubernetes and edge environments such as Azure IoT Edge.
Self hosted 自托管
- 在自托管模式下霹粥,Dapr作為一個單獨的side car進程運行,您的服務代碼可以通過HTTP或gRPC調用它疼鸟。在自托管模式下后控,您還可以將Dapr部署到一組vm上。
In self hosted mode Dapr runs as a separate side-car process which your service code can call via HTTP or gRPC. In self hosted mode, you can also deploy Dapr onto a set of VMs.
自托管.png
Kubernetes hosted k8s托管
- 在Kubernetes等容器托管環(huán)境中空镜,Dapr作為一個邊車容器運行浩淘,應用程序容器位于同一個pod中。
In container hosting environments such as Kubernetes, Dapr runs as a side-car container with the application container in the same pod.