I'm currently facing a dilema regarding the appropriate server-side framework to use.
Basically, I want to choose the best framework for building a large website to serve millions of page hits. The website itself will be heavily database and ajax reliant, and thus will need to be planned for scalability right from the start.
My wants/needs for a suitable server-side framework are the following:
My question finally is that is the Java Spring framework a suitable candidate for a operating a large website based on the wants and needs that were mentioned above? Should I stick to something like Django or Rails?
Although definitely not the only framework based on Java it is easy to use to create stand-alone, production-grade Spring-based Applications that you can "just run". It is an opinionated view of the Spring platform and third-party libraries but allows to start with minimum fuss and configuration.
This article has shown that web frameworks can make it easier to develop and maintain server-side code. It has also provided a high level overview of a few popular frameworks, and discussed criteria for choosing a web application framework. You should now have at least an idea of how to choose a web framework for your own server-side development.
It simplifies configuration and is multi-threaded, which is super useful in long or repetitive operations. The main features of Spring are: transaction management - Spring provides a consistent transaction management interface that can scale down to a local transaction and scale up to global transactions,
One of those is NestJS - a framework similar to Spring, which can help you achieve comparable results. However, if you were to choose between NestJS or Spring as the Java framework to power your business for the upcoming years, which one would you choose?
Spring is a good framework. However, by itself it is not going to solve your scalability problems (and no other framework would).
To scale heavy load on servers you need to make sure that your servers are stateless or use load balancers with sticky sessions. To reduce load on database you will need caches. No framework will solve it for you.
In other words, think about overall system design rather than specific coding framework.
I would prefer the following.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With