Web

web architecture 👍

client-server

request-response

client

thin client

thick (fat) client

utility apps, online games

protocal

http

http push

ajax long polling

web sockets

messaging

chat applications

real-time social streams

massive multi player games

runs over tcp

bi directional

html 5 event source & Server sent events(SSE)

message queues

streaming over http

large images, videos

conecpts

persistent connection

heart beat interceptors

ttl

http pull

http requests

verbs

get

put

patch

delete

post

rendering

client side rendering

browser engine

rendering engine

java script interpreter

net working & ui backend

storage

server side rendering

DNS

DNS recursive name server

Root name server

top level domain name server

authoritative name server

load balancing ✅

types

software load balancing

DNS load balancing

hard ware load balancing

algorithms

round robin & weighted round robin

least connections

random

caching

strategies

cache aside

write through

read through

write back

cookie

tracking

authentication

protection against csrf

status codes

100-199 (informational)

200-299(success)

300-399(redirection)

400-499(client errors)

500-599(server errors)