Logo

dev-resources.site

for different kinds of informations.

[HttpServer series] Will it support the Performance, and Scale ?

Published at
1/2/2024
Categories
java
frameworks
learnings
Author
mandraketech
Categories
3 categories in total
java
open
frameworks
open
learnings
open
Author
12 person written this
mandraketech
open
[HttpServer series] Will it support the Performance, and Scale ?

What about "scale" and "performance" ?

SpringBoot, and all other frameworks publicise the fact that they can handle tens of thousands of requests every second.

The applications I have worked with, and I am assuming this is true for most applications sitting on the internet, and the internal applications used companies, none have ever needed that kind of scale.

Even 100 requests per minute is a lot of load. Don't manage to hit that many. Plus, if you really look at it, the whole "keep the cache warm" or "preload all the configuration" is good for large load applications. For the small ones, a few milli seconds do not matter.

So, I am willing to take the bet that holding data, and hence memory, may not be required. The JVM is really good at garbage collecting memory. So, lets use it to our benefit.

Also, if we do not maintain too much state, we can bank on functional programming, and scale out architecture, if we really start hitting performance. And, as is required by internal applications in the enterprises, the scale out gives us the high availability check mark.

I also rely on using docker compose . So, deploying more of light weight services in a docker swarm is easy. As is expanding the swarm dynamically.

The core assumption, at this time, since I do not know the end result, and am building this out as you, the reader, are reading it, is that my application is not internet scale. A few thousand transactions a day is as far as I will plan for.

But, maintenance of the application should be cheap, because, in all probability, we will revisit this application only a few times a year, in an optimistic situation. And every time will be a different set of eyes.

So, let's get started, and explore the Http Server API next time, and see where we need to begin.

frameworks Article's
30 articles in total
Favicon
JavaScript Frameworks - Heading into 2025
Favicon
Unlocking the Power of Django: Build Secure and Scalable Web Apps Fast
Favicon
The Best Web Development Frameworks in 2024
Favicon
Why Django Stands Out Among Web Development Frameworks
Favicon
Top JavaScript Frameworks to Master in 2024
Favicon
Fixing CORS in your SPA
Favicon
Demasiados frameworks de JS, pero por qué?
Favicon
Who's Your .NET Ally? - F# vs C#
Favicon
Angular vs React: A Frontend Showdown
Favicon
How To Install TestNG in Eclipse: Step By Step Guide
Favicon
Integrating Laravel with Popular Frontend Frameworks: A Developer's Guide
Favicon
This Month in Solid #4: The Shape of Frameworks to Come 😎
Favicon
So many JS frameworks, but why?
Favicon
Why Core Knowledge in HTML, CSS, JavaScript, and PHP is Timeless
Favicon
Frontend Frameworks from 2023-2024
Favicon
Java GUI Frameworks: Some go for these fine tools
Favicon
Spring Boot vs Quarkus: Pick one for Java
Favicon
[HttpServer Series] Authentication and Role based Authorization (RBAC)
Favicon
Stuck in the Middle with You: An intro to Middleware
Favicon
Sempre vale apena usar Frameworks?
Favicon
Navigating the Frontiers of Web Development:A Deep Dive into Framework Wars
Favicon
Best Frameworks For Cross-Platform App Development
Favicon
[HttpServer series] Static File server, and Logging
Favicon
[HttpServer Series] The Http Router - from scratch - in Java
Favicon
Webinar De COBIT Para Governança de TI Gratuito da KA Solution
Favicon
[HttpServer series] Testing the server
Favicon
[HttpServer series] Getting Started - First context (endpoint)
Favicon
JavaScript Frameworks - Heading into 2024
Favicon
[HttpServer series] Setting up the dev environment
Favicon
[HttpServer series] Will it support the Performance, and Scale ?

Featured ones: