PlayFab / consuldotnet

.NET API for Consul (http://www.consul.io/)
Apache License 2.0
692 stars 193 forks source link

/v1/agent/services need over 200ms #99

Open mojinxun opened 6 years ago

mojinxun commented 6 years ago

have some solution? first time when I get services, the requesttime all over 200ms

highlyunavailable commented 6 years ago

Hi,

Thanks for reporting this. Can you let me know if you use cURL to request the same URL from Consul, does it report back in 200ms-ish or is it faster? Also, is this against a local agent or something else?

mojinxun commented 6 years ago

Thanks for your reply.

Here is the test result:

url: http://127.0.0.1:8500/v1/agent/services cURL: 5ms _client.Agent.Services().Result.RequestTime: 150 ~ 180 ms

Oh... Why I can't upload the png....

mojinxun commented 6 years ago

Sorry, I should to say, this result based 0.7.2.3

I tried the git master, about 80 ~ 110ms

something good !