如何将消息从 ServiceBusQueueTrigger Azure 函数发送到 Durable Function
How do I send message from ServiceBusQueueTrigger Azure function to Durable Function
我是 Azure Function 的新手,我有 Service Bus Queue Trigger Azure 功能,只要消息被推入队列,它就会从 Service Bus Queue 中提取数据,我想从 Service Bus Queue Trigger 将消息发送到 Durable Function Azure 函数,然后实现 Fan-In/Out 逻辑。我不知道如何从 Service Bus Queue Trigger Azure 函数发送消息,或者是否有任何其他方法可以将消息从 Service Bus Queue 发送到 Durable Function?
您需要做的就是在具有服务总线触发器的函数上使用 DurableClient
绑定。查看 Durable Client 函数 here 的文档。还有各种使用它的示例。其中大部分是 HTTP 触发的,但同样的原则也适用于服务总线触发器。
我是 Azure Function 的新手,我有 Service Bus Queue Trigger Azure 功能,只要消息被推入队列,它就会从 Service Bus Queue 中提取数据,我想从 Service Bus Queue Trigger 将消息发送到 Durable Function Azure 函数,然后实现 Fan-In/Out 逻辑。我不知道如何从 Service Bus Queue Trigger Azure 函数发送消息,或者是否有任何其他方法可以将消息从 Service Bus Queue 发送到 Durable Function?
您需要做的就是在具有服务总线触发器的函数上使用 DurableClient
绑定。查看 Durable Client 函数 here 的文档。还有各种使用它的示例。其中大部分是 HTTP 触发的,但同样的原则也适用于服务总线触发器。