Questions tagged [dapr]

Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge.

Dapr is a portable, event-driven runtime that makes it easy for enterprise developers to build resilient, microservice stateless and stateful applications that run on the cloud and edge and embraces the diversity of languages and developer frameworks.

Dapr.io

164 questions
2
votes
0 answers

OPA Middleware with Dapr not invoking

I am unable to get the OPA middleware to execute on a service to service invocation. I am using the simple OPA example online and cannot seem to get it to trigger when invoking it from another services using service invocation. It seems I can hit it…
ewassef
  • 286
  • 2
  • 13
2
votes
1 answer

Dapr error initialising state store to local cosmosDB

I am using docker compose to spin up an api, along with Dapr for state management and a local cosmosDB emulator. When specifying my local azure cosmosDB as the state store in my local Dapr component, the Dapr container fails to start with the error…
2
votes
1 answer

How to get Dapr Service to Service Invocation to work when running under docker-compose?

I am receiving the following error when trying to call a service using Dapr SDK. System.Net.Http.HttpRequestException: Connection refused (127.0.0.1:3500) ---> System.Net.Sockets.SocketException (111): Connection refused Here is my docker-compose…
Choco
  • 1,189
  • 1
  • 14
  • 29
2
votes
0 answers

Dapr Sub/Pub & Kubernetes : How to scale a pod where each subscriber-pod receives a message

Assume Kubernetes & Dapr have been been setup correctly Synopsis: The Dapr Sub/Pub applicatoin works as desired with ONE pod. I have the following K8s Deployment (A simple Springboot application) apiVersion: apps/v1 kind: Deployment metadata: …
stackoverflow
  • 18,348
  • 50
  • 129
  • 196
2
votes
0 answers

DAPR with AWS EKS, S3

i'm new to DAPR. i've installed DAPR in AWS EKS. i've below node js code (containerised and deployed into AWS EKS) where in it will call side-car container (dapr) for interacting with AWS S3. const express = require('express'); const bodyParser =…
2
votes
0 answers

How to call Dapr Actor running on AKS from Azure App Service

We have some Dapr Actors running on an AKS cluster and a ASP.NET Core Based REST Api running on Azure App Service. Is it possible to call an actor method of an actor in the AKS cluster from our REST Api running on Azure App Service without dapr…
Markus S.
  • 2,602
  • 13
  • 44
2
votes
2 answers

Dapr .Net SDK Problem with InvokeMethodGrpcAsync() gRPC Invocation

I have an app started in Dapr that has a gRPC service. Starting Dapr with id MyGrpcApi001. HTTP Port: 55319. gRPC Port: 55320 I have started it with the following command: dapr run --app-id MyGrpcApi001 --app-protocol grpc --app-port 5000 -- dotnet…
tridy
  • 1,166
  • 1
  • 12
  • 21
2
votes
1 answer

How to set up dapr and docker compose with state management

Very new to dapr and docker. I followed along the dapr getting started. The simple hello world state management example worked fine. Yes Bruce, we all know you are Batman. So next I built the weather forecast multi-container example for .NET Core.…
Sam Axe
  • 33,313
  • 9
  • 55
  • 89
1
vote
1 answer

Get original exception from Dapr InvocationException

I am using Dapr in a .Net microservices environment to communicate between different services. I have run into a situation where the called service is throwing an exception (could be for any reason) but the calling service only sees it returned as a…
Steve
  • 9,335
  • 10
  • 49
  • 81
1
vote
1 answer

How can I stop Dapr Kafka Component from connecting to closed consumer groups?

I have the following component in k8s: apiVersion: dapr.io/v1alpha1 kind: Component metadata: name: kafka-pubsub namespace: default spec: type: pubsub.kafka version: v1 metadata: # Kafka broker connection setting - name: brokers …
Matt
  • 97
  • 9
1
vote
2 answers

How to subscribe to changes in Azure App Configuration using Dapr

I want to use Dapr to subscribe to changes in an Azure App Configuration store as documented on this page: https://docs.dapr.io/reference/components-reference/supported-configuration-stores/azure-appconfig-configuration-store/ When I run my…
1
vote
2 answers

Why do I get 'sentinel key is not provided in metadata' error when using Azure App Configuration as dapr config store component?

I have a question concerning the dapr config store component. I'm trying to use the config store component in an Azure container app. I have it configured in a bicep file like so: resource daprConfigComponent…
Blit
  • 55
  • 6
1
vote
0 answers

Communication between two Azure Container Apps Environments using Dapr

I'm developing a PoC solution for migration from Docker-base App Services to Azure Container Apps. The app is geographically distributed. There are two kinds of app deployments: regional (multiple regions with the same bunch of microservices) and…
Wojteq
  • 1,173
  • 9
  • 23
1
vote
0 answers

How to unit test dapr subscriber in .net 6?

I have controller with following action : [Topic("pubsub", "test")] [HttpPost("test")] public async Task Post([FromBody] CustomDto customDto) { await _customService.Execute(customDto, CancellationToken.None); } I want to test it via mocking…
1
vote
0 answers

Is it possible for Azure Container Apps inside an environment, to communicate with a DAPR application outside the environment?

We have an existing setup, with a webserver running on AKS. We are plan to add a range of smaller services on ACA communicating using Dapr. However, many of these smaller services will be invoked by the webserver, either by direct or…
Chris Wohlert
  • 610
  • 3
  • 12
1
2
3
10 11