How to account for clock offsets in a distributed system?
问题 Background I have a system consisting of several distributed services, each of which is continuously generating events and reporting these to a central service. I need to present a unified timeline of the events, where the ordering in the timeline corresponds to the moment event occurred. The frequency of event occurrence and the network latency is such that I cannot simply use time of arrival at the central collector to order the events. E.g. in the following scenario: E1 needs to be