Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the principle of Dapr microservice?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail what is the principle of Dapr microservice. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.

What is Dapr?

Dapr (Distributed Application Runtime), an open source project of Microsoft Azure's internal innovation incubation team, is designed to solve some common problems in the process of micro-service application development. According to official documentation, Dapr is a portable, event-driven runtime that makes it easier for enterprise developers to build flexible, stateless and stateful micro-service applications in a variety of languages and frameworks and run on the cloud and edge.

The core of Dapr is written in the Go language. At first, the development team planned to use the .NET Core/C# to write it, but considering the acceptance of the community, it finally chose Go as the development language. Of course, Dapr extensions can still be written in any language or framework. Because the problems that Dapr has to solve are indeed some pain points that we are facing, and the design of Dapr is also unique, so once it is open source, it has become one of the fastest growing open source projects on Star on GitHub, even reaching 5K Star faster than Kubernetes.

What does Dapr contain?

What Dapr does is simply to use Sidecar's pattern to separate and abstract some crosscutting concern requirements (Cross-cutting) in the code, so as to achieve the independence of the runtime environment and external dependencies (including between services).

This independent approach is to use open protocols (HTTP and gRPC) instead of relying on specific protocols. As shown in the following figure:

From the figure above, we can see that micro-service applications developed with Dapr can theoretically be deployed to any cloud provider, edge device, virtual machine, Service Fabric cluster, Kubernetes cluster.

And abstracts external dependencies in the following aspects (called Building Block):

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report