0
0
HLDsystem_design~12 mins

HTTP and HTTPS in HLD - Architecture Diagram

Choose your learning style9 modes available
System Overview - HTTP and HTTPS

This system explains how HTTP and HTTPS protocols work to deliver web content securely and efficiently. HTTP is the basic protocol for web communication, while HTTPS adds encryption to protect data during transfer.

Key requirements include secure data transmission, fast response times, and compatibility with web browsers and servers.

Architecture Diagram
Internet
Load Balancer
Web Server
Application Server
Cache
Database
Components
User
client
Sends HTTP or HTTPS requests using a web browser
Internet
network
Transports requests and responses between user and servers
Load Balancer
load_balancer
Distributes incoming requests evenly across web servers
Web Server
service
Handles HTTP/HTTPS requests, terminates TLS for HTTPS, and serves static content
Application Server
service
Processes business logic and dynamic content generation
Cache
cache
Stores frequently accessed data to reduce database load and improve response time
Database
database
Stores persistent application data
Request Flow - 10 Hops
UserLoad Balancer
Load BalancerWeb Server
Web ServerApplication Server
Application ServerCache
CacheApplication Server
Application ServerDatabase
DatabaseApplication Server
Application ServerWeb Server
Web ServerLoad Balancer
Load BalancerUser
Failure Scenario
Component Fails:Load Balancer
Impact:All incoming user requests fail to reach web servers, causing complete service outage
Mitigation:Use multiple load balancers with failover and health checks to ensure availability
Architecture Quiz - 3 Questions
Test your understanding
Which component is responsible for encrypting and decrypting HTTPS traffic?
ALoad Balancer
BWeb Server
CApplication Server
DCache
Design Principle
This architecture demonstrates secure web communication by using HTTPS with TLS termination at the web server, combined with load balancing for scalability and caching to improve performance. It separates concerns clearly and ensures data protection during transmission.