Skip to content

Memory optimization when high concurrency #2398

Answered by aldas
JobberRT asked this question in Q&A
Discussion options

You must be logged in to vote

This is how standard library http.Server works - this is nothing inherently Echo specific. You definitely find better answers when you google for http.Server concurrency. Echo/Gin and similar std based "framework" role here is only to do request routing and run middlewares and eventually execute handler function.

This is post from another thread that details how it works #2205 (comment) but I assume that you know that already, having checked the profiler/debugger

And about #1942 If I recall correctly this is about how sockets behave (linger and are reused etc) and not how http.Server handles the connections. Keep-alive header is both server and client-side decision. If client wants to hav…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JobberRT
Comment options

@aldas
Comment options

@aldas
Comment options

@JobberRT
Comment options

Answer selected by JobberRT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants