简体   繁体   English

Azure 服务总线 - 我可以查看预定消息吗?

[英]Azure Service Bus - can I view scheduled messages?

Similar past question of mine: Azure Service Bus Queue: Can I manage/cancel scheduled messages?我过去的类似问题: Azure Service Bus Queue: Can I manage/cancel scheduled messages? - accepted answer here details how to cancel scheduled messages. - 这里接受的答案详细说明了如何取消预定消息。

I'm wondering now if there's a way to view scheduled messages using the AMQP APIs.我现在想知道是否有一种方法可以使用 AMQP API 查看计划的消息。 The Azure UI (and this method https://learn.microsoft.com/en-gb/java/api/com.microsoft.azure.management.servicebus._message_count_details?view=azure-java-stable ) offer message counts but I can't see anything that lets me actually view those messages. Azure UI(以及此方法https://learn.microsoft.com/en-gb/java/api/com.microsoft.azure.management.servicebus._message_count_details?view=azure-java-stable )提供消息计数,但我看不到任何让我实际查看这些消息的内容。

Is this a limitation of the service bus/Azure architecture?这是服务总线/Azure 架构的限制吗? Or is there an API that will allow it?或者是否有 API 允许它? My goal would be to build a nice UI that displays scheduled tasks, and ideally I'd like to do that without maintaining that list of tasks myself outside of Azure if possible.我的目标是构建一个漂亮的 UI 来显示计划的任务,理想情况下,如果可能的话,我不想自己在 Azure 之外维护任务列表。

As of today, all messages can be peeked, but there's no way to peek those based on message status. 到今天为止,所有消息都可以被查看,但是无法根据消息状态来查看它们。 There's an open issue on GitHub for the broker to add this feature. GitHub上有一个开放的问题 ,供代理添加此功能。 You can leave use-case scenario to help product team to have an idea why a feature as such would help customers. 您可以离开用例场景,以帮助产品团队了解为什么这样的功能可以帮助客户。

Adding some information I found useful while reading about this.添加一些我在阅读时发现有用的信息。

Azure Service Bus Queues allows browsing/peeking scheduled messages. Azure 服务总线队列允许浏览/查看计划消息。 Azure Service Bus Subscriptions does not support this feature yet. Azure 服务总线订阅尚不支持此功能。

Read More View Example 阅读更多查看示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM