A
A
Alina Oil2018-05-18 09:26:35
go
Alina Oil, 2018-05-18 09:26:35

Web server on GO?

I have a question on a subject.
Why can't the implemented ver-server on GO be put on the front?
I have the simplest simple implementation: the ver-server only works in one folder /var/www/.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Pavlyuk, 2018-05-18
@pav5000

It is possible, but nginx simply returns statics faster usually.

Q
qazar, 2018-05-18
@qazar

because the built-in server on Go does not know how to work with slow clients, and a hundred other such slow connections will simply fall off if timeouts are not set correctly for it, but then visitors who, for example, try to open a site from a phone with slow Internet, will fall off, so go
to the front they install nginx, and even where there is already a server such as IIS or Apache,
how nginx handles connections is partially written here
https://habr.com/post/260669/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question