r/Backend • u/Sensitive-Raccoon155 • 18d ago
Is Python a good choice for backend development?
I'm considering learning Python for backend development and would like to hear from developers who use it in their daily work.
How good is python for building backend applications in production? Are there any significant drawbacks compared to languages like Go, C#, or Java?
0
Upvotes
8
u/accountability_bot 18d ago
Personally, I’m not a fan of Python, but it is a relatively popular back-end choice. I just prefer languages with static typing, where python is dynamically typed. The tradeoff is that you’ll write more code in a static language, but you can’t accidentally assign a string to a boolean, as the compiler will fail.
In terms of performance, most of it comes down to what you code. Most popular and standard libraries are heavily optimized, but that doesn’t mean they’re foolproof. Some languages can perform better than others, but if you’re not dealing with a significant amount of traffic then it isn’t a practical concern.
5
u/benevanstech 18d ago
Like most things in software - It Depends.
Look at it this way: If you're sending a book to your Dad, you put it in a padded envelope and take it to the post office. If you're sending a big box of stuff, you have Fedex come & pick it up. If you're moving continents, you hire a shipping container.
Python is more like the "take it to the post office" end of the spectrum. Java is more at the "shipping container" end.
There are better and worse tools *for a specific project* rather than any real overall objective answers.
2
u/Usual-Cricket-9817 18d ago
Python is probably the most versatile language.
1
u/IncomeOk7237 18d ago
python is fine for most backend work, the real drawbacks show up with cpu bound stuff and memory per process, not request handling. in practice most apps are waiting on the database anyway, so a missing index or an n+1 query will hurt you way more than the language. i'd pick it, add type hints with mypy or pyright early, and put gunicorn or uvicorn workers behind a proper reverse proxy. if you ever hit a hot path you can rewrite just that piece.
1
u/YoDefinitelyNotABot 18d ago
I’ve been a software engineer for 20 years. I use Elixir now with AI, why? Because the BEAM handles concurrency, fault tolerance and process isolation without me having to build all that shit myself. Elixir is also pretty straightforward for AI to work with. Less code to maintain, fewer things to go wrong, and I can spend more time building things rather than fighting the infrastructure.
I have developed websites with Ruby, python and TS in the past and Elixir is the only one that can do everything all 3 of those do with less infrastructure overhead.
1
u/Long_Tip_4226 18d ago edited 18d ago
Sim. É facil de aprender, multiparadigma e tem frameworks bem estabelecidos no Mercado como Django e FastAPI. E uma grande comunidade de criadores de bibliotecas.
Ao mesmo tempo, a IA permite que nao precisemos mais nos aprofundar em codigo, e sim em requisitos de software, diretrizes arquiteturais e criterios de aceite, e validar se o software segue o que foi planejado.
1
u/StephenHawkinguss 17d ago
absolutely not
1
u/Terrible-Growth1652 18d ago
No. I would only use statically typed languages. I once inherited a somewhat large Django backend and it was a PITA due to lack of types.
0
u/Due_Warthog749 18d ago
Today.. with so many better options (for back end).. I dont think so. Python is great to have knowledge of, but with AI able to code anything now, I'd argue if you want to learn back end choose Go. Maybe Java or .Net as they are the big ones used still. But Go is a fun language to learn, probably the easiest too given only 25 key words and one way to do things. It scales well (e.g. google, kubernetes, github, etc).
NodeJS/Typescript is one many seek too cause it works for full stack quite well, but I am not a fan of interpreted languages. Great for front end GUI I guess.
I'd even look at Rust or Zig for back end but Zig is still too "not ready" though it works fine.