Issue
When integrating a Mendix application with external REST APIs, minor timestamp discrepancies may be observed between logs on the Mendix side and the external service side. Specifically, logs might appear to show that the external service started processing before the Mendix app sent the request.
Environment
Applications hosted in any deployment type
Cause
The timestamp in Mendix logs is recorded immediately before the runtime begins sending the HTTP request. Mendix uses System.currentTimeMillis() for log timestamps, which is dependent on the operating system’s clock and may have limited granularity (see Oracle Documentation). This can cause events to appear out of order when comparing timestamps across different systems at millisecond precision.
Solution / Workaround
Do not rely on millisecond-order accuracy: Avoid drawing conclusions based on the order of events when timestamps differ by only milliseconds. This is not a reliable indicator of actual sequence.
Internal information related
- 266379
- C3T260XGA/p1764834898862459
Additional information
Not applicable
0 Comments