It depends what your aiming for, much of Enterprise Web based Applications run with Spring Boot. It's mostly used as Backend Only and a separate Frontend. I would recommend looking at HTMX + Spring Boot https://youtu.be/aGgWvwb5xUE Django is more Full Stack and probably easier to do fast development. I would recommend Dennis Ivy on YouTube Answer from Thaiminater on reddit.com
🌐
StackShare
stackshare.io › stackups › python-vs-spring-boot
Python vs Spring Boot | What are the differences? | StackShare
Python is most praised for its ... suits you best. Spring Boot - Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run"....
🌐
Reddit
reddit.com › r/webdev › what's better, springboot aka java or python?
r/webdev on Reddit: What's better, SpringBoot AKA Java or Python?
July 15, 2021 -

Hi! I'm a webdev newbie and I'm currently looking for a good framework to try out. I'd like to know, regardless of my expertise and learning curve of either language, which would be a better choice for building a fast and reliable website? Java(SpringBoot) or Python(Flask/Django)? And can you give some examples of websites made with either language? If anybody has any other suggestions(like JS) besides these two languages/frameworks, feel free to tell me as well. Thanks in advance!! :D

Top answer
1 of 4
5
It depends what your aiming for, much of Enterprise Web based Applications run with Spring Boot. It's mostly used as Backend Only and a separate Frontend. I would recommend looking at HTMX + Spring Boot https://youtu.be/aGgWvwb5xUE Django is more Full Stack and probably easier to do fast development. I would recommend Dennis Ivy on YouTube
2 of 4
5
Like others have said already - It depends on what you're going to build... Java (spring/spring boot) - is an enterprise framework used mainly for managing heavy db transactions, mostly in financial industries like those corpo banks. Python(Flask/Django) - on the other hand, is more of general purpose lang (like swiss army knife).. Django is more common to hear on web dev due its out of box features included. Flask is easier to get into if you are just starting out. Few examples - reddit, airbnb, dropbox, instagram etc.. Let's try & level down a little bit here ye... In your post, you mentioned that you are new (to this sub? or web programming in general?)... Either way - Why are you jumping straight into web frameworks?? (this is like using a Ginsu knife while still learning how to cook OR getting a Lambo when you just passed your driving test yesterday) my point here is: do you understand different layers of a web app (business logic, presentation, data persistence/data storage etc.) do you have a fundamental knowledge of how web works (http get, event handlers, DOM elements, html/css, forms etc.) understanding of web servers & how they communicate w/ your website (networking/security)... and the list goes on Not saying you need to be proficient on all of the above, just an understanding will suffice then you can dig deeper into each parts & possibly specialise on one. Having said that, based on your post i will go for Flask as it is a good tool in learning fundamentals & has core pieces you need w/c is available on almost all other frameworks. If this was me (And I need to re-learn everything), I'd start w/ barebones html, css w/ vanilla JS. Then take next step with PHP & setup a LAMP stack locally. Anyways, I'm blaberring on about things now - I wish you goodluck on your webdev journey mate.
Discussions

Java's Spring Boot vs Python's FastAPI: Threads - Stack Overflow
I'm a Java Spring boot developer and I develop 3-tier crud applications. I talked to a guy who seemed knowledgeable on the subject, but I didn't get his contact details. He was advocating for Pytho... More on stackoverflow.com
🌐 stackoverflow.com
Ask HN: Kotlin SpringBoot vs. Python Django for Min Viable Product
If your goal is speed to market use what you know which is Spring Boot and Java · If your aim is to learn something new then go with Django or sprinkle in some Kotlin incrementally (eg tests). I don’t think it’ll matter in the long run which you choose More on news.ycombinator.com
🌐 news.ycombinator.com
42
22
September 26, 2024
Django (Python) vs Spring Boot (Java)
A good answer will be Spring boot is a mature framework Spring boot is scalable we can go from distributed architecture to microservices Spring provides a powerful and Robust ORM along with his annotations , easy to take in hand Spring Boot along with Spring Security is one of the most powerful Security association on the market If you do not want to enter in depth , me at your place I will say it More on reddit.com
🌐 r/javahelp
6
3
March 18, 2021
What is the standard framework used in the Python world for Kubernetes, similar to Spring Boot in Java?
This is... not a thing. I'm no Java dev, but as far as I can tell Spring Boot has nothing to do with Kubernetes specifically. It's a way of packaging up web applications to run anywhere (including Kubernetes). Python doesn't have an equivalent framework. You deploy a WSGI app along with a WSGI server such as gunicorn. If you want a single-artefact solution then you would use a Docker container - which surely has become the norm on Java too. More on reddit.com
🌐 r/learnpython
9
0
July 19, 2024
🌐
Medium
medium.com › deno-the-complete-reference › python-vs-springboot-performance-comparison-for-jwt-verify-and-mysql-query-d2c28bff3958
Python vs SpringBoot: Performance comparison for JWT verify and MySQL query | Tech Tonic
June 29, 2023 - This article compares Python & SpringBoot for this use-case. This is an interesting comparison because Python is interpreted, while SpringBoot (or Java) compiles as bytecode that runs inside JVM. Also, verifying JWT is a CPU intensive operation.
Top answer
1 of 4
10

The issues with Java threads in the question are addressed by the project Loom, which is now included in Jdk21. It is very well explained here https://www.baeldung.com/openjdk-project-loom :

Presently, Java relies on OS implementations for both the continuation [of threads] and the scheduler [for threads].

Now, in order to suspend a continuation, it's required to store the entire call-stack. And similarly, retrieve the call-stack on resumption. Since the OS implementation of continuations includes the native call stack along with Java's call stack, it results in a heavy footprint.

A bigger problem, though, is the use of OS scheduler. Since the scheduler runs in kernel mode, there's no differentiation between threads. And it treats every CPU request in the same manner. (...) For example, consider an application thread which performs some action on the requests and then passes on the data to another thread for further processing. Here, it would be better to schedule both these threads on the same CPU. But since the [OS] scheduler is agnostic to the thread requesting the CPU, this is impossible to guarantee.

The question really boils down to Why are OS threads considered expensive?

2 of 4
7

FastAPI is a fast framework, and you can quickly (and easily) create API backends in it. To be honest, if you are a Java developer, I would recommend Quarkus or something for building a REST API, not FastAPI. FastAPI is a fantastic tool, absolutely great if you are already in the Python ecosystem.

When it goes about multithreading; Java is 'real' multithreading where as Python is very much not. Java threads will run concurrently; two tasks can and will be executed at the same time. In Python, within one Python process, this is (nearly) impossible. The reason for this is GIL (google it, there is ton's of stuff out there on how it works). The result is; even if you use 'real' threads in Python, code is still not executed concurrently but rather serially, where the interpreter (big difference to Java) is jumping from one call stack to another constantly.

As to what you refer to as 'logical threads', I think you mean the asynchronous capability of Python. This is basically the same as using threads (not really, but on an abstract level they are very similar); tasks are not run concurrently. There is just one thread that constantly switches between tasks. Tasks will yield back control to the event loop (the object that coordinates tasks and decides what is executed in which order), and another task is further executed until that task yields control, etc. It is basically the same kind of execution pattern as with threads within Python.

Comparing a Python framework to a Java framework is just weird in my opinion. They are both useful and cool, but not really competitors.

🌐
Quora
quora.com › Which-is-best-Java-Spring-Boot-or-Python-Django
Which is best, Java Spring Boot or Python Django? - Quora
Answer (1 of 2): Django is really as moto its says: The Web Framework For Perfectionists With Deadlines. If you are a developer you can learn Django and be up and running in four hours. Django ORM is similar to defining a table in a relational database. You don't have to know that much about Pyth...
🌐
Flexiple
flexiple.com › compare › python-vs-spring
Python vs Spring - A Detailed Comparison | Flexiple - Flexiple
Its extensive ecosystem of third-party libraries and frameworks like Django, Flask, NumPy, Pandas, and TensorFlow, provide additional functionality and simplify the development of complex applications. The active community of Python Developers provides a wealth of resources, including libraries, frameworks and tools. Spring is a widely-used, open-source and lightweight framework for building enterprise applications in Java.
🌐
Hacker News
news.ycombinator.com › item
Ask HN: Kotlin SpringBoot vs. Python Django for Min Viable Product | Hacker News
September 26, 2024 - If your goal is speed to market use what you know which is Spring Boot and Java · If your aim is to learn something new then go with Django or sprinkle in some Kotlin incrementally (eg tests). I don’t think it’ll matter in the long run which you choose
Find elsewhere
🌐
Better Stack
betterstack.com › community › guides › scaling-python › spring-boot-vs-django
Spring Boot vs. Django | Better Stack Community
September 11, 2025 - Spring Boot is Java's go-to framework for building production-ready applications with minimal configuration. It comes with embedded servers, auto-configuration, and production monitoring out of the box, letting you focus on business logic instead of infrastructure setup. Django brings Python's "batteries included" philosophy to web development, delivering everything you need for database-driven applications.
🌐
GeeksforGeeks
geeksforgeeks.org › gblog › django-vs-spring-boot
Django vs Spring Boot: Which is Better For Your Website - GeeksforGeeks
July 23, 2025 - Spring Boot: Spring Boot utilizes Java, a versatile and widely adopted programming language. Java's strong typing and performance make it suitable for enterprise-level applications.
🌐
Reddit
reddit.com › r/django › university student here. java springboot or python django for jobs when i graduate?
r/django on Reddit: University student here. Java Springboot or Python Django for jobs when I graduate?
July 20, 2024 -

Everyone needs a job to pay for bills and buy stuff. So I have been driving into python and it's libraries and got started with flask and django. Also it is quite useful in AI as well, so that's also a reason. (I could just import libraries and do stuff and learn and build along the way)

It is not a matter of whether I should I do django or springboot but of to which to dedicate the most time so that my learning could be the most fruitful. I'm 21 of age.

Top answer
1 of 5
12
Spring probably has more jobs but for longevity of a career, go with Python and Go.
2 of 5
6
IMHO Spring, hands down. Some comparisons: Docs & Learnability: Django has great docs, Spring kinda requires you to have existing knowledge and there are many holes in it Speed: Python is terrible, Java/Kotlin pretty fast. We got together at work to write reasonably optimized web apps and Rust was only 2x faster than Kotlin/Java Typesystem: Python has mypy and typings but it's not popular, Kotlin has a fantastic typesystem Buildsystem: pip/venv is terrible, gradle/maven are great and terrible Databases: Django has good defaults, Hibernate has shitty ones. Both are great though, you just have to watch out and really learn Hibernate to not fuck up. Using most of Hibernate's features will make your app slow and buggy. Flyway is fantastic for database migrations. Model first is a mistake. Security: Spring Security is often too complex, especially when you want to implement custom auth; Django doesn't cover the basics in core like CORS and CSP Templating: hands down Django. Thymeleaf or any alternatives suck Middleware: Spring has Filters and Interceptors which both have different use cases and are not interoperable; Django uses Middleware Speed of Development: You need to invest 3 days to develop something in Spring that can get done in 3 hours in Django Maintainability: the one redeeming quality of Django are fantastic changelogs. But they break so many things and there's no type checker to help you. Django requiring 3rdparty libs like DRF/parler makes the problem even worse IMHO Hotness/How modern are they: Python is stuck in the 2000s. As is Django. Where are the functional programming features? No, generators/list comprehensions are not a replacment for Streams/Sequences. for loops are error prone and hard to reason about. Kotlin can be compiled to JS, WASM, JVM, Objective-C and Native machine code. Not having a good, default package manager these days is a joke. There's async in Python but no structured concurrency. GIL still exists. Ecosystem: Spring is where it's at. Django thirdparty apps are often a huge headache and Django (similar to Python) is not up to date with the rest of the world. Spring has so many core projects that are well maintained and most problems in Java have been figured out years ago, meaning: stable dependencies. Ubiquity: Java and Kotlin are everywhere. Python has it's niche in education, scripting and AI.
🌐
Reddit
reddit.com › r/informatikkarriere › python vs. java + springboot for backend
r/InformatikKarriere on Reddit: Python vs. Java + SpringBoot for Backend
September 21, 2025 -

Honestly, in a perfect world, Python would just do everything for me. It's just such a pleasant language to work with. But we don't live in a perfect world. Still, I want to believe that Python offers at least a solid foundation for backend development in Germany, with well-paid jobs.

How does Python really stack up against Java + SpringBoot?

On LinkedIn, there seem to be about the same number of jobs for both stacks in Germany, but I'm curious about the experiences of other developers here.

🌐
Quora
quora.com › Should-I-abandon-Spring-Boot-Java-for-Python-Django
Should I abandon Spring Boot/Java for Python/Django? - Quora
Answer (1 of 3): Python, being dynamically typed language, is a tool, that in the hands of a competent developer provides great power. With Django, you will be able to create your first web-based app capable of working with the data in a database using powerful admin interface within the course ...
🌐
StackShare
stackshare.io › stackups › python-vs-spring
Python vs Spring | What are the differences? | StackShare
Python - Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best. Spring - A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.
🌐
G2
g2.com › compare › django-vs-spring-boot
Compare Django vs. Spring Boot
Python web frameworks in particular are advantageous for web application scripts.
🌐
Similarweb
similartech.com › compare › python-vs-spring
Python VS Spring - Framework Technologies Market Share ...
Discover SimilarTech by Similarweb, the leading platform for web technology analysis. Check technology stacks & gain insights on competitors’ tools. Try it now!
🌐
Medium
medium.com › @shaikreshma21082000 › fastapi-for-java-developers-transition-from-spring-boot-to-python-fe2d44d3c623
FastAPI for Java Developers: Transition from Spring Boot to Python | by shaik reshma | Medium
September 1, 2025 - Spring Boot (Java): In the Java world, we usually depend on Maven or Gradle to generate the project structure. These build tools take care of dependencies, plugins, and create a structured folder setup that we’re used to. FastAPI (Python): In Python, things work a bit differently.