最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

azure logic apps - How to consume multipleall messages from a topic subscription? - Stack Overflow

programmeradmin3浏览0评论

I have an On-Premise Data Gateway that will send data to an on-prem SQL DB via Logic App, received from the Service Bus.

I've got a Logic App that is currently triggering on When a message is received in a topic subscription (auto-complete). It then passes the decoded contents of that message into an array, where it is JSON formatted and then sent to the on-prem SQL DB via an Execute stored procedure (V2) action.

Currently, it does this instance by instance - but I'd like to reduce transactional cost by batching all available messages into one array via a single Logic App instance.

What would be the best way of achieving this?

I have an On-Premise Data Gateway that will send data to an on-prem SQL DB via Logic App, received from the Service Bus.

I've got a Logic App that is currently triggering on When a message is received in a topic subscription (auto-complete). It then passes the decoded contents of that message into an array, where it is JSON formatted and then sent to the on-prem SQL DB via an Execute stored procedure (V2) action.

Currently, it does this instance by instance - but I'd like to reduce transactional cost by batching all available messages into one array via a single Logic App instance.

What would be the best way of achieving this?

Share Improve this question edited Mar 20 at 9:58 DarkBee 15.5k8 gold badges72 silver badges117 bronze badges asked Mar 20 at 9:33 mrc85mrc85 991 silver badge11 bronze badges 1
  • This is a limitation, that it triggers for every new message – RithwikBojja Commented Mar 21 at 8:17
Add a comment  | 

1 Answer 1

Reset to default 2

Currently, it does this instance by instance

This is the behavior of this connector. For parallelly picking messages you can use When one or more messages arrive in a topic (peek-lock) and can add Maximum message count, but it will also invoke instance parallelly:

According to Microsoft-Document, it says:

The operation receives one or more messages from a topic with peek-lock. If maximum message count is not provided, it reads 20 messages.

发布评论

评论列表(0)

  1. 暂无评论