具有Azure功能的基于会话的服务总线 [英] Session based service bus with Azure Function

查看:81
本文介绍了具有Azure功能的基于会话的服务总线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure上使用会话队列,当我在队列上推送一些数据时,我编写了一个Azure函数来触发.

I am using session queue on Azure and when I push some data on queue,I write one Azure function to trigger.

请注意,我已经创建了基于statefull/session的队列.

Please note that I have created statefull/session based queue.

问题是,当我此时将数据推送到队列中时,出现了

The problem is when I push data to queue at that moment I got error like

函数"xxx"的侦听器无法启动. Microsoft.ServiceBus:不可能有需要的实体 会话以创建非会话式消息接收器

The listener for function 'xxx' was unable to start. Microsoft.ServiceBus: It is not possible for an entity that requires sessions to create a non-sessionful message receiver

所以我的问题是我不能在会话中使用带有队列/主题的功能吗?

So my question is am I not able to use function with queue/topic with session?

推荐答案

2020年更新:

设置 isSessionsEnabled 属性.

Set isSessionsEnabled property in your function.json.

这是一个常见问题,但是当前Web Jobs SDK以及Azure Functions不支持Service Bus会话.参见 WebJobs SDK问题;不幸的是,创建三年后没有任何进展.在 Azure函数问题中添加+1.

This is a common ask, but currently Web Jobs SDK, and thus Azure Functions, don't support Service Bus sessions. See WebJobs SDK issue; unfortunately there's no progress 3 years after it was created. Add a +1 in Azure Functions issue.

这篇关于具有Azure功能的基于会话的服务总线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆