J
J
Julia Kovalenko2019-01-10 19:02:46
go
Julia Kovalenko, 2019-01-10 19:02:46

How to speed up http server in golang?

Wrote http server with "net/http". Works very slowly.
Rewrote from "github.com/valyala/fasthttp". It became 1.5 times faster, but still slow.
How to speed up?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladislav, 2019-01-10
@ghostiam

What does the server do? Whether precisely rest against speed of http of the server?
Usually, an http server is not a bottleneck.

A
Andrey, 2019-01-10
@VladimirAndreev

gin?

U
uvelichitel, 2019-01-10
@uvelichitel

Is there any way to speed it up?

Yes. evio But bare nginx still can't be overtaken by anyone.
The classic test for frontend js frameworks is todoMVC . Try to release the server version of this task on Go and nginx scripts, compare the labor costs and the resulting performance.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question