I have some IOT machine in place and a user have to present a NFC card on it when using one of this machine.
When the machine is detecting the card it send an event to a backoffice system with the datetime, the identifier of the IOT machine and an identifier of the NFC card.
The problem is that sometime the IOT machine clock is not synchronized with the others so when in the backoffice we are trying to analyze the stream of data event, we encounter some anomalies.
So to prevent that we are trying to put in place a mechanism to detect if an IOT machine clock have delay or is not synchronized with the others by analyzing the event data received.
I am trying know to work on an architecture based on KafkaStream but I am not really sure about the way to go or the most efficient solution to this problem.