Azure Event Hubs time-sync related questions

Ahmad Farhat 20 Reputation points
2024-03-08T12:03:26.31+00:00

Could you provide insights into how Azure Event Hubs synchronizes its time clock? Specifically, which NTP (Network Time Protocol) server does Azure Event Hubs utilize for time synchronization? Is the NTP server available publicly or privately?

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
646 questions
{count} votes

Accepted answer
  1. AnnuKumari-MSFT 33,401 Reputation points Microsoft Employee
    2024-03-12T09:39:57.03+00:00

    Hi @Ahmad Farhat ,

    Welcome to Microsoft Q&A platform and thanks for posting your query here.

    • Azure Event Hubs uses the Network Time Protocol (NTP) to synchronize its time clock. The NTP server used by Azure Event Hubs is managed by Microsoft and is part of the Azure infrastructure.
    • The NTP server used by Azure Event Hubs is part of the Azure Time Series Insights service, which provides a highly available and scalable time-series data store for applications and is designed to provide accurate and reliable time synchronization for Azure services and applications. This ensures that all Azure services and applications are synchronized to the same time clock, which is critical for ensuring the consistency and accuracy of data across different services and applications.
    • The NTP server used by Azure Event Hubs is not available publicly, as it is part of the Azure infrastructure and is only accessible to Azure services and applications. However, you can use the Azure Time Series Insights API to retrieve time-series data from the service, which can be used to synchronize the time clock of your Azure Event Hubs applications.

    Hope it helps. Kindly accept the answer by clicking on Accept answer button. Thankyou

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Deepanshukatara-6769 10,300 Reputation points
    2024-03-11T06:19:52.6233333+00:00

    Hi Ahmad ,

    There are several services handling the incoming device message (eg. Azure IoT Hub -> Event Hub -> Azure Function -> ADT).

    Azure uses internal clocks (based on UTC) for these services.

    If you want to synchronize these event hubs, you need to check each service how it synchronizes to either an Azure provide NTP or a NTP server on the local network (eg. synchronizing with GPS).

    Then, you could add extra timestamps based on the times made available by the different Azure resources (like seen in the System properties of IoT Hub or Event Hub messages).

    The NTP servers used by Azure services are typically internal and not publicly accessible. Azure's infrastructure is designed to handle time synchronization transparently for its users, ensuring consistency and reliability across its various services and regions.

    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments

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.