Golang is suitable for creating websites?

Hi everybody!
I want to start learning golang for creating websites. But there are questions many questions at the moment, the sites create in php and all the questions I have are coming from a knowledge of php

1. How are things going with the performance compared to benchmark php looked php the go wins in 2 times speed
(maybe I should continue to create sites in php)
2. Does golang for seo optimization-the results
(if frontend not admin panel to take angularjs the entire site will not be indexed)
3. How to choose the bundle for the server maybe a nginx or apache support for golang (or go there is your server and how it in comparison with others)
4. Does golang mysql and what speed
5. Perhaps there are good frameworks written in golang to create exactly the sites
6. If golang generally for small or large sites
7. Are there any pitfalls when developing

Maybe just someone already made sites for golang just share your experience please for site development would be very grateful, and sorry for the stupid questions =(
June 27th 19 at 15:20
6 answers
June 27th 19 at 15:22
1) Go compiled by itself the speed is higher, but if you are on a small website run in the speed of execution of code, the problem is rather in your code, and more language will save you only from symptoms, but not from the disease
2) to seo, only WHAT you give to the spider. No matter what language the program is written, which gives the html
3) the Program is written in go itself works as a server. Moreover, it is not some kind of application server like tomcat, you will write a loop to handle incoming connections - i.e. you need the most serer to implement. In contrast to php+apache, where the server is apache, which calls a php. Put apache or nginx in front of go server you decide for yourself.
4) Supports. The speed of DBMS is not affected by what language a program is written that accesses it.
5) the level of Frameworks Symfony or Yii 2 is not observed. The situation is the same as NodeJS - something there, but no harvesters.
6) If something can listen socket - it is possible to write a website. Any. Another thing is that the sites do not write on the Go (just for fun), and big sites generally have a complex architecture, such that the language doesn't matter.
7) For php developer - Yes. At least you change the scripting language to be compiled. This means that any change to the code requires compilation, non stop running server, download the binary in its place and running. In addition, you change the Stateless model code work on a fully working program. If you have a php script run anew with each http request, the program go to run once and then take multiple requests.
5) the level of Frameworks Symfony or Yii 2 is not observed. The situation is the same as NodeJS - something there, but no harvesters.


They are not needed. - collee commented on June 27th 19 at 15:25
If you have a php script run anew with each http request, the program go to run once and then take multiple requests.

Sir does not know how many requests can process 1 program on TAG and how many 1 program to Go?
And there - with tips? - clifford_Cruicksha commented on June 27th 19 at 15:28
: I do not quite understand what you mean "how many requests can process 1". Maybe you mean high RPS web applications written in go? Or are you implying the differences between CGI and a separate listening ports?
Tell me what you're talking about and what I am not right, because it is intended to do this website - to people in the know answered the questions of the ignorant. - Shirley.Wunsch commented on June 27th 19 at 15:31
: I allude to the fact that you restart from scratch whenever I sneeze (every request) of the PHP script don't do serious systems for 15 years. Even if I wanted to - it would be very unprofitable due to long chain initialization.

But this is a serious system that you simply do not know. - clifford_Cruicksha commented on June 27th 19 at 15:34
: Read carefully the main question the answer to which we are now discussing. Unless we're talking about a serious system? Millions of websites right now are quite serious so that the web server runs the php script via fast-cgi or even cgi. And Yes, fast-cgi keeps the php interpreter in memory and allows you to not initialize it at each request. But it doesn't change the fact that the script itself, sometimes consisting of thousands of source code files that are interpreted anew. - Shirley.Wunsch commented on June 27th 19 at 15:37
: why golang frivolous systems???? - clifford_Cruicksha commented on June 27th 19 at 15:40
:

And Yes, fast-cgi keeps the php interpreter in memory and allows you to not initialize it at each request.


That is, your qualifications won't even understand my response???
Chew:
it's not about initializing the PHP, and about the initialization of your script. - clifford_Cruicksha commented on June 27th 19 at 15:43
: Did I advised to the author of a golang question? No. Just budding developers see buzzword and start to rush between technologies. - Shirley.Wunsch commented on June 27th 19 at 15:46
:
Just budding developers see buzzword and start to rush between technologies.

Plus furiously. - clifford_Cruicksha commented on June 27th 19 at 15:49
:
That is, your qualifications won't even understand my response???

Fat Troll, sir.
I said that in General the average is about sites and not about the larger system.
Of course, you can run a daemon in php, which will listen socket (or SOAP or any other RPC).
But this is the area of service-oriented architecture (SOA). Sitecam on WordPress and Bitrix, ever.
Well, when we go to SOA, then we have critical overheads and there is a reason to choose go. - Shirley.Wunsch commented on June 27th 19 at 15:52
June 27th 19 at 15:24
Golang is used for creating websites Yes. Only expensive sites. Let's say I have a little project master has sunken into it already cost land Cruiser fresh and continues to pay and pay.
You are not the person for this hire.
And cheap niche you will not be able to compete on price with Pestani.

1. How are things going with the performance compared to benchmark php looked php the go wins in 2 times speed
(maybe I should continue to create sites in php)


One of the most heavily loaded sites in the world made with PHP - Facebook, example.
Or Vkontakte

Technically Go faster. If your server and client parts only 10 meters.
But in the world of web is very large delays is the communication between server and browser, there's a very different distance and a different order of delays. And it is programming language independent.

On their background if you normally have programmed the site should not slow down neither in PHP nor in Go.

2. Does golang for seo optimization-the results
(if frontend not admin panel to take angularjs the entire site will not be indexed)


You with this level of understanding before to solve something.
Do what the elders say.

3. How to choose the bundle for the server maybe a nginx or apache support for golang (or go there is your server and how it in comparison with others)


This is not a language. This is due to the administration, design, architecture of the system, but not language.

4. Does golang mysql and what speed


Yes.
The speed of DBMS is limited, as a rule, the DBMS is a bottleneck, always.
From a programming language that uses a particular DBMS varies slightly.

5. Perhaps there are good frameworks written in golang to create exactly the sites


Revel, Beego.me, gin and a dozen.
They do not need.
Everything you need is already included in the Golang standard library.
To facilitate the work is to look at frameworks - Gorilla, Martini....

6. If golang generally for small or large sites

The only way to find whether the customer to pay.
Go out more expensive to do than with PHP.
So you just fly with the orders.
Cheap jobs at times more.
Orders are to take - it is necessary to have the more qualified, which, judging by the wording - you still have 7 years to practice programming.

7. Are there any pitfalls when developing

For you, it is important that little information, especially little - Russian.
I want to make a project for yourself! PHP already know I need to know how things are going with GOlang for creating websites.
Recently just saw that
https://www.techempower.com/benchmarks/#section=da...

GOlang framework that is echo faster than php net 2 times because of me is very interested - collee commented on June 27th 19 at 15:27
: once again:

the main delay is the NETWORK.
not a programming language. - clifford_Cruicksha commented on June 27th 19 at 15:30
:
the clear advantage will Go only if you want there is something complicated on the server to calculate.
that it is possible to calculate the complex on the website??????????????????????????????????? - Shirley.Wunsch commented on June 27th 19 at 15:33
:
again:

some of the busiest sites in the world FaceBook and Vkontakte in Russia - is not going to refuse from PHP. - clifford_Cruicksha commented on June 27th 19 at 15:36
: but Facebook wrote your compiler HHVM and VC is also not behind FB! VK uses kPHP - Shirley.Wunsch commented on June 27th 19 at 15:39
: The big question is whether real change PHP to GOlang? - clifford_Cruicksha commented on June 27th 19 at 15:42
:
work - less than ten times.
the cost of work is higher. ordinary customers do not understand. - clifford_Cruicksha commented on June 27th 19 at 15:45
:

but Facebook has written his own compiler HHVM and VC is also not behind FB! VK uses kPHP


Who's stopping you to use it? - Shirley.Wunsch commented on June 27th 19 at 15:48
June 27th 19 at 15:26
suitable beego.me take and forward (about 3-4 of the framework is), but with php there is a caveat
Galanga not necessary frameworks for the web.
All you need is included in the standard library. - collee commented on June 27th 19 at 15:29
: do not write nonsense. Let's take a simple example of csrf attack how to protect yourself you? From zero to write? - clifford_Cruicksha commented on June 27th 19 at 15:32
:
do not think in patterns.

if a website is not authentication - how can there be CSRF?
quite of life an example is a large online store (no personal accounts for him, I always these rooms are annoying), which I do.
what is there to steal? the current basket?

and the shop owner is generally not included in his online fresh pictures, descriptions, prices automatically unloaded from 1C. loaded automatically in 1S orders in the online shop. - Shirley.Wunsch commented on June 27th 19 at 15:35
: what do you - absolutely do not use third-party libraries?
that is a solid web frameworks don't need.
but this does not mean that we need to write.
you can and should use the work of others in the form of libraries.
I use a Gorilla and a Martini. - clifford_Cruicksha commented on June 27th 19 at 15:38
Answer me 1 question if I should replace PHP to GOlang? Already know PHP using Laravel Framework

Is there any real people who began to write in GOlang instead of PHP?
And what problems arise?
On account of CSRF! I think if you really should learn golang and I will take the echo framework and there is a csrf
https://echo.labstack.com/middleware/csrf - Shirley.Wunsch commented on June 27th 19 at 15:41
to work early, you're , no offense, I don't know much

for education and career is - clifford_Cruicksha commented on June 27th 19 at 15:44
of all the questions I would have asked you. My comment was about "everything you need is standard Liebe" - clifford_Cruicksha commented on June 27th 19 at 15:47
OK understandable! just tell me whether someone is a real person who moved from php to golang and completely satisfied with the choice golang instead of php!
I have the challenge now is to speed up the site at the moment VPS simultaneously pulls 100-200 people online!
If I perepishu website in PHP Laravel golang is a big gap or not? Probably should just take PhalconPHP and not fooling?
(PhalconPHP faster than Laravel PHP 3-4 times and also consumes significantly less resources) - Shirley.Wunsch commented on June 27th 19 at 15:50
: you write to me? not wrong? I your question is not answered, and will not, because you do not understand the scope, with the time you have the question itself will disappear. I'm in this thread jus ' talk, it was boring. - clifford_Cruicksha commented on June 27th 19 at 15:53
:

over time, the normal, the developer shall go to all to more and more complex projects.
a complex V - ready frameworks.

I am sorry if you think that Galanga need frameworks for creating web applications.

you came them PHP or JavaScript?
it is not necessary to privnosit their stereotypes of programming in another language.

programming languages are similar only in the details.
they therefore created a different paradigm.

and not because someone wanted to introduce the rules to name the variables in another register. - Shirley.Wunsch commented on June 27th 19 at 15:56
:

because you do not understand the scope, with the time you have the question itself will disappear.


Several years developing a large website without freimark and having received from him a few years, the cost of a brand new Landcruiser, I understand that the right choice has been made.

Solid web Frameworks level Beego.me, Revel - Golungo not needed.
It's a lot less tselnosteklyannyh under web languages.

At first, when I like you have not focused in Go, I also wanted to lay the Foundation with the framework.

Smart people dissuaded.
Was tales, more than a little help like GorillaToolkit, etc. Go language for the web is not necessary. No more bulky items not needed. - kristoffer.Schimmel commented on June 27th 19 at 15:59
: take the Falcon, it's easier to solve the problem - collee commented on June 27th 19 at 16:02
: and you too, write to me at all? Talking to me or the Toaster is broken?

P. S. Write on the go, dancing around a gorilla, grief do not know. - collee commented on June 27th 19 at 16:05
June 27th 19 at 15:28
Judging by the questions you do not need it.
1) Yes , faster, but depends on the colour. In page requirements below.
2) and blaze affects? In both cases, it depends on you.
3) the server is built but sometimes even put mind.
6) for small in General, no. It's like the fish to write without teamwork or cms.
7) of course.
IMHO, it is better then the nod to write.
And don't forget that will be a pain in the ass to find a job.
Unanswered Google.
Mind? - collee commented on June 27th 19 at 15:31
The brain - clifford_Cruicksha commented on June 27th 19 at 15:34
: backender?)) - Shirley.Wunsch commented on June 27th 19 at 15:37
: you are so unfortunate joke or there is a server called mind? Not the brain, and the mind. - clifford_Cruicksha commented on June 27th 19 at 15:40
:
do not think in templates: our and English are very different. literal translation often deprives shades of meaning. the fact that the English represent in everyday life in Russian the word mind in popular phrase is termed the brain, not the mind. brain in their language - it's physiological too. mind we - it's too exalted. - Shirley.Wunsch commented on June 27th 19 at 15:43
: you what is it? The answer is read, then your comment first, then mine, after a talk, but this is not accurate. - clifford_Cruicksha commented on June 27th 19 at 15:46
: all there just.
the languages are different.

don't just memorize the words.
just memorize the phrase.

in one phrase the word may be similar to the Russian in value.
in another sentence the same word - has far from the Russian meaning value. - clifford_Cruicksha commented on June 27th 19 at 15:49
: you are adequate?
3) the server is built but sometimes even put mind.
What's your bet? Brain? Mind? The man obviously was a typo and you write heresy.

I talk with native speakers freely every day and do not you teach me. Templates, don't just memorize words, PSTs...how old are you? The school graduated at least? You wish someone good advice given but feel or too sooner or later. - Shirley.Wunsch commented on June 27th 19 at 15:52
: Well, apparently these carriers from India and Pakistan with whom you communicate every day.
Or your carriers do not care about Shakespeare in everyday activities (if they do it), and for trivial technology does not need to know the subtle differences of the values of brain from mind.

Agree with your opponent - you incorrectly make translations of shades of meaning. - clifford_Cruicksha commented on June 27th 19 at 15:55
Work is hard to find? Are you kidding me? Why, then, fill me suggestions for golang development? This was not to say a year or two ago.

> It's like the fish to write without teamwork or cms.
What prevents to use frameworks in go? All the small sites on th rivet is not longer than page, I once on a dare from one user Habra sketched the site in 20 minutes with the form of feedbacks and admin. Code on the go has turned 50 lines (including admin area). I month three as mastered at that point.

IMHO, it is necessary to learn this language, at least for self-development. - Shirley.Wunsch commented on June 27th 19 at 15:58
June 27th 19 at 15:30
Golang - the other pole of development. Complex projects.
A typical website in PHP - this is the cheapest developers, the most simple sites.
This does not beg the merits of PHP at the end of it all, and Facebook and Vkontakte - PHP based.

1. How are things going with the performance compared to benchmark php looked php the go wins in 2 times speed
(maybe I should continue to create sites in php)

For renedring HTML pages - it is doubtful that there was such a gap.
For some calculations on the server side - Yes, of course, Go has the advantage.
However, in 90% of cases limit the speed of the Internet. Not programming language on the server side.

2. Does golang for seo optimization-the results
(if frontend not admin panel to take angularjs the entire site will not be indexed)


What?
Rather affected your ability or inability.
You need to program on what you know best - then with SEO everything will be fine.

3. How to choose the bundle for the server maybe a nginx or apache support for golang (or go there is your server and how it in comparison with others)


Apache is not necessary, since golang is quite a separate full-fledged web server allows you to do. Nginx is wise to keep in front of him. To relieve load on slow connections with the client. And for SSL.

4. Does golang mysql and what speed


Again not the case.
All abut here only in that, do you know how to use it or not.
Mysql support from golang is.
But the speed depends on what your DB structure in mysql, what are your needs and what is the tuning your DBMS and what hardware is on your server - this has nothing to do with PHP or Go.

5. Perhaps there are good frameworks written in golang to create exactly the sites


Beego.me to recommend it.
But much more modern and fashionable application of Go is not done in classical architecture with any web framework, but rather microservices. You can use a framework go-micro.


6. If golang generally for small or large sites


Everything depends upon that know you or not.
For small constraint will be highly competitive with PHP.
Large - with your inability to program.

7. Are there any pitfalls when developing


Less kommuniti, less tips have Go.
Less customers.
The Go is mainly used in large projects where you are heading until ordered.
June 27th 19 at 15:32
Your questions are clearly difficult to answer but what about Go personally, I can say -
go solve some difficulties that arise when developing a backend in C++, why is it sometimes I come to the pros in this field(need performance, multithreading realtime applications) staff informed Google are developing a JVM and Java compiler, I decided that instead of using C++ which are compiled on their hardware 10 hours to create their own language under their permanent tasks. Washed down the specialized language under multi-threaded processing of standard functions for working with arrays and other basic logic implemented have created a standard library for abstraction from low-level interaction with the outfit and OS IE SOLVED THEIR PROBLEMS Personally, I believe in order to understand what language really is, where and where it's really really nice to build need napar with Java or C# or C++ a couple of years. Although those who say the firm at the stage of consta to work with TH this figure is not meant to be. Just to take and to teach, Go or Erlang don't see the point,
1. it should be taught when made by those who understand what to do(senior in the firm)
2. or when he rose to in order to understand what piece of the project on it to cut.
------ What to learn ??? - what materials are at hand and know where and how to implement. JS PHP JAVA ObjC or Pros doesn't matter...

Suppose you're doing a search for specific data, or even a search engine like google.
You need flattery to 200 database servers for a single request, parallel to fold it all into a single array of cache servers for popular queries, users 10 000 at one point, we should all search processes cache data refresh carried out in separate threads, + to reduce Analytics on the data to implement the sorting by query, analysis, page rank, for example, + parser new sites. Yes, this project should be rewritten in Java for example on the Go. Or a situation say, Jave fall webinars, mass distribution of video streams can be sent via ErlyVideo, and one to be passed through Wowza(Java) as a simple API, and the mass dubbing to start using Erlyvideo Erlang which is already something similar on the Go. Later it is better to let the CDN and via WebRTC to the type of the torrent data was between viewers of the webinar or conference participant and say the process was written on the server. GO to optimizatsii the backend is C++ my personal conclusion.
I'm on PHP + Mysql, in theory, can create a quick search. To create a table of unique words more than 4 characters of the description from the texts of the product descriptions from the second column where the ID of the goods. then separated the products search phrase if the search phrase, popular searches, word filters, phrase a separate server to the cache. or to use ElasticSearch in Java. For store with millions of products with the head.

to the situation when it is necessary to resort to Go very far, even to some Senior. And you don't fully understand the architecture of the technology with kotorymi work(judging by the question) and interisuetsya Go. - collee commented on June 27th 19 at 15:35

Find more questions by tags GoPHPWeb Development