You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say a web server written in node using http library or using frameworks like express/ fastify/ Koa etc..
When server is Busy usually 503 is sent, on what metrics shall on decide to send 503.
Some of the options I could figure out is
event loop latency / lag detection using libraries like
Are there any other better options when should one send 503?. Regarding event loop delay, let's say event loop is really blocked, then no other network requests shall be processed till next io cycle in event loop, then how would some send 503 when no request hits server.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let's say a web server written in node using http library or using frameworks like express/ fastify/ Koa etc..
When server is Busy usually 503 is sent, on what metrics shall on decide to send 503.
Some of the options I could figure out is
Are there any other better options when should one send 503?. Regarding event loop delay, let's say event loop is really blocked, then no other network requests shall be processed till next io cycle in event loop, then how would some send 503 when no request hits server.
Beta Was this translation helpful? Give feedback.
All reactions