首页 > 解决方案 > How do we measure the total time taken to complete a flow across two different java applications?

问题描述

I have two different java applications integrated with each other. Consider them A (will be running on EDGE) & B(Running on cloud). Suppose if I receive some data in A and then it sends it to B to complete some processing and persist, how best can we measure the total time taken to complete the flow ?. I was actually relying on the log time to do this. I also went through System.nanoTime & milliseconds methods. I understand the wallclock time may not be synced with one another always. So I don't think that's the efficient way. But is there any better way to do this ?

标签: javaperformancejava-8

解决方案


您可以使用单个数据库(最好是 MongoDB),并且可以根据数据库存储 currentDateTime()。我认为这应该达到目的。


推荐阅读