what backend language do i pick in 2021? python or golang?
Depends on what you are doing.
golang - microservices that are mostly stateless
python - fancy wrapper for numpy
More on reddit.comGo vs. Python: What's the difference, and is Go a good choice for system administration?
Why We Switched from Python to Go (2021)
When to use Golang over Python for web app backend?
To be honest if it's a personal project for fun i'd write it in whatever language you are trying to learn, if it a project for a customer/work/etc I would write it in the language I am better able to maintain and be productive in.
Will Go likely process more requests for the same amount of CPU/memory allocation? Surely!
Will python bottleneck your personal project ? Probably not. People have used python and ruby to build amazingly large scaled websites and APIs!
There isn't a number of users that will be the tipping point since much of it depends on what your app is doing and if your database will collapse first.
I would write it in Go personally, because that is what I am writing my backend APIs in right now. If you asked on a clojure forum or C++ forum you'd probably get answers advocating for those languages too.
More on reddit.comVideos
am new to web development, both python and golang are new to me. which language has better support and better frameworks?
I'm interested in learning Go. I'm wondering what the difference is between Go and Python, and what are the advantages of Go over Python. I'm also wondering if I can implement data structures and automate jobs of linux with Go.
And what are some best resources for learning go
Thanks in advance for your help!
A friend of mine told me I should write the backend of my booking app in Go instead of Python (using Django). Is this sound advice? I've heard Go is much more scalable. At how many users does this make a difference? What else should I consider?
To be honest if it's a personal project for fun i'd write it in whatever language you are trying to learn, if it a project for a customer/work/etc I would write it in the language I am better able to maintain and be productive in.
Will Go likely process more requests for the same amount of CPU/memory allocation? Surely!
Will python bottleneck your personal project ? Probably not. People have used python and ruby to build amazingly large scaled websites and APIs!
There isn't a number of users that will be the tipping point since much of it depends on what your app is doing and if your database will collapse first.
I would write it in Go personally, because that is what I am writing my backend APIs in right now. If you asked on a clojure forum or C++ forum you'd probably get answers advocating for those languages too.
When it comes to scalability of a web backend there is more at play than just the language you use. If you're comfortable with Go then sure go ahead and use it, but if you have a better understanding of Python then you'll be more productive in that.
If this app is something you're doing in your free time as a hobby, then sure you could go ahead and write it in Go as an educational exercise. The learning curve may be steep though as you get to grasp with the idioms of Go.
Below are some libraries that could help you with building a web app in Go:
-
gorilla/mux - Routing
-
gorilla/schema - Parsing form data into structs
-
jmoiron/sqlx - Parsing SQL row data into structs
When it comes to ORMs in Go most people recommend gorm, personally I've had better experience with query builders, something I've written about before.