Most commonly asked questions about Dapr

Dapr is “An event-driven, portable runtime for building microservices on cloud and edge.” Being an exciting open source project, it attracts a lot of developers and with them, lots of questions :)

I thought it might be helpful to answer (or provide pointers) to some of them here. I have seen/heard these (in different forms) at various places including conferences/webinars, Dapr Gitter, Twitter DMs or one-one conversations (oh yes those exist too!) etc.

Is Dapr a Service mesh, what’s the difference ?

Or sometimes, this is phrased as, “Can I use Dapr with Service mesh?”

Good news is that this has already being covered in one of the Dapr community calls — “Introduction to Dapr and Service Meshes. How they relate, when to use one verses the other….”


Dapr is a “runtime” — what does that mean?

I thought about this as well, when I first started exploring Dapr. In my specific case (Java middleware background), “runtime” was an application server which provided a “managed environment” (concurrency, security etc.) to my code (WAR, EAR etc.)

That’s not the case with Dapr. It is a “Runtime” that operates along with your application using a sidecar architecture — your application does not run “inside it”. In standalone mode, Dapr simply runs as a different process and in Kubernetes, it runs as a (sidecar) container in the same Pod as your application

(Myth) Dapr depends on Docker

Guess what, this was also covered in one of the community calls, which showcased Dapr working in standalone mode on an AWS EC2 instance


Use this link if you want to jump straight to the demo

What about Docker Compose support?

Right now, with the Dapr CLI, dapr init will start Dapr (using Docker) and you can then start your app along with Dapr using dapr run. But a common use case is to run treat these as a single unit, and Docker Compose helps with that

The answer? Of course it is!

Check out:

… and this demo on yet another awesome Dapr community calls!

Use this link if you want to jump straight to the demo

Pub/Sub and Bindings — what’s the difference?

With Bindings, you can interact with external systems:

Pub/Sub on the other hand is for Dapr apps to communicate amongst themselves (inter-app messaging) in a decoupled and asynchronous manner.

That’s it.. for now!

But I do want to leave you with a few handy resources:

Until next time!

Currently working with Kafka, Databases, Azure, Kubernetes and related open source projects | Confluent Community Catalyst (for Kafka)