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.

learnings Article's
26 articles in total
Favicon
Microsoft OpenAI: Errors I Learned
Favicon
[HttpServer series] Will it support the Performance, and Scale ?
Favicon
[HttpServer Series] Frameworks, Annotations, and SpringBoot
Favicon
[HttpServer Series] Who uses Java anymore ?
Favicon
Transcribe Now - : Unlocking Cross-Cultural Language Understanding
Favicon
Real-Life Problem Solving: Lessons from My Engineering Principles
Favicon
Recent Learnings
Favicon
9 Learnings from a fast-growing startup
Favicon
10 Things That I Learned in 2022
Favicon
🎯 SaaS dev challenges - #02 - 🗝 ️Authentication
Favicon
🎯 SaaS dev challenges - #01 - 🎨 UI/UX & design system
Favicon
Simple Rock Paper Scissors game build using JuliaLang
Favicon
Learnings from daily dev job - Part 1
Favicon
Everything I learned at the first job I had as a developer
Favicon
How To Optimize for Change
Favicon
Why being a Codeslinger makes you worse than you think
Favicon
geek week local
Favicon
Are libraries/frameworks an overkill?
Favicon
Managing projects for software developers
Favicon
Learnings from my last assignment
Favicon
My Experience doing fun ( stupid ? ) stuff with Python
Favicon
Gzip Compression for Beginners
Favicon
Managers are wiser than average and subordinates are dumber?!
Favicon
Making and taking babysteps
Favicon
🔥 One year of my professional career and things I learned which might help you 🙏
Favicon
How I'm Managing Work-Life Balance

Featured ones: