我正在寻找一个Java HTTP async客户端,该客户端可用于获取性能指标,例如TCP连接时间,第一个字节的时间,TLS握手时间用于端点。
我研究了最新的模块,但似乎没有任何此类听众。实际上,我发现似乎正在携带这些听众的Async Java客户端是 asynchttpclient 。但是,问题是它是一个开源项目,目前没有任何有效的维护器。这可能已经是一个死去的项目,从长远来看,这可能是不可持续的吗?
Java中此用例的建议选项是什么?
I am looking for a Java HTTP Async client which can be used to get performance metrics like TCP connection time, Time to first byte, TLS handshake time for an endpoint.
I looked into latest java.net.http module but it does not seem to have any such listeners. In fact, only async java client i found which seems to be carrying these listeners is AsyncHttpClient. However, problem is that it is an open source project and currently does not have any active maintainer. It might be a dead project already and in the long run might not be sustainable?
What is the recommended option for this use case in java?
发布评论
评论(1)
它在您的问题的标签中,所以我假设您已经考虑了Okhttp。它具有可用于指标的事件API。
https://square.github.io/okhttp/featens/events/events/events/
It's in the tags for your question so I assume you've considered OkHttp. It has an events API that's usable for metrics.
https://square.github.io/okhttp/features/events/