Dapr: The Microservices Sidekick

Dan Westmorland
Waterstons Development
3 min readMay 2, 2023
Photo by Glen Carrie on Unsplash
Photo by Glen Carrie on Unsplash

Today, I want to talk about a great piece of technology in the world of microservices, a sidekick we all wish we had during those late-night coding sessions. Introducing Dapr! 🎉

Dapr, short for Distributed Application Runtime, is an open-source project designed to help you build and manage cloud-native applications that are resilient, flexible, and scalable. Developed by Microsoft, it’s a platform-agnostic framework that offers a set of essential building blocks for developing and running your applications, whether you’re using Kubernetes, Docker, or your favourite cloud provider.

But wait, there’s more! Here are the top reasons why you should be using Dapr as your sidekick for your next microservices project:

The Lego of Microservices 🧱

Remember playing with Lego as a kid, snapping together those colourful bricks to build something awesome? Well, that’s kind of what Dapr is like. It provides you with a collection of building blocks that handle common microservices tasks such as service invocation, state management, and pub/sub messaging. You can mix and match these blocks to create your application, without the need to reinvent the wheel every time.

AN image of all the DAPR building locks.
DAPR Building Blocks

Polyglot Superpowers 🌐

Are you a Pythonista? A JavaScript Ninja? Or perhaps a die-hard Gopher? Fear not! Dapr has got you covered. This bad boy is language-agnostic, which means that you can use your favourite programming language to build your microservices. Dapr’s API enables you to leverage its capabilities, no matter what language you’re using. It’s like the United Nations of Code!

A list of supported languages and framework DAPR supports.
Any language, any framework, anywhere

Security, Assemble! 🛡️

Who needs the Avengers when you have Dapr’s built-in security features? Dapr takes care of mutual TLS for you, ensuring secure communication between your services. It also simplifies secret management by providing a consistent API to access secrets stored in popular secret stores like Azure Key Vault, HashiCorp Vault, and more.

An illistration of DAPR security.
Secure Communication

Operation Mode: Easy 😎

Dapr simplifies your app deployment, whether it’s on your local machine, a Kubernetes cluster, or your preferred cloud provider. It comes with a built-in sidecar architecture, which means that each microservice gets its own Dapr sidecar to handle all the complexity, allowing you to focus on writing your business logic. Plus, it’s super easy to integrate with popular tools like Fluentd and Grafana for observability.

A list of supported DAPA frameworks to support solutions observability.
Observability for the Dapr sidecar and control plane

A Developer’s Dream Community 💻

Dapr boasts a fantastic open-source community that’s eager to help and contribute to its growth. You’ll find a wealth of resources, examples, and documentation to get you started, and you’ll never feel lost in the microservices jungle. Remember, friends don’t let friends code alone!

So, there you have it — a quick rundown of the microservices sidekick that is Dapr.

Happy coding! 🎉👩‍💻👨‍💻🚀

--

--

Dan Westmorland
Waterstons Development

Software Team Lead at Watersons. Passionate about solving complex business problems with tech. Sharing my experiences on Medium. Let's connect!