具有Azure功能的基于会话的服务总线

编程入门 行业动态 更新时间:2024-10-25 08:16:20
本文介绍了具有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年更新:

设置 function.json中的"> 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功能的基于会话的服务总线

本文发布于:2023-11-28 07:51:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641546.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:总线   功能   Azure

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!