IoT中心服务在启动时会获取旧数据 [英] Iot hub service fetches old data when started

查看:62
本文介绍了IoT中心服务在启动时会获取旧数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将数据从模拟客户端发送到物联网中心.最初,物联网中心非常好地接收数据.但是从昨天开始,每当iot中心作业启动时,它都会每次(以及每次都相同)首先获取旧数据,然后开始接收新数据(如果是). 由模拟设备发送.
应用程序结构看起来像

I am sending data from simulated client to iot hub. Initially iot hub receives the data very well. But since yesterday whenever iot hub job starts it first fetch old data every time (and its same every time) and then starts receiving the new data if it is being sent by simulated device.
The application structure looks like

Iot device -------> Iot hub --------> Stream Analytics ---------> Event hub ----Triggers Function----> Azure Function

Iot device -------> Iot hub --------> Stream Analytics ---------> Event hub ----Triggers Function----> Azure Function

PS:我更改了Stream Analytics作业输出的开始时间(自定义(5天前),现在,最后一次停止),但没有任何帮助

PS: I changed the Stream Analytics job output start time (custom (5 days ago), now, last stopped) but nothing helps

推荐答案

你好您能否澄清一遍又一遍地阅读相同消息的消息旅程的哪一部分?是在事件中心之前还是之后?

Can you clarify on what part of the message journey you read the same messages over and over again? Is it before or after Event Hub?

请注意,从EventHub读取数据时,您将需要一种方法使EventHub知道该消息已被读取并且可以被丢弃.在此处查看更多信息- 活动使用者.

Please note that when reading data from an EventHub you will need a way to let EventHub know that the message was read and can be discarded. See more info here - Event Consumers.

谢谢!


这篇关于IoT中心服务在启动时会获取旧数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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