What are web servers and how do they work (with examples httpd and nodejs)

Share this & earn $10
Hussein Nasser
Published at : 10 Dec 2020
51721 views
1108
79

A web server is a software that Serves web content through the HTTP protocol. It is the foundation of the internet and any website out there must be sitting and hosted on a web server. Web APIs can also be hosted on some sort of a web server. A web server can serve static or dynamic content. You can use an out of the box web servers such as apache tomcat or IIS or you can write your own from scratch to expose pieces of functionalities such as API. In this video we will explain what is a web server, how it works and we will then go through and spin off two types of web servers. Im going to put jump codes so you can skip to your favorite part of the video.


Chapters
0:00 Intro
2:13 What is web server?
7:40 How web servers work?
10:00 Blocking single threaded web server
19:00 Code example Apache (httpd)
29:00 Code example NodeJS



- What is a web server?
- [ ] Software that serves web content
- [ ] Uses HTTP protocol
- [ ] Static and dynamic
- [ ] Used to host web pages or APIs.
- How it works? (Slide)
- process starts and listen to a port (usually 80) , a client makes a request to the web server, this establishes a TCP connection between client and server if its HTTPS it does TLS, then finally the GET request get sent. Now different implementation of webservers shine here, some servers use the same process to execute the request on the main thread. Which means the server cant accept any more requests until that is done this is referee to as Blocking single-threaded HTTP server). Other web servers implement this different and accepts new requests all the time and start new thread of execution.
- Examples
- Web servers (apache, tomcat, nodejs http-server, NodeJS express, Python Tornado 🌪
- Demo (tomcat and nodejs)
-




Stay Awesome!
Hussein
software engineeringhow web servers workwhat is a web server?

Large Amount- I Like It

Large Amount- I Like It

2nd Stimulus check Latest Update | H1B, L, F1 visa, Green Card holder, ITIN | USCitizenshipTest.org

2nd Stimulus check Latest Update | H1B, L, F1 visa, Green Card holder, ITIN | USCitizenshipTest.org

How to Make Cute & Delicious Kirby Strawberry Truffles | Fun & Easy DIY Treats to Try at Home!

How to Make Cute & Delicious Kirby Strawberry Truffles | Fun & Easy DIY Treats to Try at Home!

Ivy League vs Community College: Which Education Is Better? | Middle Ground

Ivy League vs Community College: Which Education Is Better? | Middle Ground

And So Forth

And So Forth

Katt Williams On One White Woman In The Field  || Katt Williams Stand Up Comedy

Katt Williams On One White Woman In The Field || Katt Williams Stand Up Comedy

I tried the CHLOE TING two week shred challenge (i'm extremely unfit)

I tried the CHLOE TING two week shred challenge (i'm extremely unfit)

Scrumptious meaning  with examples in sentences

Scrumptious meaning with examples in sentences

Manifest UNEXPECTED Money in 48 Hours or Less | Guided Meditation [Extremely Powerful!!]

Manifest UNEXPECTED Money in 48 Hours or Less | Guided Meditation [Extremely Powerful!!]

How To Create a WordPress Blog Like H-educate (Step By Step)

How To Create a WordPress Blog Like H-educate (Step By Step)

HighTraffic Blog - Day 7 (Publishing a SEO optimised article with Royalty Free Images)

HighTraffic Blog - Day 7 (Publishing a SEO optimised article with Royalty Free Images)

The Darkness - Get Your Hands Off My Woman (Official Music Video)

The Darkness - Get Your Hands Off My Woman (Official Music Video)

Safe and Very Old Gun Found Magnet Fishing in Amsterdam! (Crazy day)

Safe and Very Old Gun Found Magnet Fishing in Amsterdam! (Crazy day)

Nickelback - Trying Not To Love You [OFFICIAL VIDEO]

Nickelback - Trying Not To Love You [OFFICIAL VIDEO]

Introduction to function inverses | Functions and their graphs | Algebra II | Khan Academy

Introduction to function inverses | Functions and their graphs | Algebra II | Khan Academy

Message: Who Is It That You Are Seeking ? April 21, 2019

Message: Who Is It That You Are Seeking ? April 21, 2019

Philosophy of Modern Day Wheelwright & Wagon Shop | Engels Coach Shop

Philosophy of Modern Day Wheelwright & Wagon Shop | Engels Coach Shop

Phil Weeks -  It's The Inside That Counts (Official Video)

Phil Weeks - It's The Inside That Counts (Official Video)

செலவே இல்லாத மாடித்தோட்டம்! Terrace Garden at No Cost! Minimalism in Gardening!

செலவே இல்லாத மாடித்தோட்டம்! Terrace Garden at No Cost! Minimalism in Gardening!

Chic - Good Times (1978)

Chic - Good Times (1978)

CYBERPSYCHOSIS - Cyberpunk 2077 DEADLIEST Illness

CYBERPSYCHOSIS - Cyberpunk 2077 DEADLIEST Illness

Cockatiel songs - La Cucaracha - Medium

Cockatiel songs - La Cucaracha - Medium

Herbisida Convey ,cara meracik dan aplikasi pada tanaman jagung

Herbisida Convey ,cara meracik dan aplikasi pada tanaman jagung

Aaron Carter - Don't Say Goodbye (Lyric)

Aaron Carter - Don't Say Goodbye (Lyric)

Finding The Confidence Interval of a Population Proportion Using The Normal Distribution

Finding The Confidence Interval of a Population Proportion Using The Normal Distribution

The Grand Tour Presents: A Massive Hunt - Exclusive First Look

The Grand Tour Presents: A Massive Hunt - Exclusive First Look

How to Build Expertise

How to Build Expertise

Crocodiles - Jet Boy Jet Girl

Crocodiles - Jet Boy Jet Girl

i like you-Loan Nguyen (208)

i like you-Loan Nguyen (208)

How YouTube's Suggested Videos Work

How YouTube's Suggested Videos Work

Yankees 10 Greatest Home Run Moments of 2019

Yankees 10 Greatest Home Run Moments of 2019

MY BRAND TRIP HORROR STORIES

MY BRAND TRIP HORROR STORIES

Cyberwar | Amy Zegart | TEDxStanford

Cyberwar | Amy Zegart | TEDxStanford

Team Jyotica's Fun-Filled Act Remembering "Hum Aapke Hai Koun" | Superstar Singer

Team Jyotica's Fun-Filled Act Remembering "Hum Aapke Hai Koun" | Superstar Singer

Sacramento Kings vs. New Orleans Pelicans has been postponed | NBA on ESPN

Sacramento Kings vs. New Orleans Pelicans has been postponed | NBA on ESPN

The Mum Song

The Mum Song

تأمل إمتصاص طاقة المكان | Meditate to absorb the energy of the place

تأمل إمتصاص طاقة المكان | Meditate to absorb the energy of the place

Manuals in 3 Easy Steps! | Beginner MTB Sessions with Bryan

Manuals in 3 Easy Steps! | Beginner MTB Sessions with Bryan

10 Most Expensive Escorts In The World

10 Most Expensive Escorts In The World

The Clothes - Bring Me Back // SUNNY ACOUSTIC

The Clothes - Bring Me Back // SUNNY ACOUSTIC

❌ Maradona, una FALSA leyenda...

❌ Maradona, una FALSA leyenda...

How to make canopy

How to make canopy

Overcoat, Topcoat, Greatcoat, Body Coat, Tailcoat, Morning Coat: Terminology & Differences Explained

Overcoat, Topcoat, Greatcoat, Body Coat, Tailcoat, Morning Coat: Terminology & Differences Explained

Enticing chipmunks into bottles

Enticing chipmunks into bottles

DIFFERENT VARIETIES OF SNAKE PLANT

DIFFERENT VARIETIES OF SNAKE PLANT

Basic components of Internal Combustion Engine

Basic components of Internal Combustion Engine

Accredited Degree Programs: Important or Not?

Accredited Degree Programs: Important or Not?

The Arts and Humanities. Professor Stefan Collini

The Arts and Humanities. Professor Stefan Collini

Structure of a coaching session

Structure of a coaching session