java - 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 ?
解决方案
您可以使用单个数据库(最好是 MongoDB),并且可以根据数据库存储 currentDateTime()。我认为这应该达到目的。
推荐阅读
- sql - Oracle 触发器错误 - ORA-04080:触发器“TRIG”不存在
- android - Android 布局 2x3 静态均匀大小的图像网格
- file - 使用 nodejs 上传大量数据
- node.js - 将图像上传到 S3 存储桶时如何在 Multer Sharp S3 中制作分辨率动态值
- sql-server - 错误:Azure 上的 SQL Server 2014 上的“索引超出了数组的范围”,带有新的 SSMS?
- python-3.x - 在 Python 中集成 baselinker
- haskell - Haskell SBV 中的状态序列不满足约束
- flask - iis烧瓶蓝图404页面未找到
- python - 使用 tensorflow 时出现错误:int() 参数必须是字符串、类似字节的对象或数字,而不是“NoneType”
- vim - vim用制表符替换空格