Events received before digital twin gets updated

Gökhan Kurt 106 Reputation points
2021-01-15T15:53:33.847+00:00

We have a digital twin on Azure and an event routing on property Updates to an evethub.
Then I have a console app reading from that event hub and querying the digital twin service for the node that is updated each time a message is received.
The strange thing is that when I receive an update message for a property on the event hub, the property on digital twin is actually still the old value. It takes a few seconds of sleeping before I can read the updated property.
So the question is if this is a bug or feature?

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
231 questions
{count} votes

Accepted answer
  1. Gökhan Kurt 106 Reputation points
    2021-01-21T15:24:50.827+00:00

    As it turned out this is most probably a feature not a bug at the end as stated as follows in the documentation (https://learn.microsoft.com/en-us/azure/digital-twins/concepts-query-language)

    Timing: There may be a delay of up to 10 seconds before changes in your instance are reflected in queries. For example, if you complete an operation like creating or deleting twins with the DigitalTwins API, the result may not be immediately reflected in Query API requests. Waiting for a short period should be sufficient to resolve.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.