我可以在没有队列触发器的情况下为拉队列消息创建WebJobs。我的意思是不断轮询读取队列消息。 [英] Can I create WebJobs for pull queue messages without queue trigger. I mean continuously polling for read queue message.

查看:85
本文介绍了我可以在没有队列触发器的情况下为拉队列消息创建WebJobs。我的意思是不断轮询读取队列消息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从队列中拉取消息而没有队列触发器。我每隔100ms就连续读取队列(轮询)。可能吗?如何?

I want pull messages from queue without queue trigger. I only read queue continuously on every 100ms (Polling). Is it possible? How?

如果可能,请提供参考链接。

Please provide reference link if it is possible.

推荐答案

嗨Amol,

绝对可以轮询队列。看看
这个
样本在GitHub上。特别是,` BasicQueueOperationsAsync(CloudQueue queue)`

方法
提供了使用存储API读取队列的示例。如果需要任何进一步的帮助,请随时联系我。

It's definitely possible to poll a queue. Have a look at this sample on GitHub. In particular, the `BasicQueueOperationsAsync(CloudQueue queue)` method provides an example of reading the queue using the storage APIs. If need any further assistance, feel free to reach back out to me.


这篇关于我可以在没有队列触发器的情况下为拉队列消息创建WebJobs。我的意思是不断轮询读取队列消息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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