Microsoft announces Dapr, an open-source runtime for building microservice apps on cloud and edge

Reading time icon 2 min. read


Readers help support MSpoweruser. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help MSPoweruser sustain the editorial team Read more

Over the last few years, microservice architectures have become the popular choice among cloud developers due to its advantages such as scalability, loose service coupling and independent deployments. In fact, 90% of new apps by 2022 are predicted to feature microservice architectures. However, building apps based on microservice architectures is a difficult process. Microsoft today announced Dapr to solve this problem. Dapr will enable developers using any language and any framework to easily build resilient, portable microservices applications that run on the cloud and edge, whether writing fresh code or migrating legacy code. Technically, Dapr is an open source, portable, event-driven runtime. Read about the building blocks of Dapr below:

  • Service Invocation – Resilient service-to-service invocation enables method calls, including retries, on remote services wherever they are running in the supported hosting environment.
  • State management – With state management for key/value pairs, long running, highly available, stateful services can be easily written, alongside stateless services in the same application. The state store is pluggable and can include Azure Cosmos or Redis, with others such as AWS DynamoDB on the component roadmap.
  • Publish and subscribe messaging between services – Publishing events and subscribing to topics between services enables event-driven architectures to simplify horizontal scalability and make them resilient to failure.
  • Event driven resource bindings – Resource bindings and triggers build further on event-driven architectures for scale and resiliency by receiving and sending events to and from any external resources such as databases, queues, file systems, blob stores, webhooks, etc. For example, your code can be triggered by a message on an Azure EventHub service and write data to Azure CosmosDB.
  • Virtual actors – A pattern for stateless and stateful objects that make concurrency simple with method and state encapsulation. Dapr provides many capabilities in its virtual actor runtime including concurrency, state, life-cycle management for actor activation/deactivation and timers and reminders to wake up actors.
  • Distributed tracing between services – Easily diagnose and observe inter-service calls in production using the W3C Trace Context standard and push events to tracing and monitoring systems.

You can learn more about Dapr here.

Source: Microsoft

More about the topics: cloud native apps, Dapr, microservices architecture, microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *