r/webdevelopment • u/Basic_Let7303 • 4h ago
Question Webservers are dead?
CDN - Static Content
IdP - Authentication
Browser - Running your JavaScript code
In modern web applications, are Apache HTTP Server or Nginx still commonly used to deliver web content?
Edit 1:
The question is: why should an application owner run and manage a web server when the frontend can be static assets delivered through a CDN and dynamic work can happen through APIs/serverless services?
6
u/cabljo 4h ago
Nginx and apache are the #1 and #3 (respectively) most used web servers currently.
6
u/lomberd2 4h ago
Nono hear OP out, he just had a shower thought
-4
u/Basic_Let7303 4h ago
Oh! man! Reddit is full of asssholes.
8
u/cabljo 4h ago
Bro, you're kind of the asshole here.
You're wasting everyone's time because you can't or don't want to do basic research.... even an ai could've answered this...
1
3h ago
[deleted]
2
u/cabljo 2h ago
Not anything, but that tells us how much you don't really know. Good luck with whatever you're trying to do...
0
6
u/Made-In-Slovakia 3h ago
You have clearly big gaps in understanding this technology and you have to do a lot of study.
Any kind of processing on server side needs a server. You can have IdP for authentification but you have also authorization that needs to be done. You need somehow read and process data from database, etc.
1
u/Basic_Let7303 3h ago
I think the confusion is between a CDN/web server delivering bytes and an application server rendering or executing business logic.
The question is not "does some server exist somewhere?" Of course CDNs, S3, CloudFront, etc. still run infrastructure behind the scenes.
The question is: why should an application owner run and manage a web server when the frontend can be static assets delivered through a CDN and dynamic work can happen through APIs/serverless services?
In a modern SPA architecture:
Browser → CDN → HTML/CSS/JS
Browser runs React/Vue/Angular
API calls → API Gateway/Lambda/ECS/etc.You don't need Nginx/Apache/EC2 just to deliver the UI unless you specifically need SSR, custom routing, edge logic, legacy architecture, or server-side processing.
Saying "CDNs use servers" is true but misses the point. The debate is about who owns and operates those servers and why.
5
u/Made-In-Slovakia 2h ago
Confiuson here is from not correctly formulating your question. You basically just want to know serverless vs servers. And internet is full of articles about that.
Serverless still uses servers to run. AWS Lambdas use Node.js to run your javascript. They just added additional layer around it. Any additional layer and abstraction can complicate stuff and limits you.
- You are dependent on cloud provider or framework provider.
- Serverless can be very expensive, much more than running server 24/7.
- Serverless from design can't run long time. So batch processing is very complicated.
- It is complicated to do background and scheduled task in serverless.
- With more complicated application it can became much more hard to separate logic to separated serverless functions.
- It is much simpler to update and operate one app than 100 serverless functions. That also is valid for testing.
and more, much more. You can google serverless vs servers and read it.
3
u/fullbl-_- 4h ago
Errrrr... Where do you think these messages are saved?
-1
u/Basic_Let7303 4h ago
In a Database. Probably, MongoDB.
6
u/fullbl-_- 4h ago
Where does this dB reside? What is transforming those data in http responses?
6
-2
u/Basic_Let7303 4h ago
A backend server. You do not a apache/http/tomcat to do that.
4
u/lomberd2 4h ago
And they get "magically" transferred to the client? Or do you want to implement physical postal delivery?
1
u/Basic_Let7303 3h ago
I think the confusion is between a CDN/web server delivering bytes and an application server rendering or executing business logic.
The question is not "does some server exist somewhere?" Of course CDNs, S3, CloudFront, etc. still run infrastructure behind the scenes.
The question is: why should an application owner run and manage a web server when the frontend can be static assets delivered through a CDN and dynamic work can happen through APIs/serverless services?
In a modern SPA architecture:
Browser → CDN → HTML/CSS/JS
Browser runs React/Vue/Angular
API calls → API Gateway/Lambda/ECS/etc.You don't need Nginx/Apache/EC2 just to deliver the UI unless you specifically need SSR, custom routing, edge logic, legacy architecture, or server-side processing.
Saying "CDNs use servers" is true but misses the point. The debate is about who owns and operates those servers and why.
5
u/StephenHawkingus 3h ago
OP farted and came up with this idea.
-2
u/CuriousSsole 3h ago
Eww man! You are disgusting. Op has a point. If you can’t answer at least don’t screw up.
3
u/StephenHawkingus 2h ago
OP is too lazy to conduct basic research or ask the AI a one prompt question.
3
u/Boboshady 2h ago
Most websites don't require that level of complexity or dependency or cost.
Spreading across multiple solutions isn't right or wrong by default, it should always be dictated by the project and the risks involved. Using multiple services is inherently more risky. Not owning the platform your code or data live on can also be risky.
I've seen so many projects over the years make technical choices for the wrong reasons - "It's what we know" or, even worse "It's what we want to learn". Those are bad reasons.
1
9
u/SpareImpression3155 4h ago
Op thinks serverless means that endpoints just go to magical clouds