Re:See Python, See Python Go, Go Python Go (2016)
by alimoeeny on Thursday January 23, 2020 @05:09PM
(#22132786)
This claim is specifically related to blocking webserver in python vs concurrent webservers in go.
I assumed this is common knowledge, that scaling python webservers is a complicated thing, while in go you get a concurrent web server in standard library,
Re:See Python, See Python Go, Go Python Go (2016)
by throw_14JAS on Thursday January 23, 2020 @05:24PM
(#22132933)
Were you deploying using a Python webserver (e.g. SimpleHTTPServer), or was it nginx routed to an app server?
Re:See Python, See Python Go, Go Python Go (2016)
by infecto on Thursday January 23, 2020 @05:42PM
(#22133082)
And this is the trouble with the OP imo. While its true, I find it an unfair comparison to make.
Re:See Python, See Python Go, Go Python Go (2016)
by hermitdev on Thursday January 23, 2020 @09:02PM
(#22134707)
How about comparing a blocking server in Go versus the same in Python, then an async server in Python vs the concurrent Go server? That would be a more apt comparison.
Re:See Python, See Python Go, Go Python Go (2016)
by eloff on Thursday January 23, 2020 @05:11PM
(#22132811)
That you can run a site entirely on Python does not mean it's efficient to do so.
Re:See Python, See Python Go, Go Python Go (2016)
by whalesalad on Thursday January 23, 2020 @05:54PM
(#22133195)
Efficiency is measured in a lot of different ways. Development speed? Team familiarity? Existing infrastructure (private pypi etc...)? Existing libraries?
If we go with what I would assume is your definition -- speed of execution versus resources used -- it is certainly possible to build fast Python applications that are efficient.
But use what makes you and your team happy, life is too short for anything else.
Re:See Python, See Python Go, Go Python Go (2016)
by weberc2 on Friday January 24, 2020 @01:12AM
(#22135810)
blocking webservers are a common problem in Python. Even if you have async, all it takes is a CPU bound task or some sync IO deep in some third party library and its lights out for your server, and no debug info for you either.
Especially considering that there's quite a few sites which run entirely on Python.