有些场景希望 dapr 在发送订阅消息时同一时间只请求一次 subscription endpoint (并发数为1),也就是依次一个一个地将订阅消息发给订阅者,请问如何实现?
通过 app-max-concurrency
设置可以实现,详见 How-To: Control concurrency and rate limit applications
apiVersion: apps/v1
kind: Deployment
spec:
template:
metadata:
annotations:
dapr.io/enabled: "true"
dapr.io/app-id: "zzk-api"
dapr.io/app-max-concurrency: "1"