Web Architecture
Web Architecture
(The basic architecture concepts I wish I knew when I was getting started as a web developer)
How InterviewBit Works?
All the components
1. DNS
2. Load Balancer
3. Web Application Server
4. Database Server
5. Caching Services
6. Job Queues and servers
7. Full text search using inverted index
8. Services
9. Analytics Data
10. Cloud Storage
11. CDN
Load Balancer
1. SQL
a. Stores data in tables connected through ids (usually integers)
b. Querying languages: https://www.khanacademy.org/computing/computer-programming/sql
2. NoSQL
a. More capable of handling large amounts of data
b. Intro to NoSQL:
https://resources.mongodb.com/getting-started-with-mongodb/back-to-basics-1-introduction-
to-nosql
3. SQL don’t scale horizontally very well, can only scale vertically.
Caching Service
1. Google uses job queues to crawl the web pages and build index
2. Bulk delete in gmail id done via a job queue.
3. Where might we be using a job queue in InterviewBit?
Full text search
1. https://www.elastic.co/products/elasticsearch
2. http://lucene.apache.org/solr/features.html
A typical request!
What do the request and response look like?
A typical response
Types of http response codes
1. HTML
2. CSS
3. Javascript
4. Images
How to optimize a website?
1. A project that you will remember 10 years down the line and feel proud of.!
2. Can this project transform to be a billion dollar company?
3. Punch above your weight, make it big!