简体   繁体   中英

Azure Event Hub - Debugging C#

I am following the docs to publish the events. I have a Logic App attach to the event hub. I am logging the events from the server and an Azure function. Events from the server are making through the Logic App , but Azure function events are not making through. How would I debug the event hub and find out where exactly the events are dropping?

For a given consumer group message will be processed only once. By default you get just one consumer group, named $Default. (You can add more, for example using the portal). A consumer group is basically a view over the message stream. Each consumer group knows its position in this stream of messages. So, if you only use the default consumer group you only can keep one position in the message stream. And since consumers place locks on the partitions they are reading I suspect the Logic App has the locks and prevents the function from getting messages.

The solution is to create separate consumer groups for both the logic app and the azure function.

See this on how to specify the consumer group to use for the azure function using the consumerGroup property in the function.json file.

See the docs on how to set the consumer group in the Logic App trigger.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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