Replies: 1 comment 1 reply
-
In additional to this, I found that the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, first of all thanks for reading and replying this issue!
I got a application, which basically can be described as:
state
API, which is requested at a low frequency(only when needed)get
API, which is requested at a very high frequency(about 100~500 clients, each client requests about 5times/s)And here's the issues:
After echo started, if
get
haven't been requested or only requested in a low frequency(such as when i debug, i shutdown most of the client), thestate
still works and has a low response latency.But once
get
start to been requested at a high frequency, thestate
will not be responsed and chrome will not showError request timeout
message. Even i lower the frequency to about 5 req/s in total,state
will not be responsed again.So what cause the problem and what should i solve this?
I've tried add lock for these two apis, when
state
got requested, it locks, andget
will be blocked.But this will cause huge response latency for the clients, I don't think this is a good solution.Beta Was this translation helpful? Give feedback.
All reactions