#Fasthttp alt that supports h2
17 messages · Page 1 of 1 (latest)
H2 muxing adds some overhead
it also read head blocking issues
you just can't get H2 as good as extremely optimised H1
decoding the request could be better since it's more format binary but the body most likely not
I'm in a business where I deal with APIs and receive and send requests, which needs to be very fast Or I will not be able to compete with other people
Will keep that in mind thanks for the tip
I think I oversold the thing, you could get H2 extremely close to H1, it's just that if you want ultra high performance http either you have H3 which does not have many problems H2 have, or you have H1 which is compatible with everything, easier to optimise (since you can make it a small shim over TCP)
so becasicaly the incentives are for H1 or H3, that why less very optimised H2 implementations exists
i see, so basically i need to modify something for myself and there isn't something that's really good out there
What about echo though? is it worth trying? A friend recommended it to me but i don't really find anything useful about it online for some reason
if you want performance, there's no substitute for actually measuring the thing you're trying to do
people focus too much on the abstract choice of frameworks
and not enough on the fundamentals of "am I programming in a basically efficient way"
if you are referring to a code bottlenecks that has nothing to do with the speed of the connection itself and it's performance. Then no that is totally not the case at all, and i know for a fact that my issue is caused by the slow net/http framework, but thanks for the tip
And it's also not how i handle the http connection and requests because i already analyzed that too, its just that net/http isnt enough
i'm curious, i've never seen a net/http bottleneck, could you show your analysis?
I don't really know how to show that to you because it's not a standard analysis, it's something I did by emphasizing the program and showing some processes and states and analytics data